From 89048bba72109b700b9800e58f06e7a3ca048eaa Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Sat, 29 Apr 2017 11:32:19 +0800 Subject: [PATCH] Add makefile for C4droid build --- makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..507ec04 --- /dev/null +++ b/makefile @@ -0,0 +1,14 @@ +CXXFLAGS = -std=c++14 -Wall -O2 -D__C4DROID__ -Iinclude +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 +OBJS = MiniEngine.o MiniEngine_Android.o MiniEngine_Event.o MiniEngine_Widget.o sqlite/sqlite3.o MiniEngine_SQLite.o + +all: $(PROG) + +$(PROG): $(OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $(OBJS) `sdl2-config --cflags --libs` + +clean: + rm -f $(PROG) $(OBJS) \ No newline at end of file