X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2FMakefile;h=b674ab0c6e7b5d6744fd2e9ef39a78b3b5dc70ea;hb=685168f14cc0129bc5f49e476602d223563e6660;hp=95cd03e33f6742d76b147e95ee62508c0864e19f;hpb=259624013535f3c93315868efb5f6f611ba88470;p=matches%2FMCTX3420.git diff --git a/server/Makefile b/server/Makefile index 95cd03e..b674ab0 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 test_request.o main.o +LIB = -lfcgi -lssl -lcrypto -lpthread -lm +OBJ = log.o control.o sensor.o fastcgi.o thread.o main.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) *~