summaryrefslogtreecommitdiff
path: root/src/GNUmakefile
blob: 0ed8c1b0a9bf67770b2814e03c546a278067139e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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