diff options
author | Daniel Carl <danielcarl@gmx.de> | 2013-07-29 18:01:09 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2013-07-29 18:01:09 +0200 |
commit | f72f42f6ae112202dfd95090bfdf4f3900e290fd (patch) | |
tree | a6517acd176ac40f6cbc0b706c5d072ba70553e1 /config.mk | |
parent | 414c6d396ca0cfb0fe1aa27921b8d7ded5487e17 (diff) |
Simplified Makefile by merging CPPFLAGS into CFLAGS.
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 32 |
1 files changed, 9 insertions, 23 deletions
@@ -24,31 +24,21 @@ else LIBS += $(GTK2LIBS) endif -CFLAGS += $(shell pkg-config --cflags $(LIBS)) -CFLAGS += -Wall -CFLAGS += -pipe -CFLAGS += -ansi -CFLAGS += -std=c99 -CFLAGS += -pedantic -CFLAGS += -Wmissing-declarations -CFLAGS += -Wmissing-parameter-type -CFLAGS += -Wno-overlength-strings - -LDFLAGS += $(shell pkg-config --libs $(LIBS)) -lX11 -lXext -lm - -CPPFLAGS += -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_XOPEN_SOURCE=500 +CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_XOPEN_SOURCE=500 CPPFLAGS += -DPROJECT=\"${PROJECT}\" ifeq ($(USEGTK3), 1) CPPFLAGS += -DHAS_GTK3 endif -#----------------developer options------------------- -DFLAGS += $(CFLAGS) -DFLAGS += -DDEBUG -DFLAGS += -ggdb -DFLAGS += -g +CFLAGS += $(shell pkg-config --cflags $(LIBS)) +CFLAGS += -Wall -pipe -ansi -std=c99 -pedantic +CFLAGS += -Wmissing-declarations -Wmissing-parameter-type -Wno-overlength-strings +CFLAGS += ${CPPFLAGS} + +LDFLAGS += $(shell pkg-config --libs $(LIBS)) -lX11 -lXext -lm + +DFLAGS += $(CFLAGS) -DDEBUG -ggdb -g -#----------------end of options---------------------- OBJ = $(patsubst %.c, %.o, $(wildcard src/*.c)) DOBJ = $(patsubst %.c, %.do, $(wildcard src/*.c)) DEPS = $(OBJ:%.o=%.d) @@ -58,7 +48,3 @@ DTARGET = $(TARGET)_dbg DIST_FILE = $(PROJECT)_$(VERSION).tar.gz MANDIR1 = $(MANDIR)/man1 MAN1 = $(PROJECT).1 - -FMOD = 0644 - -MFLAGS = --no-print-directory |