|
@@ -3,7 +3,7 @@
|
|
|
#
|
|
|
|
|
|
EXEC = main
|
|
|
-OBJETS = str.o json_parser.o json_encoder.o error.o arraylist.o server_tcp.o server_udp.o
|
|
|
+OBJETS = str.o json_parser.o json_encoder.o error.o arraylist.o server_tcp.o server_udp.o bomberstudent_server.o
|
|
|
NOM_PROJET = Porjet Reseau
|
|
|
|
|
|
#
|
|
@@ -27,7 +27,7 @@ CC = gcc
|
|
|
CCFLAGS_STD = -Wall -O3 -Werror -ansi -pedantic -std=c11
|
|
|
CCFLAGS_DEBUG = -D _DEBUG_
|
|
|
CCFLAGS = $(CCFLAGS_STD)
|
|
|
-CCLIBS = -lncurses -lm
|
|
|
+CCLIBS = -lm -pthread
|
|
|
|
|
|
#
|
|
|
# REGLES
|
|
@@ -63,6 +63,7 @@ clean:
|
|
|
@rm -f *~ *#
|
|
|
@rm -f $(EXEC)
|
|
|
@rm -f dependances
|
|
|
+ @rm -f *.log
|
|
|
@echo "Termine."
|
|
|
|
|
|
depend:
|
|
@@ -75,6 +76,11 @@ depend:
|
|
|
@cat dependances > makefile
|
|
|
@rm dependances
|
|
|
@echo "Termine."
|
|
|
+
|
|
|
+rmlog:
|
|
|
+ @echo "Suppresion des fichiers de log"
|
|
|
+ @rm -f *.log
|
|
|
+ @echo "Termine."
|
|
|
|
|
|
#
|
|
|
# CREATION ARCHIVE
|
|
@@ -93,6 +99,8 @@ json_parser.o: json_parser.c json.h str.h constante.h
|
|
|
json_encoder.o: json_encoder.c json.h str.h constante.h
|
|
|
error.o: error.c str.h error.h
|
|
|
arraylist.o: arraylist.c str.h arraylist.h constante.h
|
|
|
-server_tcp.o: server_tcp.c error.h server.h
|
|
|
-server_udp.o: server_udp.c error.h server.h
|
|
|
-main.o: main.c json.h str.h constante.h arraylist.h
|
|
|
+server_tcp.o: server_tcp.c error.h server.h constante.h
|
|
|
+server_udp.o: server_udp.c error.h server.h constante.h
|
|
|
+bomberstudent_server.o: bomberstudent_server.c server.h constante.h \
|
|
|
+ bomberstudent_server.h
|
|
|
+main.o: main.c json.h str.h constante.h arraylist.h server.h error.h
|