MAJOR refactoring of Sensors code
[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 -lcrypt
5 OBJ = log.o control.o data.o fastcgi.o main.o sensor.o actuator.o image.o bbb_pin.o pin_test.o login.o sensors/sensors.a
6 RM = rm -f
7
8 BIN = server
9 #BIN2 = stream
10
11 all :
12         $(MAKE) -C sensors
13         $(MAKE) $(BIN)
14
15
16
17 $(BIN) : $(OBJ)
18         $(CXX) $(FLAGS) -o $(BIN) $(OBJ) $(LIB)
19
20
21 %.o : %.c
22         $(CXX) $(FLAGS) -c $<
23
24
25 clean :
26         make -C sensors clean
27         $(RM) $(BIN) $(BIN2)
28         $(RM) *.o
29
30 clean_full: #cleans up all backup files
31         make -C sensors clean_full
32         $(RM) $(BIN) $(BIN2) $(OBJ) $(LINKOBJ)
33         $(RM) *.*~
34         $(RM) *~
35
36
37         

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