Get threads to deal with exit conditions, create timestamps
[matches/MCTX3420.git] / server / Makefile
1 # Makefile for server software
2 CXX = gcc
3 FLAGS = -std=c99 -Wall -Werror -pedantic -g
4 LIB = -lpthread -lfcgi -lssl
5 OBJ = log.o sensor.o fastcgi.o thread.o main.o
6 RM = rm -f
7
8 BIN = server
9
10
11 $(BIN) : $(OBJ)
12         $(CXX) $(FLAGS) -o $(BIN) $(OBJ) $(LIB)
13
14
15 %.o : %.c
16         $(CXX) $(FLAGS) -c $<
17
18
19
20 clean :
21         $(RM) $(BIN)
22         $(RM) *.o
23
24 clean_full: #cleans up all backup files
25         $(RM) $(BIN) $(OBJ) $(LINKOBJ)
26         $(RM) *.*~
27         $(RM) *~
28
29
30         

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