Merge pull request #24 from jtanx/master
[matches/MCTX3420.git] / server / Makefile
index e85a72e..f754c47 100644 (file)
@@ -1,12 +1,17 @@
 # Makefile for server software
 CXX = gcc
 FLAGS = -std=c99 -Wall -Werror -pedantic -g
-LIB = -lpthread -lfcgi -lssl
-OBJ = log.o sensor.o fastcgi.o thread.o main.o
+LIB = -lpthread -lfcgi -lssl -lcrypto
+OBJ = log.o control.o sensor.o fastcgi.o thread.o main.o
 RM = rm -f
 
 BIN = server
 
+all : $(BIN) stream
+
+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 
+
 
 $(BIN) : $(OBJ)
        $(CXX) $(FLAGS) -o $(BIN) $(OBJ) $(LIB)

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