-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
28 lines (18 loc) · 938 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
SDL_CFLAGS = `/opt/miyoo/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config --cflags`
SDL_LIBS = `/opt/miyoo/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config --libs`
DEFINES = -DSYS_LITTLE_ENDIAN -DBYPASS_PROTECTION -DDINGUX -march=armv5te
CXX = /opt/miyoo/usr/bin/arm-linux-g++
CXXFLAGS:= -O2 -g -std=gnu++98 -fno-rtti -fno-exceptions -Wall -Wno-unknown-pragmas -Wshadow
CXXFLAGS+= -Wundef -Wwrite-strings -Wnon-virtual-dtor -Wno-multichar
CXXFLAGS+= $(SDL_CFLAGS) $(DEFINES)
SRCS = src/bank.cpp src/file.cpp src/engine.cpp src/mixer.cpp src/resource.cpp src/parts.cpp src/vm.cpp \
src/serializer.cpp src/sfxplayer.cpp src/staticres.cpp src/util.cpp src/video.cpp src/main.cpp src/sysImplementation.cpp
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
raw: $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(SDL_LIBS) -lz
%.o: %.cpp
$(CXX) $(CXXFLAGS) -MMD -c $< -o $*.o
clean:
rm -f src/*.o src/*.d raw
-include $(DEPS)