1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-22 18:27:22 +02:00

transfer build flags from outside

This commit is contained in:
Xiangfu 2012-10-08 12:12:38 +08:00
parent d76f7d19a8
commit 5b21495dcf

View File

@ -32,16 +32,18 @@ PNGS = intro-1.png intro-2.png intro-3.png intro-4.png intro-5.png \
intro-6.png concept-inst.png
SHELL = /bin/bash
CPPFLAGS +=
CFLAGS_GTK = `pkg-config --cflags gtk+-2.0`
LIBS_GTK = `pkg-config --libs gtk+-2.0`
CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
-Wmissing-declarations -Wno-format-zero-length
CFLAGS = -g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' \
CFLAGS += -g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' \
-DVERSION='"$(GIT_VERSION)$(GIT_STATUS)"' $(CFLAGS_WARN)
SLOPPY = -Wno-unused -Wno-implicit-function-declaration \
-Wno-missing-prototypes -Wno-missing-declarations
LDFLAGS =
LDFLAGS +=
LDLIBS = -lm -lfl $(LIBS_GTK)
YACC = bison -y
YYFLAGS = -v
@ -97,7 +99,7 @@ endif
# http://scottmcpeak.com/autodepend/autodepend.html
%.o: %.c
$(CC) -c $(CFLAGS) $*.c -o $*.o
$(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c -o $*.o
$(call MKDEP, $*)
# generate 26x26 pixels icons, then drop the 1-pixel frame