ircu2.10.12 pk910 fork
[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 LDFLAGS  =
7 CC = @CC@
8
9 TESTPROGS = \
10         ircd_chattr_t \
11         ircd_in_addr_t \
12         ircd_match_t \
13         ircd_string_t
14
15 DEP_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
22 all: ${TESTPROGS}
23
24 build: ${TESTPROGS}
25
26 depend: ${DEP_SRC}
27         @cd ${srcdir} && \
28         if [ -f Makefile.in.bak ]; then \
29           echo "make depend: First remove ircd/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
36 install:
37
38 IRCD_CHATTR_T_OBJS = ircd_chattr_t.o test_stub.o ../ircd_string.o
39 ircd_chattr_t: $(IRCD_CHATTR_T_OBJS)
40         ${CC} -o $@ $(LDFLAGS) $(IRCD_CHATTR_T_OBJS)
41
42 IRCD_IN_ADDR_T_OBJS = ircd_in_addr_t.o test_stub.o ../ircd_alloc.o ../ircd_string.o ../match.o ../numnicks.o
43 ircd_in_addr_t: $(IRCD_IN_ADDR_T_OBJS)
44         ${CC} -o $@ $(LDFLAGS) $(IRCD_IN_ADDR_T_OBJS)
45
46 IRCD_MATCH_T_OBJS = ircd_match_t.o test_stub.o ../ircd_string.o ../match.o
47 ircd_match_t: $(IRCD_MATCH_T_OBJS)
48         ${CC} -o $@ $(LDFLAGS) $(IRCD_MATCH_T_OBJS)
49
50 IRCD_STRING_T_OBJS = ircd_string_t.o test_stub.o ../ircd_string.o
51 ircd_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
59 distclean: clean
60         rm -f Makefile
61
62 clean:
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
67 ircd_chattr_t.o: ircd_chattr_t.c ../../include/ircd_chattr.h
68 ircd_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
74 ircd_match_t.o: ircd_match_t.c ../../include/ircd_log.h \
75   ../../include/match.h ../../include/res.h ../../config.h
76 ircd_string_t.o: ircd_string_t.c ../../include/ircd_string.h \
77   ../../include/ircd_chattr.h
78 test_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