X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2FMakefile;h=bb70c4f3d74e9cd91076d735f3083ceeb4d35eca;hb=f44384c0c76c6621f049ade9e2de00be4bfeafd0;hp=009128b14550da109e46057c8a0ee9dbf1f8ae27;hpb=321bf62fcb0943a140dbc55bff5350e11c0eb946;p=matches%2FMCTX3420.git diff --git a/server/Makefile b/server/Makefile index 009128b..bb70c4f 100644 --- a/server/Makefile +++ b/server/Makefile @@ -1,11 +1,18 @@ -# Makefile for rpi side server +# Makefile for server software CXX = gcc FLAGS = -std=c99 -Wall -Werror -pedantic -g -LIB = -lpthread -OBJ = log.o sensor.o query.o main.o +LIB = -lfcgi -lssl -lcrypto -lpthread -lm +OBJ = log.o control.o data.o fastcgi.o main.o sensor.o actuator.o RM = rm -f BIN = server +#BIN2 = stream + +all : $(BIN) $(BIN2) + +#stream : stream.c +# $(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 + $(BIN) : $(OBJ) $(CXX) $(FLAGS) -o $(BIN) $(OBJ) $(LIB) @@ -17,11 +24,11 @@ $(BIN) : $(OBJ) clean : - $(RM) $(BIN) + $(RM) $(BIN) $(BIN2) $(RM) *.o clean_full: #cleans up all backup files - $(RM) $(BIN) $(OBJ) $(LINKOBJ) + $(RM) $(BIN) $(BIN2) $(OBJ) $(LINKOBJ) $(RM) *.*~ $(RM) *~