summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6facd69d8aa86a36fe53428a3b2dfbe14fc353c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CFLAGS=-g -Wall `pkg-config --cflags libdrm` `pkg-config --cflags egl`
LIBS=`pkg-config --libs egl` -lEGL -lGL -lgbm -lGLEW -ldrm -lX11

OBJ = server_egl.o main.o client.o fdpass.o

all: egl_pass

%.o: %.c
	$(CC) -c -o $@ $< $(CFLAGS)

egl_pass: $(OBJ)
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)

clean:
	rm -f egl_pass $(OBJ)