summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Scheibenpflug <zorchenhimer@gmail.com>2014-08-28 03:33:44 (GMT)
committerNick Scheibenpflug <zorchenhimer@gmail.com>2014-08-28 03:33:44 (GMT)
commitcf1d7ecb21dd7850a5e0e6eb6f0651c28845a9aa (patch)
treefa43dfdfe74798d1cc1cb4d6e1b8db23e3a0c027
parent35d9a1278afb90bd6290b3a4b93694b2ee286cf1 (diff)
downloadspace-zap-cf1d7ecb21dd7850a5e0e6eb6f0651c28845a9aa.zip
space-zap-cf1d7ecb21dd7850a5e0e6eb6f0651c28845a9aa.tar.gz
Added Makefie for linux. Won't compile until stuff is more fleshed out though. Added vim's swp files to .gitignore.
-rw-r--r--.gitignore2
-rw-r--r--Makefile34
2 files changed, 36 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 28e479b..9e5c7c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,5 @@ obj/
26[Rr]elease*/ 26[Rr]elease*/
27_ReSharper*/ 27_ReSharper*/
28[Tt]est[Rr]esult* 28[Tt]est[Rr]esult*
29
30*.swp
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..77a144e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
1#CC=g++
2CC=clang++
3CFLAGS=-Wall -c $(shell sdl-config --cflags)
4LDFLAGS=-Wall -lSDL_image $(shell sdl-config --libs)
5
6all: main
7
8Enemy.o: Enemy.cpp Enemy.h
9 $(CC) $(CFLAGS) -o Enemy.o Enemy.cpp
10
11Level.o: Level.cpp Level.h
12 $(CC) $(CFLAGS) -o Level.o Level.cpp
13
14Player.o: Player.cpp Player.h
15 $(CC) $(CFLAGS) -o Player.o Player.cpp
16
17Utils.o: Utils.cpp Utils.h
18 $(CC) $(CFLAGS) -o Utils.o Utils.cpp
19
20Bullet.o: Bullet.cpp Bullet.h
21 $(CC) $(CFLAGS) -o Bullet.o Bullet.cpp
22
23main.o: main.cpp main.h
24 $(CC) $(CFLAGS) -o main.o main.cpp
25
26main: main.o Bullet.o Utils.o Player.o Level.o Enemy.o
27 $(CC) $(LDFLAGS) -o bin/main main.o Bullet.o Utils.o Player.o Level.o Enemy.o
28
29clean:
30 rm -rf *.o
31
32purge: clean
33 rm -rf bin/main
34