diff options
Diffstat (limited to 'src/GNUmakefile')
-rw-r--r-- | src/GNUmakefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile new file mode 100644 index 0000000..0ed8c1b --- /dev/null +++ b/src/GNUmakefile @@ -0,0 +1,41 @@ +TOPDIR = .. + +SUBDIRS = + +INCLUDE_DIRS = -I. + +BINS = \ + testd + +OBJS = \ + port/lockf.o \ + port/snprintf.o \ + cmdline.o \ + log.o \ + signals.o \ + pidfile.o \ + daemon.o + + +-include $(TOPDIR)/makefiles/sub.mk + +# ABa: currently a special rule for cmdline.c as gengetopt is not +# completly fixed yet +testd.d : cmdline.h +cmdline.h : daemon.ggo + gengetopt --include-getopt -i $< +cmdline.c : daemon.ggo + gengetopt --include-getopt -i $< + +cmdline.o : cmdline.c cmdline.h + $(CC) -c -o $@ $< + +local_all: cmdline.h + +local_clean: + -@rm port/*.bak 2>/dev/null + -@rm port/*~ 2>/dev/null + -@rm port/*.d 2>/dev/null + +local_distclean: + -@rm cmdline.c cmdline.h |