2017-06-16 15:26:46 +00:00
|
|
|
#Old Makefile, do not use
|
|
|
|
|
2017-04-29 19:11:29 +00:00
|
|
|
#-*- Makefile -*-
|
|
|
|
|
2017-05-21 07:22:25 +00:00
|
|
|
OBJS = main.o player.o dt.o block.o entity.o camera.o texture.o powerup.o core.o
|
2017-04-29 19:11:29 +00:00
|
|
|
|
2017-04-29 19:15:34 +00:00
|
|
|
CC = g++
|
2017-04-29 19:11:29 +00:00
|
|
|
|
|
|
|
COMPILER_FLAGS = -w
|
|
|
|
|
2017-05-01 17:40:03 +00:00
|
|
|
LINKER_FLAGS = -lSDL2_image -lSDL2 -std=gnu++11
|
2017-04-29 19:11:29 +00:00
|
|
|
|
2017-05-01 17:40:03 +00:00
|
|
|
OBJ_NAME = main
|
2017-04-29 19:11:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
all: $(OBJS)
|
|
|
|
$(CC) $(OBJS) $(COMPLER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)
|
|
|
|
|
2017-05-21 07:22:25 +00:00
|
|
|
main.o: main.cpp core.o
|
2017-04-29 19:11:29 +00:00
|
|
|
$(CC) -c main.cpp $(LINKER_FLAGS)
|
|
|
|
|
2017-05-01 17:40:03 +00:00
|
|
|
player.o: player.cpp player.h entity.o texture.o
|
|
|
|
$(CC) -c player.cpp -lm $(LINKER_FLAGS)
|
2017-04-29 19:11:29 +00:00
|
|
|
|
|
|
|
dt.o: dt.cpp dt.h
|
|
|
|
$(CC) -c dt.cpp $(LINKER_FLAGS)
|
|
|
|
|
2017-04-30 16:23:47 +00:00
|
|
|
block.o: block.cpp block.h entity.o
|
2017-04-29 19:11:29 +00:00
|
|
|
$(CC) -c block.cpp $(LINKER_FLAGS)
|
|
|
|
|
|
|
|
entity.o: entity.cpp entity.h
|
|
|
|
$(CC) -c entity.cpp $(LINKER_FLAGS)
|
2017-04-30 16:23:47 +00:00
|
|
|
|
|
|
|
camera.o: camera.cpp camera.h
|
|
|
|
$(CC) -c camera.cpp
|
2017-05-01 17:40:03 +00:00
|
|
|
|
|
|
|
texture.o: texture.cpp texture.h
|
2017-05-06 07:52:25 +00:00
|
|
|
$(CC) -c -lSDL2_image texture.cpp $(LINKER_FLAGS)
|
2017-05-05 14:19:44 +00:00
|
|
|
|
|
|
|
powerup.o: powerup.cpp powerup.h
|
|
|
|
$(CC) -c powerup.cpp $(LINKER_FLAGS)
|
2017-05-21 07:22:25 +00:00
|
|
|
|
|
|
|
core.o: core.cpp core.h
|
|
|
|
$(CC) -c core.cpp $(LINKER_FLAGS)
|