summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Scheibenpflug <zorchenhimer@gmail.com>2014-09-12 09:11:43 (GMT)
committerNick Scheibenpflug <zorchenhimer@gmail.com>2014-09-12 09:11:43 (GMT)
commita2bc432e64b0c6f4ff2ff67b1d00d100a621e576 (patch)
treeedb04e5118a1affba42b0e998c805f0dea2f47e2
parent02ee45fba605314fea9cf04cf6daabcf8f961e5e (diff)
downloadspace-zap-a2bc432e64b0c6f4ff2ff67b1d00d100a621e576.zip
space-zap-a2bc432e64b0c6f4ff2ff67b1d00d100a621e576.tar.gz
Added SDL_rotozoom to the Makefile
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2e92ed0..c897a93 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
1#CC=g++ 1#CC=g++
2CC=clang++ 2CC=clang++
3#c=gcc
4C=clang
3CFLAGS=-Wall -c $(shell sdl-config --cflags) 5CFLAGS=-Wall -c $(shell sdl-config --cflags)
4LDFLAGS=-Wall -lSDL_image $(shell sdl-config --libs) 6LDFLAGS=-Wall -lSDL_image $(shell sdl-config --libs)
5 7
6all: main 8all: main
7 9
10SDL_rotozoom.o: SDL_rotozoom.c SDL_rotozoom.h
11 $(C) $(CFLAGS) -o SDL_rotozoom.o SDL_rotozoom.c
12
8Enemy.o: Enemy.cpp Enemy.h 13Enemy.o: Enemy.cpp Enemy.h
9 $(CC) $(CFLAGS) -o Enemy.o Enemy.cpp 14 $(CC) $(CFLAGS) -o Enemy.o Enemy.cpp
10 15
@@ -26,8 +31,8 @@ InputHandler.o: InputHandler.cpp InputHandler.h
26main.o: main.cpp main.h 31main.o: main.cpp main.h
27 $(CC) $(CFLAGS) -o main.o main.cpp 32 $(CC) $(CFLAGS) -o main.o main.cpp
28 33
29main: main.o Bullet.o Utils.o Player.o Level.o Enemy.o InputHandler.o 34main: main.o Bullet.o Utils.o Player.o Level.o Enemy.o InputHandler.o SDL_rotozoom.o
30 $(CC) $(LDFLAGS) -o bin/main main.o Bullet.o Utils.o Player.o Level.o Enemy.o 35 $(CC) $(LDFLAGS) -o bin/main main.o Bullet.o Utils.o Player.o Level.o Enemy.o SDL_rotozoom.o
31 36
32clean: 37clean:
33 rm -rf *.o 38 rm -rf *.o