added gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git] / ircd / test / Makefile.in
index aa9ecfcd386440a3d3fc503a45d1718c62a9fb2a..e0ea0ac7d6552fa815e700cc786466a1bec5533d 100644 (file)
@@ -3,16 +3,19 @@ srcdir = @srcdir@
 VPATH = @srcdir@
 CPPFLAGS = -I${top_srcdir}/include -I../..
 CFLAGS   = -g -Wall
+LDFLAGS  =
 CC = @CC@
 
 TESTPROGS = \
        ircd_chattr_t \
-       ircd_string_t \
-       ircd_in_addr_t
+       ircd_in_addr_t \
+       ircd_match_t \
+       ircd_string_t
 
 DEP_SRC = \
        ircd_chattr_t.c \
        ircd_in_addr_t.c \
+       ircd_match_t.c \
        ircd_string_t.c \
        test_stub.c
 
@@ -34,15 +37,19 @@ install:
 
 IRCD_CHATTR_T_OBJS = ircd_chattr_t.o test_stub.o ../ircd_string.o
 ircd_chattr_t: $(IRCD_CHATTR_T_OBJS)
-       ${CC} -o $@ $(IRCD_CHATTR_T_OBJS)
-
-IRCD_STRING_T_OBJS = ircd_string_t.o test_stub.o ../ircd_string.o
-ircd_string_t: $(IRCD_STRING_T_OBJS)
-       ${CC} -o $@ $(IRCD_STRING_T_OBJS)
+       ${CC} -o $@ $(LDFLAGS) $(IRCD_CHATTR_T_OBJS)
 
 IRCD_IN_ADDR_T_OBJS = ircd_in_addr_t.o test_stub.o ../ircd_alloc.o ../ircd_string.o ../match.o ../numnicks.o
 ircd_in_addr_t: $(IRCD_IN_ADDR_T_OBJS)
-       ${CC} -o $@ $(IRCD_IN_ADDR_T_OBJS)
+       ${CC} -o $@ $(LDFLAGS) $(IRCD_IN_ADDR_T_OBJS)
+
+IRCD_MATCH_T_OBJS = ircd_match_t.o test_stub.o ../ircd_string.o ../match.o
+ircd_match_t: $(IRCD_MATCH_T_OBJS)
+       ${CC} -o $@ $(LDFLAGS) $(IRCD_MATCH_T_OBJS)
+
+IRCD_STRING_T_OBJS = ircd_string_t.o test_stub.o ../ircd_string.o
+ircd_string_t: $(IRCD_STRING_T_OBJS)
+       ${CC} -o $@ $(LDFLAGS) $(IRCD_STRING_T_OBJS)
 
 .c.o:
        ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
@@ -53,7 +60,7 @@ distclean: clean
        rm -f Makefile
 
 clean:
-       rm -f core *.o ${TESTPROGS}
+       rm -f core *.o *.log ${TESTPROGS}
 
 # DO NOT DELETE THIS LINE (or the blank line after it) -- make depend depends on them.
 
@@ -63,7 +70,9 @@ ircd_in_addr_t.o: ircd_in_addr_t.c ../../include/ircd_log.h \
   ../../include/numnicks.h ../../include/client.h \
   ../../include/ircd_defs.h ../../include/dbuf.h ../../include/msgq.h \
   ../../include/ircd_events.h ../../config.h ../../include/ircd_handler.h \
-  ../../include/res.h ../../include/capab.h
+  ../../include/res.h ../../include/capab.h ../../include/res.h
+ircd_match_t.o: ircd_match_t.c ../../include/ircd_log.h \
+  ../../include/match.h ../../include/res.h ../../config.h
 ircd_string_t.o: ircd_string_t.c ../../include/ircd_string.h \
   ../../include/ircd_chattr.h
 test_stub.o: test_stub.c ../../include/client.h ../../include/ircd_defs.h \