aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-08-15 20:49:23 +0200
committerJavier <dev.git@javispedro.com>2014-08-15 20:49:23 +0200
commit9694ec75ab1464b3699ef367f3800e60bef0cc7a (patch)
tree645c4d0fc9b8c71162cdf9f4ac572904b0bc4079 /Makefile
downloadcoveraudiod-9694ec75ab1464b3699ef367f3800e60bef0cc7a.tar.gz
coveraudiod-9694ec75ab1464b3699ef367f3800e60bef0cc7a.zip
initial import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f186a15
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+CFLAGS:=-Wall -O0 -ggdb
+
+pkgmodules:=glib-2.0 libpulse-mainloop-glib sndfile x11 xi
+includes:=$(shell pkg-config --cflags $(pkgmodules))
+libs:=$(shell pkg-config --libs $(pkgmodules))
+objs:=main.o x11.o audio.o key.o
+
+all: coveraudiod
+
+coveraudiod: $(objs)
+ $(CC) -o $@ $+ $(libs)
+
+$(objs): %.o: %.c
+ $(CC) -std=c99 $(includes) $(CFLAGS) -o $@ -c $<
+
+clean:
+ rm -f *.o coveraudiod
+
+install: coveraudiod
+ install coveraudiod $(DESTDIR)/usr/bin
+ install -d $(DESTDIR)/usr/share/coveraudiod
+ install *.wav $(DESTDIR)/usr/share/coveraudiod/
+
+.PHONY: all clean install
+