|
@ -30,20 +30,20 @@ BUILD := build |
|
|
OBJ_DIR := $(BUILD)/objects |
|
|
OBJ_DIR := $(BUILD)/objects |
|
|
APP_DIR := $(BUILD)/apps |
|
|
APP_DIR := $(BUILD)/apps |
|
|
TARGET := izaro-storage.cpp |
|
|
TARGET := izaro-storage.cpp |
|
|
INCLUDE := -Iinclude/ -I./CommandEr/src -I./json/single_include -Itiny-js/ |
|
|
|
|
|
|
|
|
INCLUDE := -Iinclude/ -I../CommandEr/src -I../json/single_include -I../tiny-js/ |
|
|
SRC := \
|
|
|
SRC := \
|
|
|
|
|
|
|
|
|
TJS_SRC := |
|
|
TJS_SRC := |
|
|
#pool_allocator.cpp TinyJS.cpp TinyJS_Functions.cpp TinyJS_MathFunctions.cpp TinyJS_StringFunctions.cpp TinyJS_Threading.cpp
|
|
|
#pool_allocator.cpp TinyJS.cpp TinyJS_Functions.cpp TinyJS_MathFunctions.cpp TinyJS_StringFunctions.cpp TinyJS_Threading.cpp
|
|
|
TJS_OBJECTS := $(TJS_SRC:%.cpp=$(OBJ_DIR)/%.tjs.o) |
|
|
TJS_OBJECTS := $(TJS_SRC:%.cpp=$(OBJ_DIR)/%.tjs.o) |
|
|
|
|
|
|
|
|
OBJECTS := $(SRC:%.cpp=$(OBJ_DIR)/%.o) ./CommandEr/build/commander.o |
|
|
|
|
|
|
|
|
OBJECTS := $(SRC:%.cpp=$(OBJ_DIR)/%.o) ../CommandEr/build/commander.o |
|
|
TEST_OBJECTS := $(SRC:%.cpp=$(OBJ_DIR)/%.test.o) |
|
|
TEST_OBJECTS := $(SRC:%.cpp=$(OBJ_DIR)/%.test.o) |
|
|
TARGETNAME := $(TARGET:%.cpp=%) |
|
|
TARGETNAME := $(TARGET:%.cpp=%) |
|
|
|
|
|
|
|
|
all: build $(TARGET) |
|
|
all: build $(TARGET) |
|
|
|
|
|
|
|
|
$(OBJ_DIR)/%.tjs.o: tiny-js/%.cpp |
|
|
|
|
|
|
|
|
$(OBJ_DIR)/%.tjs.o: ../tiny-js/%.cpp |
|
|
@mkdir -p $(@D) |
|
|
@mkdir -p $(@D) |
|
|
$(CXX) $(CXXFLAGS) -fpermissive -w -Wno-pedantic $(INCLUDE) -o $@ -c $< |
|
|
$(CXX) $(CXXFLAGS) -fpermissive -w -Wno-pedantic $(INCLUDE) -o $@ -c $< |
|
|
|
|
|
|
|
@ -56,7 +56,7 @@ $(OBJ_DIR)/%.o: %.cpp |
|
|
$(CXX) $(CXXFLAGS) $(INCLUDE) -o $@ -c $< |
|
|
$(CXX) $(CXXFLAGS) $(INCLUDE) -o $@ -c $< |
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS) $(TJS_OBJECTS) build |
|
|
$(TARGET): $(OBJECTS) $(TJS_OBJECTS) build |
|
|
make -C CommandEr |
|
|
|
|
|
|
|
|
make -C ../CommandEr |
|
|
@mkdir -p $(@D) |
|
|
@mkdir -p $(@D) |
|
|
$(CXX) $(CXXFLAGS) -pthread $(INCLUDE) $(LDFLAGS) -o $(APP_DIR)/$(TARGETNAME) src/$(TARGET) $(OBJECTS) $(TJS_OBJECTS) |
|
|
$(CXX) $(CXXFLAGS) -pthread $(INCLUDE) $(LDFLAGS) -o $(APP_DIR)/$(TARGETNAME) src/$(TARGET) $(OBJECTS) $(TJS_OBJECTS) |
|
|
$(CXX) $(CXXFLAGS) $(INCLUDE) $(LDFLAGS) -o $(APP_DIR)/test_client src/test_client.cpp |
|
|
$(CXX) $(CXXFLAGS) $(INCLUDE) $(LDFLAGS) -o $(APP_DIR)/test_client src/test_client.cpp |