1top_srcdir = @top_srcdir@ 2srcdir = @srcdir@ 3VPATH = @srcdir@ 4CPPFLAGS = -I${top_srcdir}/include -I../.. 5CFLAGS = -g -Wall 6LDFLAGS = @LDFLAGS@ 7CC = @CC@ 8 9TESTPROGS = \ 10 ircd_chattr_t \ 11 ircd_in_addr_t \ 12 ircd_match_t \ 13 ircd_string_t 14 15DEP_SRC = \ 16 ircd_chattr_t.c \ 17 ircd_in_addr_t.c \ 18 ircd_match_t.c \ 19 ircd_string_t.c \ 20 test_stub.c 21 22all: ${TESTPROGS} 23 24build: ${TESTPROGS} 25 26depend: ${DEP_SRC} 27 @cd ${srcdir} && \ 28 if [ -f Makefile.in.bak ]; then \ 29 echo "make depend: First remove ircd/test/Makefile.in.bak"; \ 30 else \ 31 mv Makefile.in Makefile.in.bak && \ 32 grep -A1 -B10000 '^# DO NOT DELETE THIS LINE' Makefile.in.bak > Makefile.in && \ 33 ${CC} ${CFLAGS} -MM ${CPPFLAGS} ${DEP_SRC} >> Makefile.in; \ 34 fi 35 36install: 37 38IRCD_CHATTR_T_OBJS = ircd_chattr_t.o test_stub.o ../ircd_string.o 39ircd_chattr_t: $(IRCD_CHATTR_T_OBJS) 40 ${CC} -o $@ $(LDFLAGS) $(IRCD_CHATTR_T_OBJS) 41 42IRCD_IN_ADDR_T_OBJS = ircd_in_addr_t.o test_stub.o ../ircd_alloc.o ../ircd_string.o ../match.o ../numnicks.o 43ircd_in_addr_t: $(IRCD_IN_ADDR_T_OBJS) 44 ${CC} -o $@ $(LDFLAGS) $(IRCD_IN_ADDR_T_OBJS) 45 46IRCD_MATCH_T_OBJS = ircd_match_t.o test_stub.o ../ircd_string.o ../match.o 47ircd_match_t: $(IRCD_MATCH_T_OBJS) 48 ${CC} -o $@ $(LDFLAGS) $(IRCD_MATCH_T_OBJS) 49 50IRCD_STRING_T_OBJS = ircd_string_t.o test_stub.o ../ircd_string.o 51ircd_string_t: $(IRCD_STRING_T_OBJS) 52 ${CC} -o $@ $(LDFLAGS) $(IRCD_STRING_T_OBJS) 53 54.c.o: 55 ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@ 56 57.PHONY: distclean clean 58 59distclean: clean 60 rm -f Makefile 61 62clean: 63 rm -f core *.o *.log ${TESTPROGS} 64 65# DO NOT DELETE THIS LINE (or the blank line after it) -- make depend depends on them. 66 67ircd_chattr_t.o: ircd_chattr_t.c ../../include/ircd_chattr.h 68ircd_in_addr_t.o: ircd_in_addr_t.c ../../include/ircd_log.h \ 69 ../../include/ircd_string.h ../../include/ircd_chattr.h \ 70 ../../include/numnicks.h ../../include/client.h \ 71 ../../include/ircd_defs.h ../../include/dbuf.h ../../include/msgq.h \ 72 ../../include/ircd_events.h ../../config.h ../../include/ircd_handler.h \ 73 ../../include/res.h ../../include/capab.h ../../include/res.h 74ircd_match_t.o: ircd_match_t.c ../../include/ircd_log.h \ 75 ../../include/match.h ../../include/res.h ../../config.h 76ircd_string_t.o: ircd_string_t.c ../../include/ircd_string.h \ 77 ../../include/ircd_chattr.h 78test_stub.o: test_stub.c ../../include/client.h ../../include/ircd_defs.h \ 79 ../../include/dbuf.h ../../include/msgq.h ../../include/ircd_events.h \ 80 ../../config.h ../../include/ircd_handler.h ../../include/res.h \ 81 ../../include/capab.h ../../include/ircd_log.h ../../include/s_debug.h 82