1 dss_objects := cmdline.o dss.o string.o fd.o exec.o signal.o daemon.o df.o time.o snap.o
5 DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
6 DEBUG_CPPFLAGS += -Wredundant-decls
9 CPPFLAGS += -Wuninitialized
10 CPPFLAGS += -Wchar-subscripts
11 CPPFLAGS += -Wformat-security
12 CPPFLAGS += -Werror-implicit-function-declaration
13 CPPFLAGS += -Wmissing-format-attribute
14 CPPFLAGS += -Wunused-macros
15 CPPFLAGS += -Wbad-function-cast
17 Makefile.deps: $(wildcard *.c *.h)
20 -include Makefile.deps
23 $(CC) -o $@ $(dss_objects)
25 cmdline.o: cmdline.c cmdline.h
26 $(CC) -c $(CPPFLAGS) $<
29 $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) $<
36 cmdline.c cmdline.h: dss.ggo
37 gengetopt --conf-parser < $<
40 help2man -h --detailed-help --include dss.1.inc -N ./$< > $@
46 rm -f *.o dss dss.1 dss.1.html Makefile.deps *.ppm *.png *~ cmdline.c cmdline.h index.html
48 index.html: dss.1.html index.html.in INSTALL README
49 sed -e '/@README@/,$$d' index.html.in > $@
50 grutatxt -nb < README >> $@
51 sed -e '1,/@README@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@
52 grutatxt -nb < INSTALL >> $@
53 sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@
54 sed -e '1,/Return to Main Contents/d' -e '/Index/,$$d' dss.1.html >> $@
55 sed -e '1,/@MAN_PAGE@/d' index.html.in >> $@