1 2 3 ifeq ($(NEOTONIC_ROOT),) 4 NEOTONIC_ROOT = .. 5 endif 6 7 include $(NEOTONIC_ROOT)/rules.mk 8 9 IMD_EXE = imd.cgi 10 IMD_SRC = imd.c 11 IMD_OBJ = $(IMD_SRC:%.c=%.o) 12 13 CFLAGS += -I/usr/local/include 14 DLIBS += -lneo_cgi -lneo_cs -lneo_utl # -lefence 15 LIBS += -L$(LIB_DIR) $(DLIBS) -L/usr/local/lib -lgd -ljpeg -lz 16 17 TARGETS = $(IMD_EXE) 18 19 all: $(TARGETS) 20 21 $(IMD_EXE): $(IMD_OBJ) $(DEP_LIBS) 22 $(LD) $@ $(IMD_OBJ) $(LIBS) 23 24 clean: 25 $(RM) *.o 26 27 distclean: 28 $(RM) Makefile.depends $(TARGETS) *.o 29