summaryrefslogtreecommitdiff
path: root/desktop/Makefile
diff options
context:
space:
mode:
authorch1p <ch1p@ch1p.com>2013-12-29 17:43:49 +0200
committerch1p <ch1p@ch1p.com>2013-12-29 17:58:09 +0200
commitbdc7ff9d08b2f4030e0c27c7752c4bdf2fed6172 (patch)
tree05f298f71867f7896598fad59f11c10e42c126e2 /desktop/Makefile
parent8bd03b4f9c56e12542096e7b946ff196c3e394c2 (diff)
initial commit
Diffstat (limited to 'desktop/Makefile')
-rw-r--r--desktop/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/desktop/Makefile b/desktop/Makefile
new file mode 100644
index 0000000..49e6f7a
--- /dev/null
+++ b/desktop/Makefile
@@ -0,0 +1,29 @@
+LIBS = gtk+-2.0 glib-2.0 cairo pango gdk-pixbuf-2.0 atk libwebsockets x11
+CC = gcc
+CCFLAGS = -Wall -std=c99 -pthread `pkg-config --cflags --libs ${LIBS}`
+LDFLAGS = -lm
+BINARIES = vkpc
+
+all : vkpc
+
+vkpc : server.o grab.o vector.o main.o
+ ${CC} ${CCFLAGS} server.o grab.o vector.o main.o ${LDFLAGS} -o vkpc
+
+server.o : server.c
+ ${CC} ${CCFLAGS} -c server.c
+
+grab.o : grab.c
+ ${CC} ${CCFLAGS} -c grab.c
+
+vector.o : vector.c
+ ${CC} ${CCFLAGS} -c vector.c
+
+main.o : main.c
+ ${CC} ${CCFLAGS} -c main.c
+
+install:
+ cp vkpc /usr/bin
+ sh install_icons.sh
+
+clean:
+ rm -f $(BINARIES) *.o