Date:2012-10-08 06:12:38 (7 years 2 months ago)
Author:Xiangfu
Commit:5b21495dcfa9ab89c3bb4e32f306f84d7c707625
Message:transfer build flags from outside

Files: Makefile (2 diffs)

Change Details

Makefile
3232       intro-6.png concept-inst.png
3333
3434SHELL = /bin/bash
35
36CPPFLAGS +=
3537CFLAGS_GTK = `pkg-config --cflags gtk+-2.0`
3638LIBS_GTK = `pkg-config --libs gtk+-2.0`
3739
3840CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
3941          -Wmissing-declarations -Wno-format-zero-length
40CFLAGS = -g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' \
42CFLAGS += -g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' \
4143         -DVERSION='"$(GIT_VERSION)$(GIT_STATUS)"' $(CFLAGS_WARN)
4244SLOPPY = -Wno-unused -Wno-implicit-function-declaration \
4345     -Wno-missing-prototypes -Wno-missing-declarations
44LDFLAGS =
46LDFLAGS +=
4547LDLIBS = -lm -lfl $(LIBS_GTK)
4648YACC = bison -y
4749YYFLAGS = -v
...... 
9799# http://scottmcpeak.com/autodepend/autodepend.html
98100
99101%.o: %.c
100        $(CC) -c $(CFLAGS) $*.c -o $*.o
102        $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c -o $*.o
101103        $(call MKDEP, $*)
102104
103105# generate 26x26 pixels icons, then drop the 1-pixel frame

Archive Download the corresponding diff file

Branches:
master



interactive