From 6871d622beeb4ba9a74ac15b446a31f1845e26a0 Mon Sep 17 00:00:00 2001 From: unknown <刘桐源> Date: Tue, 3 Jan 2017 23:35:43 +0800 Subject: [PATCH] Add makefile for C4droid --- makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..dcf4b39 --- /dev/null +++ b/makefile @@ -0,0 +1,14 @@ +CXXFLAGS = -std=c++14 -Wall -D__C4DROID__ +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 = basic_config.o sdl_engine.o config.o InitManager.o WindowManager.o mini_engine.o App.o main.o + +all: $(PROG) + +$(PROG): $(OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $(OBJS) `sdl2-config --cflags --libs` + +clean: + rm -f $(PROG) $(OBJS)