summaryrefslogtreecommitdiff
path: root/tests/test6/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test6/Makefile')
-rw-r--r--tests/test6/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/test6/Makefile b/tests/test6/Makefile
new file mode 100644
index 0000000..560ff03
--- /dev/null
+++ b/tests/test6/Makefile
@@ -0,0 +1,30 @@
+CC=gcc
+CFLAGS=-W -Wall -Werror -Wno-error=unused-parameter -g
+LDFLAGS=-Werror -g
+EXEC=test6
+
+#CFLAGS+=$(shell pkg-config --cflags gtk+-2.0 gthread-2.0 libpulse)
+#LDFLAGS+=$(shell pkg-config --libs gtk+-2.0 gthread-2.0 libpulse)
+LDFLAGS+=-lm
+
+SRC= $(wildcard *.c)
+OBJ= $(SRC:.c=.o)
+
+all: $(EXEC)
+
+$(EXEC): $(OBJ)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+#main.o: hello.h
+
+%.o: %.c
+ $(CC) -o $@ -c $< $(CFLAGS)
+
+.PHONY: clean mrproper
+
+clean:
+ rm *.o
+
+mrproper: clean
+ rm $(EXEC)
+