You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					36 lines
				
				820 B
			
		
		
			
		
	
	
					36 lines
				
				820 B
			| 
								 
											6 years ago
										 
									 | 
							
								CC = clang
							 | 
						||
| 
								 | 
							
								CXX = clang++
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								PHONELIBS = ../../../phonelibs
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								WARN_FLAGS = -Werror=implicit-function-declaration \
							 | 
						||
| 
								 | 
							
								             -Werror=incompatible-pointer-types \
							 | 
						||
| 
								 | 
							
								             -Werror=int-conversion \
							 | 
						||
| 
								 | 
							
								             -Werror=return-type \
							 | 
						||
| 
								 | 
							
								             -Werror=format-extra-args \
							 | 
						||
| 
								 | 
							
								             -Wno-deprecated-declarations
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								CFLAGS = -std=gnu11 -g -fPIC -O2 $(WARN_FLAGS)
							 | 
						||
| 
								 | 
							
								CXXFLAGS = -std=c++11 -g -fPIC -O2 $(WARN_FLAGS)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								FFMPEG_LIBS = -lavformat \
							 | 
						||
| 
								 | 
							
								              -lavcodec \
							 | 
						||
| 
								 | 
							
								              -lswscale \
							 | 
						||
| 
								 | 
							
								              -lavutil \
							 | 
						||
| 
								 | 
							
								              -lz
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								OBJS = testraw.o \
							 | 
						||
| 
								 | 
							
								       ../RawLogger.o \
							 | 
						||
| 
								 | 
							
								       ../../common/visionipc.o
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								testraw: $(OBJS)
							 | 
						||
| 
								 | 
							
									$(CXX) -fPIC -o '$@' $^ -L/usr/lib $(FFMPEG_LIBS)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								%.o: %.cc
							 | 
						||
| 
								 | 
							
									@echo "[ CXX ] $@"
							 | 
						||
| 
								 | 
							
									$(CXX) $(CXXFLAGS) \
							 | 
						||
| 
								 | 
							
								         -I../ \
							 | 
						||
| 
								 | 
							
								         -I../../ \
							 | 
						||
| 
								 | 
							
								         -I../../../ \
							 | 
						||
| 
								 | 
							
								         -c -o '$@' '$<'
							 |