all: dss dss.1
man: dss.1
+DSS_CPPFLAGS := -DVERSION_STRING='"$(VERSION_STRING)"'
+DSS_CPPFLAGS += -Wunused-macros
+
DSS_CFLAGS := -Wno-sign-compare -g -Wunused -Wundef
DSS_CFLAGS += -Wredundant-decls
DSS_CFLAGS += -Os
DSS_CFLAGS += -Wformat-security
DSS_CFLAGS += -Werror-implicit-function-declaration
DSS_CFLAGS += -Wmissing-format-attribute
-DSS_CFLAGS += -Wunused-macros
DSS_CFLAGS += -Wunused-parameter
DSS_CFLAGS += -Wbad-function-cast
DSS_CFLAGS += -Wshadow
Makefile.deps: $(wildcard *.c *.h)
- $(CC) -MM -MG $(DSS_CFLAGS) $(CFLAGS) *.c > $@
+ $(CC) -MM -MG $(DSS_CPPFLAGS) $(CPPFLAGS) $(DSS_CFLAGS) $(CFLAGS) *.c > $@
-include Makefile.deps
$(CC) -o $@ $(dss_objects) $(LDFLAGS) -llopsub
%.o: %.c Makefile
- $(CC) -c -DVERSION_STRING='"$(VERSION_STRING)"' $(DSS_CFLAGS) $(CFLAGS) $<
+ $(CC) -c $(DSS_CPPFLAGS) $(CPPFLAGS) $(DSS_CFLAGS) $(CFLAGS) $<
%.png: %.dia
dia -e $@ -t png $<