diff options
author | Karl Ramm <kcr@1ts.org> | 2013-01-31 08:02:34 -0500 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2013-03-16 23:57:54 -0700 |
commit | 9e8331c95c94003458ec0a9f9a750bee9f25fdbd (patch) | |
tree | 3545fe8e128e6bb06a238492ad88fad32838378b /server/Makefile.in | |
parent | 9e361ec4b0fbf61fc743bae78ab1b6e30c4a2742 (diff) |
Test the low-level code in uloc.c
Also, tweak the debian build infrastructure so that we can pass
in arbitrary CFLAGS.
New program test_server that links with the non-main.c parts of
the server. Currently only (as above) tests the low-level bits
of uloc.c.
Diffstat (limited to 'server/Makefile.in')
-rw-r--r-- | server/Makefile.in | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/server/Makefile.in b/server/Makefile.in index b2a0600..a23b509 100644 --- a/server/Makefile.in +++ b/server/Makefile.in @@ -36,15 +36,22 @@ LDFLAGS=@LDFLAGS@ LIBS=${LIBZEPHYR} @LIBS@ -lcom_err HESIOD_LIBS=@HESIOD_LIBS@ -OBJS= zsrv_err.o access.o acl_files.o bdump.o class.o client.o common.o \ - dispatch.o kstuff.o main.o server.o subscr.o timer.o uloc.o \ +NMOBJS= zsrv_err.o access.o acl_files.o bdump.o class.o client.o common.o \ + dispatch.o kstuff.o global.o server.o subscr.o timer.o uloc.o \ zstring.o realm.o version.o utf8proc.o -all: zephyrd zephyrd.8 +OBJS= main.o $(NMOBJS) + +TESTOBJS = test_server.o $(NMOBJS) + +all: zephyrd zephyrd.8 test_server zephyrd: ${OBJS} ${LIBZEPHYR} ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} ${HESIOD_LIBS} +test_server: $(TESTOBJS) + ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${TESTOBJS} ${LIBS} ${HESIOD_LIBS} + zsrv_err.h: zsrv_err.c zsrv_err.c: zsrv_err.et compile_et ${srcdir}/zsrv_err.et @@ -56,7 +63,8 @@ zephyrd.8: ${srcdir}/zephyrd.8.in Makefile ${editman} ${srcdir}/$@.in > $@.tmp mv $@.tmp $@ -check: +check: test_server + ./test_server # No dependency on zephyrd, to avoid rebuilding version.o. install: zephyrd.8 zephyrd @@ -67,7 +75,7 @@ install: zephyrd.8 zephyrd ${DESTDIR}${sysconfdir}/zephyr clean: - ${LIBTOOL} --mode=clean rm -f zephyrd + ${LIBTOOL} --mode=clean rm -f zephyrd test_server rm -f ${OBJS} zsrv_err.[ch] rm -f zephyrd.8 |