-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
58 lines (46 loc) · 1.85 KB
/
makefile
File metadata and controls
58 lines (46 loc) · 1.85 KB
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
55
56
57
58
###############################################################
# Author:
# Ankita Dev
###############################################################
LFLAGS = -lglut -lGLU -lGL
###############################################################
# Build the main Lunar Lander game
###############################################################
a.out: driver.o ground.o game.o uiInteract.o uiDraw.o point.o lander.o velocity.o
g++ driver.o ground.o game.o uiInteract.o uiDraw.o point.o lander.o velocity.o $(LFLAGS)
tar -j -cf moonLander.tar makefile *.h *.cpp
###############################################################
# Individual files
# uiDraw.o Draw polygons on the screen and do all OpenGL graphics
# uiInteract.o Handles input events
# point.o The position on the screen
# ground.o Handles the ground / world
# game.o Handles the game interaction
###############################################################
uiDraw.o: uiDraw.cpp uiDraw.h
g++ -c uiDraw.cpp
uiInteract.o: uiInteract.cpp uiInteract.h
g++ -c uiInteract.cpp
point.o: point.cpp point.h
g++ -c point.cpp
ground.o: ground.cpp ground.h
g++ -c ground.cpp
game.o: game.h game.cpp uiDraw.h uiInteract.h point.h ground.h lander.h
g++ -c game.cpp
driver.o: driver.cpp game.h uiInteract.h
g++ -c driver.cpp
#######################################################################
# ADD YOUR ADDITIONAL RULES HERE!
#
# Then, don't forget to add them to the dependecy list for a.out above.
#######################################################################
lander.o: lander.cpp lander.h velocity.h point.h
g++ -c lander.cpp
velocity.o: velocity.cpp velocity.h
g++ -c velocity.cpp
###############################################################
# General rules
###############################################################
clean:
rm a.out *.o *.tar
all: a.out