-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (33 loc) · 1.54 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#########################################################
# File: Makefile
# Description: rudimentary makefile for Monoceros project
# Authors: Chris Spravka, Matthew Feidt, Chad Erdwins
# or just...
# gcc -o main main.c menu.h menu.c gamePlay.c gamePlay.h sprites.c sprites.h effects.c effects.h levels.c levels.h interfaces.h -lncurses -lm
#########################################################
#CFLAGS = -Wall -fpic -coverage -lm -std=c99 -D_XOPEN_SOURCE_EXTENDED
CFLAGS = -lncursesw -lm -Wall -std=gnu99
default: all
menu.o: menu.c menu.h
gcc -c menu.c -g $(CFLAGS)
tcp_client.o: tcp_client.h tcp_client.c
gcc -c tcp_client.c -g $(CFLAGS)
gamePlay.o: gamePlay.c gamePlay.h interfaces.h
gcc -c gamePlay.c -g $(CFLAGS)
sprites.o: sprites.c sprites.h interfaces.h
gcc -c sprites.c -g $(CFLAGS)
effects.o: effects.c effects.h interfaces.h
gcc -c effects.c -g $(CFLAGS)
levels.o: levels.c levels.h interfaces.h planet.h
gcc -c levels.c -g $(CFLAGS)
planet.o: levels.o planet.h planet.c interfaces.h
gcc -c planet.c -g $(CFLAGS)
ai.o: ai.c ai.h interfaces.h
gcc -c ai.c -g $(CFLAGS)
scores.o: scores.c scores.h
gcc -c scores.c -g $(CFLAGS)
all: menu.o sprites.o gamePlay.o effects.o main.c levels.o planet.o ai.o scores.o interfaces.h tcp_client.o tcp_client.h tcp_server.c
gcc -o main main.c -g menu.o sprites.o gamePlay.o effects.o levels.o planet.o ai.o scores.o tcp_client.o $(CFLAGS)
gcc -o server tcp_server.c -g gamePlay.o tcp_client.o effects.o sprites.o levels.o menu.o planet.o ai.o scores.o $(CFLAGS)
clean:
rm -f *.o *.tmp main server