summaryrefslogtreecommitdiff
path: root/tests/test7/Makefile
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-22 14:56:18 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-22 14:56:18 +0000
commite80a4a91ab8cd4721f5007c9d9eb8cfbe997155e (patch)
tree560551bb9081cc044293c1afacd71eaf1ab242c3 /tests/test7/Makefile
parentc8e2aaf6999da491d6ea8dab2bc99752fa94b6d4 (diff)
download2012-violon-leds-e80a4a91ab8cd4721f5007c9d9eb8cfbe997155e.tar.gz
2012-violon-leds-e80a4a91ab8cd4721f5007c9d9eb8cfbe997155e.tar.bz2
2012-violon-leds-e80a4a91ab8cd4721f5007c9d9eb8cfbe997155e.zip
Premier essai d'interface graphique avec Glade 2
git-svn-id: file:///var/svn/2012-violon-leds/trunk@25 6be1fa4d-33ac-4c33-becc-79fcb3794bb6
Diffstat (limited to 'tests/test7/Makefile')
-rw-r--r--tests/test7/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/test7/Makefile b/tests/test7/Makefile
new file mode 100644
index 0000000..04be49c
--- /dev/null
+++ b/tests/test7/Makefile
@@ -0,0 +1,33 @@
+CC=gcc
+GTKBC=gtk-builder-convert
+CFLAGS=-W -Wall -Werror -Wno-error=unused-parameter -g
+LDFLAGS=-export-dynamic -Werror -g
+EXEC=test7
+
+CFLAGS+=$(shell pkg-config --cflags gtk+-2.0 gthread-2.0 libpulse)
+LDFLAGS+=$(shell pkg-config --libs gtk+-2.0 gthread-2.0 libpulse)
+
+SRC= $(wildcard *.c)
+OBJ= $(SRC:.c=.o)
+
+all: $(EXEC)
+
+$(EXEC): $(OBJ)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+#test7.c: win_main.xml
+
+%.xml: %.glade
+ $(GTKBC) $< $@
+
+%.o: %.c
+ $(CC) -o $@ -c $< $(CFLAGS)
+
+.PHONY: clean mrproper
+
+clean:
+ rm *.o *.xml
+
+mrproper: clean
+ rm $(EXEC)
+