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
|
|
|
|
|
2016-09-04 23:58:49 +00:00
|
|
|
package: FLAGS += -DPACKAGE
|
|
|
|
package: ../build/build
|
|
|
|
|
2016-11-14 07:13:27 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|