X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2FMakefile;h=51dfd8257f5c26f7d5530bcc85ac604b2eb9bbee;hb=3982d051198ced76dcf4ed173098e5e344c0c8c0;hp=f754c472bcb41fd247048b957ab2365dabf9956b;hpb=a668061144aa18eb3f127d1b17518fd6ec0cce73;p=matches%2FMCTX3420.git diff --git a/server/Makefile b/server/Makefile index f754c47..51dfd82 100644 --- a/server/Makefile +++ b/server/Makefile @@ -1,16 +1,20 @@ # Makefile for server software CXX = gcc -FLAGS = -std=c99 -Wall -Werror -pedantic -g -LIB = -lpthread -lfcgi -lssl -lcrypto -OBJ = log.o control.o sensor.o fastcgi.o thread.o main.o +FLAGS = -std=c99 -Wall -pedantic -g -I/usr/include/opencv -I/usr/include/opencv2/highgui -L/usr/lib +LIB = -lfcgi -lssl -lcrypto -lpthread -lm -lopencv_highgui -lopencv_core -lopencv_ml -lopencv_imgproc +OBJ = log.o control.o data.o fastcgi.o main.o sensor.o actuator.o RM = rm -f BIN = server +#BIN2 = stream -all : $(BIN) 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 + $(CXX) $(FLAGS) -o stream stream.c $(LIB) + +intertest : interferometer.c + $(CXX) $(FLAGS) -o intertest interferometer.c $(LIB) $(BIN) : $(OBJ) @@ -23,11 +27,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) *~