MiniEngine/SDLEngine/makefile

15 lines
541 B
Makefile
Raw Normal View History

2017-02-23 16:59:09 +08:00
CXXFLAGS = -std=c++14 -Wall -O2 -D__C4DROID__ -Iinclude
2017-01-03 23:35:43 +08:00
LDFLAGS =
LDLIBS = -lSDL2_image -lSDL2_net -ltiff -ljpeg -lpng -lz -lSDL2_ttf -lfreetype -lSDL2_mixer -lSDL2_test -lsmpeg2 -lvorbisfile -lvorbis -logg -lstdc++ -lSDL2 -lEGL -lGLESv1_CM -lGLESv2 -landroid -Wl,--no-undefined -shared
PROG = program_name
2017-02-23 16:59:09 +08:00
OBJS = basic_config.o sdl_engine.o config.o InitManager.o mini_engine.o App.o main.o
2017-01-03 23:35:43 +08:00
all: $(PROG)
$(PROG): $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $(OBJS) `sdl2-config --cflags --libs`
clean:
rm -f $(PROG) $(OBJS)