aboutsummaryrefslogtreecommitdiff
path: root/imd/Makefile
blob: 100aa6bd853e71e21b69429945a75820da120ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28


ifeq ($(NEOTONIC_ROOT),)
NEOTONIC_ROOT = ..
endif

include $(NEOTONIC_ROOT)/rules.mk

IMD_EXE = imd.cgi
IMD_SRC = imd.c
IMD_OBJ = $(IMD_SRC:%.c=%.o)

CFLAGS += -I/usr/local/include
DLIBS += -lneo_cgi -lneo_cs -lneo_utl # -lefence
LIBS += -L$(LIB_DIR) $(DLIBS) -L/usr/local/lib -lgd -ljpeg -lz

TARGETS = $(IMD_EXE)

all: $(TARGETS)

$(IMD_EXE): $(IMD_OBJ) $(DEP_LIBS)
	$(LD) $@ $(IMD_OBJ) $(LIBS)

clean:
	$(RM) *.o

distclean:
	$(RM) Makefile.depends $(TARGETS) *.o