X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=Makefile;h=2d0a6bb64e6a4094081b6efc9779fcfc1156a153;hp=d27b9cd3bb686d05269d8024c19743970538aabd;hb=HEAD;hpb=df63a10b9cbc312f66800da0998b96f024bb3ea3 diff --git a/Makefile b/Makefile index d27b9cd..a60a65b 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0 PREFIX ?= /usr/local INSTALL ?= install INSTALL_PROGRAM ?= $(INSTALL) INSTALL_DATA ?= $(INSTALL) -m 644 MKDIR_P := mkdir -p -VERSION_STRING = 0.1.7 +VERSION_STRING = 1.0.1 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 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 @@ -19,13 +23,12 @@ DSS_CFLAGS += -Wchar-subscripts 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 @@ -33,10 +36,7 @@ dss: $(dss_objects) $(CC) -o $@ $(dss_objects) $(LDFLAGS) -llopsub %.o: %.c Makefile - $(CC) -c -DVERSION_STRING='"$(VERSION_STRING)"' $(DSS_CFLAGS) $(CFLAGS) $< - -%.png: %.dia - dia -e $@ -t png $< + $(CC) -c $(DSS_CPPFLAGS) $(CPPFLAGS) $(DSS_CFLAGS) $(CFLAGS) $< %.lsg.h: %.suite lopsubgen --gen-h=$@ < $< @@ -49,7 +49,7 @@ dss: $(dss_objects) groff -m man -Thtml -P -l -P -r $< | sed -e '1,/^/d; /^<\/body>/,$$d' > $@ clean: - rm -f *.o dss dss.1 dss.1.html Makefile.deps *.png *~ index.html dss.lsg.h dss.lsg.c + rm -f *.o dss dss.1 dss.1.html Makefile.deps *~ index.html dss.lsg.h dss.lsg.c ifneq ($(findstring strip, $(MAKECMDGOALS)),) strip_option := -s