From d43ecd498179ab82c9489e8b8af39c3f7cd43b0b Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Tue, 2 May 2017 12:14:34 +0800 Subject: [PATCH] Add makefile for linux --- makefile => makefile_c4 | 0 makefile_linux | 14 ++++++++++++++ 2 files changed, 14 insertions(+) rename makefile => makefile_c4 (100%) create mode 100644 makefile_linux diff --git a/makefile b/makefile_c4 similarity index 100% rename from makefile rename to makefile_c4 diff --git a/makefile_linux b/makefile_linux new file mode 100644 index 0000000..4944cb2 --- /dev/null +++ b/makefile_linux @@ -0,0 +1,14 @@ +CXXFLAGS = -std=c++14 -Wall -O2 -D__C4DROID__ -Iinclude +LDFLAGS = +LDLIBS = -lstdc++ -lSDL2_image -lSDL2_net -lSDL2_ttf -lSDL2_mixer -lSDL2_test -lSDL2 -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)