diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-15 18:24:14 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-15 18:24:14 +0400 |
commit | 6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5 (patch) | |
tree | 8a43922891e4f5eb7909d8d2b80f64235760e18d /saedit/Makefile | |
parent | 34dbe2ca8daae2595ee6ff37632a15e68fcc7fc2 (diff) | |
download | evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.gz evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.bz2 evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.xz evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.zip |
saedit: Review code and add some features
Diffstat (limited to 'saedit/Makefile')
-rw-r--r-- | saedit/Makefile | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/saedit/Makefile b/saedit/Makefile index 7c62f6f..19158d3 100644 --- a/saedit/Makefile +++ b/saedit/Makefile @@ -1,8 +1,35 @@ -GTK_FLAGS = $(shell pkg-config gtk+-2.0 --cflags --libs) $(shell pkg-config gtksourceview-2.0 --cflags --libs) -IBUS_FLAGS = $(shell pkg-config ibus-1.0 --cflags --libs) +ifndef CFLAGS + CFLAGS = -O2 -pipe +endif + +ifndef LDFLAGS + LDFLAGS = +endif + +LDFLAGS += -export-dynamic + +GTK_CFLAGS = `pkg-config --cflags gtk+-2.0 gtksourceview-2.0` +IBUS_CFLAGS = `pkg-config --cflags ibus-1.0` + +GTK_LDFLAGS = `pkg-config --libs gtk+-2.0 gtksourceview-2.0` +IBUS_LDFLAGS = `pkg-config --libs ibus-1.0` + +IBUS_FLAGS = ${IBUS_CFLAGS} ${IBUS_LDFLAGS} +GTK_FLAGS = ${GTK_CFLAGS} ${GTK_LDFLAGS} + OUTPUT = saedit -all:compile clean -compile: - gcc -ggdb3 -O2 ${CFLAGS} ${GTK_FLAGS} ${IBUS_FLAGS} ${LDFLAGS} main.c -o '${OUTPUT}' +all:clean main.o search.o config.o xml.o sae.o compile +compile: main.o search.o config.o xml.o + gcc ${CFLAGS} ${GTK_FLAGS} ${IBUS_FLAGS} ${LDFLAGS} -o '${OUTPUT}' main.o search.o config.o xml.o sae.o +main.o: main.c main.h search.h config.h common.h xml.h + gcc ${CFLAGS} ${GTK_CFLAGS} ${IBUS_CFLAGS} -c -o main.o main.c +search.o: search.c search.h common.h + gcc ${CFLAGS} ${GTK_CFLAGS} -c -o search.o search.c +xml.o: xml.c xml.h common.h + gcc ${CFLAGS} ${IBUS_FLAGS} -c -o xml.o xml.c +config.o: config.c config.h common.h + gcc ${CFLAGS} ${GTK_CFLAGS} ${IBUS_FLAGS} -c -o config.o config.c +sae.o: sae.c sae.h common.h + gcc ${CFLAGS} ${GTK_CFLAGS} ${IBUS_CFLAGS} -c -o sae.o sae.c clean: - rm -rfv *.o~ *.c~ *.h~ + rm -rfv '${OUTPUT}' *.o *.o~ *.c~ *.h~ |