-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 861 Bytes
/
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
SDL_CFLAGS = `sdl-config --cflags`
SDL_LIBS = `sdl-config --libs`
DEFINES = -DBYPASS_PROTECTION
#DEFINES = -DBYPASS_PROTECTION -DNDEBUG
CXX = arm-elf-gcc
CXXFLAGS:= -g -O -Wall -Wuninitialized -Wno-unknown-pragmas -Wshadow -Wimplicit
CXXFLAGS+= -Wundef -Wreorder -Wwrite-strings -Wnon-virtual-dtor -Wno-multichar -I../zlib-1.2.3 -I/usr/include/SDL
CXXFLAGS+= $(DEFINES)
SRCS = collision.cpp cutscene.cpp file.cpp game.cpp graphics.cpp main.cpp menu.cpp \
mixer.cpp mod_player.cpp piege.cpp resource.cpp scaler.cpp sfx_player.cpp \
staticres.cpp systemstub_sdl.cpp unpack.cpp util.cpp video.cpp
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
rem: $(OBJS)
$(CXX) $(LDFLAGS) -Wl,-elf2flt -o $@ $(OBJS) -lstdc++ -lpthread libSDL.a libz.a
.cpp.o:
$(CXX) $(CXXFLAGS) -MMD -c $< -o $*.o
clean:
rm -f *.o *.d
-include $(DEPS)
#$(SDL_CFLAGS) $(SDL_LIBS)