Tfe

Ongi etorri tfe-ren webgunera...

Old stuff/ecole_etude_fac_de_pau/licence_3/projet_commun_se/backup09/Makefile

(Deskargatu)
flag=-D DEBUG -D  DEBUG_GERER_COM -Wall -g -O3

#flag=-D DEBUG -Wall -g -O3

# DEBUG
# Extra warnings
# debug messages
# optimisation 3

barman: barman.o include/bar_gerer_com.o include/bar_ordo.o include/bar_security.o include/shm.o include/tcp.o  include/brune.o include/blonde.o  include/global.o
	gcc $(flag) barman.o include/bar_gerer_com.o include/bar_ordo.o include/bar_security.o include/shm.o include/tcp.o include/demandes.o include/brune.o include/blonde.o include/global.o -o barman 
	

client: client.o include/tcp.o include/demandes.o
	gcc $(flag) client.o include/tcp.o include/demandes.o -o client



client.o: include/global.o
	gcc $(flag) -c client.c -o client.o

include/global.o:
	gcc $(flag) -c include/global.c -o  include/global.o 

barman.o:  include/brune.o include/blonde.o
	gcc $(flag) -c barman.c
	

include/bar_gerer_com.o: include/demandes.o include/shm.o include/tcp.o
	gcc $(flag) -c include/bar_gerer_com.c -o include/bar_gerer_com.o
	

include/demandes.o: 
	gcc $(flag) -c include/demandes.c -o include/demandes.o

include/bar_ordo.o: include/shm.o include/global.o include/demandes.o
	gcc $(flag) -c include/bar_ordo.c -o include/bar_ordo.o
	
include/bar_security.o:
	gcc $(flag) -c include/bar_security.c -o include/bar_security.o

include/shm.o:
	gcc $(flag) -c include/shm.c -o include/shm.o

include/tcp.o:
	gcc $(flag) -c include/tcp.c -o include/tcp.o

include/brune.o: include/shm.o include/demandes.o include/global.o
	gcc $(flag) -c include/brune.c  -o include/brune.o
	
include/blonde.o: include/shm.o include/demandes.o  include/global.o
	gcc $(flag) -c include/blonde.c  -o include/blonde.o
clean:
	rm -f barman client
	rm -f *.o
	rm -f include/*.o