3 dss_objects := dss.o str.o file.o exec.o sig.o daemon.o df.o tv.o snap.o ipc.o dss.lsg.o
8 DEBUG_CFLAGS += -Wno-sign-compare -g -Wunused -Wundef
9 DEBUG_CFLAGS += -Wredundant-decls
13 CFLAGS += -Wuninitialized
14 CFLAGS += -Wchar-subscripts
15 CFLAGS += -Wformat-security
16 CFLAGS += -Werror-implicit-function-declaration
17 CFLAGS += -Wmissing-format-attribute
18 CFLAGS += -Wunused-macros
19 CFLAGS += -Wunused-parameter
20 CFLAGS += -Wbad-function-cast
23 Makefile.deps: $(wildcard *.c *.h)
26 -include Makefile.deps
29 $(CC) -o $@ $(dss_objects) $(LDFLAGS) -llopsub
32 $(CC) -c -DVERSION_STRING='"$(VERSION_STRING)"' $(CFLAGS) $(DEBUG_CFLAGS) $<
38 lopsubgen --gen-h=$@ < $<
40 lopsubgen --gen-c=$@ < $<
42 lopsubgen --gen-man=$@ --version-string=$(VERSION_STRING) < $<
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 *~ index.html dss.lsg.h dss.lsg.c
51 index.html: dss.1.html index.html.in INSTALL README NEWS
52 sed -e '/@README@/,$$d' index.html.in > $@
54 sed -e '1,/@README@/d' -e '/@NEWS@/,$$d' index.html.in >> $@
56 sed -e '1,/@NEWS@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@
57 markdown INSTALL >> $@
58 sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@
60 sed -e '1,/@MAN_PAGE@/d' index.html.in >> $@