a87fdcde70d757b9f78df897cbd3a10e8417051d
[matches/MCTX3420.git] / server / Makefile
1 # Makefile for server software
2 CXX = gcc
3 FLAGS = -std=c99 -Wall -pedantic -g -I/usr/include/opencv -I/usr/include/opencv2/highgui -L/usr/lib
4 LIB = -lfcgi -lssl -lcrypto -lpthread -lm -lopencv_highgui -lopencv_core -lopencv_ml -lopencv_imgproc -lldap
5 OBJ = log.o control.o data.o fastcgi.o main.o sensor.o actuator.o image.o bbb_pin.o bbb_pin_defines.o pin_test.o login.o
6 RM = rm -f
7
8 BIN = server
9 #BIN2 = stream
10
11 all : $(BIN) $(BIN2)
12
13
14 $(BIN) : $(OBJ)
15         $(CXX) $(FLAGS) -o $(BIN) $(OBJ) $(LIB)
16
17
18 %.o : %.c
19         $(CXX) $(FLAGS) -c $<
20
21
22
23 clean :
24         $(RM) $(BIN) $(BIN2)
25         $(RM) *.o
26
27 clean_full: #cleans up all backup files
28         $(RM) $(BIN) $(BIN2) $(OBJ) $(LINKOBJ)
29         $(RM) *.*~
30         $(RM) *~
31
32
33         

UCC git Repository :: git.ucc.asn.au