MiniEngine/makefile_linux

15 lines
443 B
Plaintext
Raw Permalink Normal View History

CXXFLAGS = -std=c++14 -Wall -O2 -D__LINUX__ -Iinclude
2017-04-29 11:32:19 +08:00
LDFLAGS =
2017-05-02 12:14:34 +08:00
LDLIBS = -lstdc++ -lSDL2_image -lSDL2_net -lSDL2_ttf -lSDL2_mixer -lSDL2_test -lSDL2 -shared
2017-04-29 11:32:19 +08:00
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:
2017-05-02 12:14:34 +08:00
rm -f $(PROG) $(OBJS)