MiniEngine/makefile_linux

15 lines
431 B
Plaintext
Raw Normal View History

2017-06-01 22:56:12 +08:00
CXXFLAGS = -std=c++14 -Wall -O2 -s -D__LINUX__ -Iinclude
2017-04-29 11:32:19 +08:00
LDFLAGS =
2017-06-01 22:56:12 +08:00
LDLIBS = -lstdc++ -lSDL2_image -lSDL2_net -lSDL2_ttf -lSDL2_mixer -lSDL2_test -lSDL2 -shared -fPIC
2017-04-29 11:32:19 +08:00
PROG = program_name
2017-06-01 22:56:12 +08:00
OBJS = MiniEngine.o MiniEngine_Event.o MiniEngine_Widget.o sqlite/sqlite3.o MiniEngine_SQLite.o
2017-04-29 11:32:19 +08:00
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)