Fix dilatometer, other misc stuff
[matches/MCTX3420.git] / server / Makefile
1 # Makefile for server software
2 CXX = gcc
3 FLAGS = -std=gnu99 -Wall -pedantic -g -I/usr/include/opencv -I/usr/include/opencv2/highgui -L/usr/lib `mysql_config --cflags`
4 LIB = -lfcgi -lssl -lcrypto -lpthread -lm -lopencv_highgui -lopencv_core -lopencv_ml -lopencv_imgproc -lldap -lcrypt `mysql_config --libs`
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 actuators/actuators.a
6 RM = rm -f
7
8 BIN = server
9 #BIN2 = stream
10
11 all :
12         $(MAKE) -C sensors
13         $(MAKE) -C actuators
14         $(MAKE) $(BIN)
15
16
17
18 $(BIN) : $(OBJ)
19         $(CXX) $(FLAGS) -o $(BIN) $(OBJ) $(LIB)
20
21 microscope : microscope.o
22         $(CXX) $(FLAGS) -o microscope microscope.o $(LIB)
23
24
25 %.o : %.c
26         $(CXX) $(FLAGS) -c $<
27
28
29 clean :
30         make -C sensors clean
31         $(RM) $(BIN) $(BIN2)
32         $(RM) *.o
33
34 clean_full: #cleans up all backup files
35         make -C sensors clean_full
36         $(RM) $(BIN) $(BIN2) $(OBJ) $(LINKOBJ)
37         $(RM) *.*~
38         $(RM) *~
39
40
41         

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