-# 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 = -lpthread -lfcgi -lssl -lcrypto
+OBJ = log.o control.o sensor.o fastcgi.o thread.o main.o
RM = rm -f
BIN = server
+
$(BIN) : $(OBJ)
$(CXX) $(FLAGS) -o $(BIN) $(OBJ) $(LIB)