4coder/Makefile

26 lines
598 B
Makefile
Raw Normal View History

2016-09-04 20:41:48 +00:00
CPP_FILES := $(wildcard *.cpp) $(wildcard **/*.cpp)
C_FILES := $(wildcard *.c) $(wildcard **/*.c)
H_FILES := $(wildcard *.h) $(wildcard **/*.h)
WARNINGS := -Wno-write-strings
2016-11-06 02:31:45 +00:00
FLAGS := -D_GNU_SOURCE -fPIC -fpermissive
2016-09-04 20:41:48 +00:00
debug: FLAGS += -DDEV_BUILD
debug: ../build/build
package: FLAGS += -DPACKAGE
package: ../build/build
site: FLAGS += -DSITE_BUILD
site: ../build/build
2016-09-04 20:41:48 +00:00
../build/build: $(CPP_FILES) $(C_FILES) $(H_FILES)
2016-11-06 02:31:45 +00:00
g++ $(WARNINGS) $(FLAGS) build.cpp -g -o $@
2016-09-04 20:41:48 +00:00
../build/build
clean:
$(RM) ../build/build ../build/fsmgen ../build/metagen ../build/4ed_app.so ../build/4ed