2017-12-03 15:22:49 +00:00
|
|
|
BINARY=looking-glass-client
|
|
|
|
CFLAGS=-g -O3 -std=gnu99 -march=native -Wall -Werror -I../common -DDEBUG
|
2017-11-18 23:46:20 +00:00
|
|
|
LDFLAGS=-lrt
|
2017-10-19 04:15:49 +00:00
|
|
|
|
|
|
|
CFLAGS+=`pkg-config --cflags sdl2`
|
|
|
|
LDFLAGS+=`pkg-config --libs sdl2`
|
|
|
|
|
2017-12-02 05:39:44 +00:00
|
|
|
CFLAGS+=`pkg-config --cflags SDL2_ttf`
|
|
|
|
LDFLAGS+=`pkg-config --libs SDL2_ttf`
|
|
|
|
|
2017-11-18 23:46:20 +00:00
|
|
|
CFLAGS+=`pkg-config --cflags gl`
|
|
|
|
LDFLAGS+=`pkg-config --libs gl`
|
|
|
|
|
|
|
|
CFLAGS+=`pkg-config --cflags glu`
|
|
|
|
LDFLAGS+=`pkg-config --libs glu`
|
|
|
|
|
2017-10-19 04:15:49 +00:00
|
|
|
CFLAGS+=`pkg-config --cflags libssl openssl`
|
|
|
|
LDFLAGS+=`pkg-config --libs libssl openssl`
|
|
|
|
|
|
|
|
CFLAGS+=`pkg-config --cflags spice-protocol`
|
|
|
|
|
|
|
|
all:
|
2017-11-25 12:15:16 +00:00
|
|
|
mkdir -p bin
|
|
|
|
gcc ${CFLAGS} -o bin/${BINARY} main.c spice/spice.c ivshmem/ivshmem.c ${LDFLAGS}
|