-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.dep
54 lines (42 loc) · 1.48 KB
/
Makefile.dep
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
51
52
53
54
SUBSYSTEMS = input_sys video_sys update_sys main_sys
TESTS = sys_tests
CC=g++
CCFLAGS = -ansi -g
CFLAGS = $(CCFLAGS)
OBJ = input/input.o main/main.o update/update.o video/video.o update/matrix.o main/flags.o
all : $(SUBSYSTEMS) gravwars
gravwars: input/control.h input/makeflag main/makeflag update/makeflag video/makeflag
$(CC) $(CFLAGS) $(LIB_DIR) $(COMMON_LIBS) -o gravwars $(OBJ)
input_sys :
cd input; gmake -f Makefile.dep LIB_DIR="$(LIB_DIR)"\
INCLUDE_DIR="$(INCLUDE_DIR)"\
COMMON_LIBS="$(COMMON_LIBS)"\
CCFLAGS="$(CCFLAGS)"
video_sys :
cd video; gmake -f Makefile.dep LIB_DIR="$(LIB_DIR)"\
INCLUDE_DIR="$(INCLUDE_DIR)"\
COMMON_LIBS="$(COMMON_LIBS)"\
CCFLAGS="$(CCFLAGS)"
update_sys :
cd update; gmake -f Makefile.dep LIB_DIR="$(LIB_DIR)"\
INCLUDE_DIR="$(INCLUDE_DIR)"\
COMMON_LIBS="$(COMMON_LIBS)"\
CCFLAGS="$(CCFLAGS)"
main_sys :
cd main; gmake -f Makefile.dep LIB_DIR="$(LIB_DIR)"\
INCLUDE_DIR="$(INCLUDE_DIR)"\
COMMON_LIBS="$(COMMON_LIBS)"\
CCFLAGS="$(CCFLAGS)"
sys_tests :
cd tests; gmake -f Makefile.dep LIB_DIR="$(LIB_DIR)"\
INCLUDE_DIR="$(INCLUDE_DIR)"\
COMMON_LIBS="$(COMMON_LIBS)"\
CCFLAGS="$(CCFLAGS)"
clean:
cd input; gmake -f Makefile.dep clean
cd video; gmake -f Makefile.dep clean
cd update; gmake -f Makefile.dep clean
cd main; gmake -f Makefile.dep clean
cd tests; gmake -f Makefile.dep clean
rm -f gravwars
rm -f gravwars.tar*