summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8a4edfd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+love: gbeat
+.PHONY: love clean
+
+CC=gcc
+PKGS=glib-2.0 gtk+-2.0 libglade-2.0 gthread-2.0 fftw3 alsa
+CFLAGS=-std=gnu99 -Wall -Wextra -pedantic -Wno-unused-parameter -g -O0 \
+ `pkg-config --cflags $(PKGS)`
+LDFLAGS=-g -lm `pkg-config --libs $(PKGS)` -rdynamic
+
+clean:
+ rm -f *.o gbeat
+
+gbeat: galsa.o gfft.o gbeat.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
+%.o: %.c *.h
+ $(CC) $(CFLAGS) -c -o $@ $<
+