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