summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..835a701
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+PROGS = midinator
+
+CFLAGS = -O2 -Wall -g ${INCLUDES}
+CAIRO_CFLAGS=${CFLAGS} `pkg-config --cflags cairo`
+GTK_CFLAGS=${CAIRO_CFLAGS} `pkg-config --cflags gtk+-2.0`
+
+LIBS =
+CAIRO_LIBS=${LIBS} `pkg-config --libs cairo`
+GTK_LIBS=${CAIRO_LIBS} `pkg-config --libs gtk+-2.0`
+
+all: ${PROGS}
+
+midinator: midinator.o
+ gcc midinator.o -o midinator ${LIBS}
+
+midinator.o: midinator.c
+ gcc -c midinator.c -o midinator.o ${CFLAGS}
+
+clean:
+ rm -f ${PROGS} *.o
+
+.PHONEY: all