forked from SonsOfTone/RaspberrIP-Camera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (16 loc) · 1.38 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Written By Antoine DUBOST-BULARD 25/10/2014
INCLUDES = -I../live555/UsageEnvironment/include -I../live555/groupsock/include -I../live555/liveMedia/include -I../live555/BasicUsageEnvironment/include -I$(SDKSTAGE)/opt/vc/include/ -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I$(SDKSTAGE)/opt/vc/include/interface/vmcs_host/linux -I./ -I/usr/include/libxml2
COMPILE_OPTS = $(INCLUDES) -Wall -I. -O2
C_FLAGS = $(COMPILE_OPTS)
CPLUSPLUS_FLAGS = $(COMPILE_OPTS)
LDFLAGS+= -rdynamic -L$(SDKSTAGE)/opt/vc/lib/ -L/home/pi/share/RaspIPCam_0.7/RaspIPCam -lvcos -lmmal -lmmal_core -lmmal_util -lpthread -lbcm_host -lmmal_components -lxml2
all: RaspiVid.c
gcc $(CFLAGS) $(INCLUDES) -c -o RaspiCamControl.o RaspiCamControl.c
gcc $(CFLAGS) $(INCLUDES) -c -o RaspiCLI.o RaspiCLI.c
gcc $(CFLAGS) $(INCLUDES) -c -o RaspiPreview.o RaspiPreview.c
gcc $(CFLAGS) $(INCLUDES) -c -o RaspiVid.o RaspiVid.c
g++ $(CPLUSPLUS_FLAGS) $(INCLUDES) -g -c H264Streamer.cpp -o H264Streamer.o
g++ $(CPLUSPLUS_FLAGS) $(INCLUDES) -g -c MyDeviceSource.cpp -o MyDeviceSource.o
g++ RaspiCamControl.o RaspiCLI.o RaspiPreview.o RaspiVid.o H264Streamer.o MyDeviceSource.o $(LDFLAGS) -rdynamic ../live555/liveMedia/libliveMedia.a ../live555/groupsock/libgroupsock.a ../live555/BasicUsageEnvironment/libBasicUsageEnvironment.a ../live555/UsageEnvironment/libUsageEnvironment.a -o RaspberrIPCam
clean:
-rm -rf *.o RaspberrIPCam