summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-22 11:40:43 +0100
committerSimon Rettberg2017-12-22 11:40:43 +0100
commit24b5a6bdda8f09593dd908c3fc69315ebb3754e1 (patch)
tree71b72641416040fe15864f8aeb77377b6ba376c7 /Makefile
parentFix compile error (diff)
downloadldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.tar.gz
ldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.tar.xz
ldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.zip
Add version information and --version
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 4af6135..3c835aa 100644
--- a/Makefile
+++ b/Makefile
@@ -41,16 +41,17 @@ LIBS+=-g -lowfat -lssl -lcrypto
%: %.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) ${LIBS}
-ldadp: tmpbuffer.o ini.o client.o server.o helper.o proxy.o epoll.o openssl.o ldap.a asn1.a
+ldadp: version.in.h tmpbuffer.o ini.o client.o server.o helper.o proxy.o epoll.o openssl.o ldap.a asn1.a
+
+version.in.h:
+ ./gen-version
qndtest: ldap.a asn1.a
-.PHONY: clean tar
-clean:
- rm -f *.[ao] ldadp qndtest
+.PHONY: clean version.in.h
-tar: clean
- cd ..; tar cvvf ldadp.tar.bz2 ldadp --use=bzip2 --exclude capture --exclude .git
+clean:
+ rm -f -- *.[ao] ldadp qndtest version.in.h
bindrequest.o: bindrequest.c ldap.h