-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 1.34 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
# Copyright (c) 2013 Auston Sterling
# See license.txt for copying permission.
# See the file license.txt for copying permission.
CC=g++
CFLAGS=-g -c -Wall -std=c++0x
LDFLAGS=-Wall -lSDLmain -lSDL -lSDL_image -lSDL_ttf -std=c++0x
OUTPUT=-o galcon
all: galcon
galcon: building.o fleet.o planet.o rotationcache.o scale.o galcon.o projectile.o buildingInstance.o ai.o lineDrawer.o
$(CC) building.o fleet.o planet.o rotationcache.o scale.o galcon.o projectile.o buildingInstance.o ai.o lineDrawer.o $(LDFLAGS) $(OUTPUT)
galcon.o: galcon.cpp planet.o fleet.o ai.o vec2f.h
$(CC) galcon.cpp $(CFLAGS)
building.o: building.cpp building.h rotationcache.o vec2f.h
$(CC) building.cpp $(CFLAGS)
fleet.o: fleet.cpp fleet.h planet.o vec2f.h shipstats.h
$(CC) fleet.cpp $(CFLAGS)
planet.o: planet.cpp planet.h scale.o rotationcache.o buildingInstance.o vec2f.h shipstats.h
$(CC) planet.cpp $(CFLAGS)
rotationcache.o: rotationcache.cpp rotationcache.h
$(CC) rotationcache.cpp $(CFLAGS)
scale.o: scale.cpp scale.h
$(CC) scale.cpp $(CFLAGS)
projectile.o: projectile.cpp projectile.h vec2f.h
$(CC) projectile.cpp $(CFLAGS)
buildingInstance.o: buildingInstance.cpp buildingInstance.h building.o vec2f.h
$(CC) buildingInstance.cpp $(CFLAGS)
ai.o: ai.cpp ai.h planet.h fleet.h
$(CC) ai.cpp $(CFLAGS)
lineDrawer.o: lineDrawer.cpp lineDrawer.h
$(CC) lineDrawer.cpp $(CFLAGS)