-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
35 lines (31 loc) · 1.08 KB
/
Makefile
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
30
31
32
33
34
35
LIBS+=-ljrtp -lpthread -ljthread
CFLAGS+=-ISDL -LSDL-Irtp/jthread/include -Irtp/jrtplib/include/jrtplib3 -Lrtp/jthread/lib -Lrtp/jrtplib/lib/ -g
OBJ+=v4l2.o sdl_view.o imgproc.o
CC=gcc
CXX=g++
ARM_CC=arm-linux-gcc
ARM_CXX=arm-linux-g++
ARM_LIBS=-ljrtplib -lpthread -ljthread
ARM_CFLAGS=-I/usr/local/arm_rtp/include -I/usr/local/arm_rtp/include/jrtplib3 -L/usr/local/arm_rtp/jrtplib/lib -L/usr/local/arm_rtp/jthread/lib -g
all:clean r s
r:$(OBJ)
@echo BUILDING reciever....
@g++ -c rtp_recv.cpp $(CFLAGS) $(LIBS)
@g++ -o reciever recv.cpp rtp_recv.o sdl_view.o $(CFLAGS) $(LIBS) -lSDL -lSDL_image
@g++ rd.cpp $(CFLAGS) $(LIBS) -o RD
s:$(OBJ)
@echo BUILDING sender....
@g++ -o sender v4l2_sendrtp.cpp v4l2.o imgproc.o $(LIBS) $(CFLAGS)
@g++ sd.cpp $(CFLAGS) $(LIBS) -o SD
arm:clean
@$(ARM_CC) -c v4l2.c
@$(ARM_CC) -c imgproc.c
@echo BUILDING sender....
@$(ARM_CXX) -o sender v4l2_sendrtp.cpp v4l2.o imgproc.o $(ARM_CFLAGS) $(ARM_LIBS)
cp sender /srv/tftp/send
%.o:%.c
@echo BUILDING $@....
@$(CC) -c $< $(CFLAGS) $(LIBS)
clean:
-@rm -rf reciever sender
-@rm *.o