Updating branch refs/heads/master to e767224f8c47a03a3aba8b5a937c8f24876b2a6d (commit) from 1836d4aac09c5b8afae2b788d88da38011d48cae (commit)
commit e767224f8c47a03a3aba8b5a937c8f24876b2a6d Author: Nick Schermer <n...@xfce.org> Date: Sat Jun 4 17:19:51 2011 +0200 Add better makefile. .../merge-with-xfrun/demo-code/c/Makefile | 23 ++++++++++--------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/xfce4-appfinder/merge-with-xfrun/demo-code/c/Makefile b/xfce4-appfinder/merge-with-xfrun/demo-code/c/Makefile index 0d46187..fe3261a 100644 --- a/xfce4-appfinder/merge-with-xfrun/demo-code/c/Makefile +++ b/xfce4-appfinder/merge-with-xfrun/demo-code/c/Makefile @@ -1,12 +1,13 @@ -all: - gcc -Wall -Werror -O2 -pipe \ - `pkg-config --libs --cflags gtk+-2.0` \ - `pkg-config --libs --cflags libxfce4util-1.0` \ - `pkg-config --libs --cflags garcon-1` \ - `pkg-config --libs --cflags gthread-2.0` \ - `pkg-config --libs --cflags libxfce4ui-1` \ - main.c appfinder-window.c appfinder-window.h \ - appfinder-model.c appfinder-model.h \ - appfinder-category-model.c appfinder-category-model.h \ - -o appfinder +CFLAGS= -Wall -Werror -O2 -pipe `pkg-config --libs --cflags gtk+-2.0 libxfce4util-1.0 garcon-1 gthread-2.0 libxfce4ui-1` +DEPS = appfinder-window.h appfinder-model.h appfinder-category-model.h +OBJ = appfinder-window.o appfinder-model.o appfinder-category-model.o main.o + +%.o: %.c $(DEPS) + gcc -c -o $@ $< $(CFLAGS) + +appfinder: $(OBJ) + gcc -o $@ $^ $(CFLAGS) + +clean: + rm *.o appfinder _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits