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

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