1 dss_objects := cmdline.o dss.o str.o file.o exec.o sig.o daemon.o df.o tv.o snap.o ipc.o
6 DEBUG_CFLAGS += -Wno-sign-compare -g -Wunused -Wundef
7 DEBUG_CFLAGS += -Wredundant-decls
11 CFLAGS += -Wuninitialized
12 CFLAGS += -Wchar-subscripts
13 CFLAGS += -Wformat-security
14 CFLAGS += -Werror-implicit-function-declaration
15 CFLAGS += -Wmissing-format-attribute
16 CFLAGS += -Wunused-macros
17 CFLAGS += -Wunused-parameter
18 CFLAGS += -Wbad-function-cast
21 Makefile.deps: $(wildcard *.c *.h)
24 -include Makefile.deps
27 $(CC) -o $@ $(dss_objects)
29 cmdline.o: cmdline.c cmdline.h
33 $(CC) -c $(CFLAGS) $(DEBUG_CFLAGS) $<
38 cmdline.c cmdline.h: dss.ggo
39 gengetopt --conf-parser < $<
42 help2man -h --detailed-help --include dss.1.inc -N ./$< > $@
45 groff -m man -Thtml -P -l -P -r $< | sed -e '1,/^<body>/d; /^<\/body>/,$$d' > $@
48 rm -f *.o dss dss.1 dss.1.html Makefile.deps *.png *~ cmdline.c cmdline.h index.html
50 index.html: dss.1.html index.html.in INSTALL README NEWS
51 sed -e '/@README@/,$$d' index.html.in > $@
53 sed -e '1,/@README@/d' -e '/@NEWS@/,$$d' index.html.in >> $@
55 sed -e '1,/@NEWS@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@
56 markdown INSTALL >> $@
57 sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@
59 sed -e '1,/@MAN_PAGE@/d' index.html.in >> $@