-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 922 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 922 Bytes
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
CFLAGS= -g -Wall -O2 -ansi -pedantic -Wno-unused-result
CC = gcc -g
RM = rm
LDFLAGS= -lglut -lGLU -lGL -lm
#-------------------------------------------------
riverraid: main.o utils.o cenario.o enemyQueue.o enemy.o ship.o shot.o shotQueue.o
$(CC) -lm main.o utils.o cenario.o enemyQueue.o enemy.o ship.o shot.o shotQueue.o -o riverraid $(LDFLAGS) -lm
main.o: main.c utils.h cenario.h enemyQueue.h enemy.h ship.h shot.h
$(CC) -c main.c
utils.o: utils.h utils.c
$(CC) -c utils.c
cenario.o: cenario.h cenario.c enemyQueue.h utils.h ship.h enemy.h
$(CC) -c cenario.c
enemyQueue.o: enemyQueue.h enemyQueue.c utils.h enemy.h
$(CC) -c enemyQueue.c
shotQueue.o: shotQueue.h shotQueue.c utils.h shot.h
$(CC) -c shotQueue.c
enemy.o: enemy.h enemy.c utils.h shot.h
$(CC) -c enemy.c
ship.o: ship.h ship.c utils.c utils.h shot.h
$(CC) -c ship.c
shot.o: shot.h shot.c utils.h
$(CC) -c shot.c
clean:
rm *.o *~