-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (35 loc) · 1.46 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
47
48
49
50
OBJS = missile-command.o functions.o start.o prep.o game.o end.o highscore.o threading/list.o threading/thread.o threading/scheduler.o threading/sleeper.o threading/input.o
SOURCE = missile-command.c functions.c start.c prep.c game.c end.c highscore.c threading/list.c threading/thread.c threading/scheduler.c threading/sleeper.c threading/input.c
HEADER = functions.h start.h prep.h game.h end.h highscore.h threading/list.h threading/thread.h threading/scheduler.h threading/sleeper.h threading/input.h
OUT = missile-command
CC = gcc
FLAGS = -g -c -Wall
LFLAGS = -lm -lncurses -lpthread
all: $(OBJS)
$(CC) -g $(OBJS) -o $(OUT) $(LFLAGS)
missile-command.o: missile-command.c
$(CC) $(FLAGS) missile-command.c
functions.o: functions.c
$(CC) $(FLAGS) functions.c
start.o: start.c
$(CC) $(FLAGS) start.c
prep.o: prep.c
$(CC) $(FLAGS) prep.c
game.o: game.c
$(CC) $(FLAGS) game.c
end.o: end.c
$(CC) $(FLAGS) end.c
highscore.o: highscore.c
$(CC) $(FLAGS) highscore.c
threading/list.o: threading/list.c
$(CC) $(FLAGS) threading/list.c -o threading/list.o
threading/thread.o: threading/thread.c
$(CC) $(FLAGS) threading/thread.c -o threading/thread.o
threading/scheduler.o: threading/scheduler.c
$(CC) $(FLAGS) threading/scheduler.c -o threading/scheduler.o
threading/sleeper.o: threading/sleeper.c
$(CC) $(FLAGS) threading/sleeper.c -o threading/sleeper.o
threading/input.o: threading/input.c
$(CC) $(FLAGS) threading/input.c -o threading/input.o
clean:
rm -f $(OBJS) $(OUT)