summaryrefslogtreecommitdiff
path: root/desktop/Makefile
blob: ea5cfc21c3262145ba78b04c8971c2fecdd4ecee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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}` 
LDFLAGS=-lm -pthread `pkg-config --libs ${LIBS}`
BINARIES=vkpc

all : vkpc

vkpc : server.o grab.o vector.o main.o
	${CC} ${LDFLAGS} server.o grab.o vector.o main.o -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