blob: f4cd8bb9a0983c1e950e1fd3a0aeee70844e26ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
include ../../ecp/Makefile.platform
LIBVPX_HOME=/opt/my/libvpx
CFLAGS=$(CFLAGS_PL) -D_V4L2_KERNEL_ -I/usr/src/linux-headers-$(uname -r) -I$(LIBVPX_HOME) -I/opt/local/include/SDL2 -I../../ecp -I../../util -Wno-int-to-void-pointer-cast
LDFLAGS=-L$(LIBVPX_HOME) -L/opt/local/lib $(LDFLAGS_PL)
dep=../../ecp/build-posix/*.a ../../util/libecputil.a ../init_vconn.o
all: cap
%.o: %.c
$(CC) $(CFLAGS) -c $<
cap: cap.o enc.o tools.o server.o
$(CC) -o $@ $(LDFLAGS) -lvpx $< enc.o tools.o server.o $(dep)
client: client.o display.o tools.o
$(CC) -o $@ $(LDFLAGS) -lvpx -lSDL2 $< display.o tools.o $(dep)
clean:
rm -f *.o
rm -f cap client
|