Moved code and assets for the game to a seperate folder. Moved jansson and raylib to third_party.
This commit is contained in:
4
Makefile
4
Makefile
@@ -12,7 +12,7 @@ else
|
||||
endif
|
||||
|
||||
BUILD_DIR := build/$(PLATFORM)
|
||||
CFLAGS := -g -Isrc -Wextra -MMD -MP -Wall -pedantic
|
||||
CFLAGS := -g -Isrc -Isrc/game -Wextra -MMD -MP -Wall -pedantic
|
||||
LDFLAGS := -flto -Wl,--gc-sections
|
||||
|
||||
LIB_DIR := $(abspath libs/$(PLATFORM))
|
||||
@@ -43,7 +43,7 @@ run: $(BIN)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
@mkdir -p $(dir $@)
|
||||
@cp -r $(SRC_DIR)/assets $(BUILD_DIR)
|
||||
@cp -r $(SRC_DIR)/game/assets $(BUILD_DIR)/game/assets
|
||||
@cp -r libs $(BUILD_DIR)
|
||||
@$(CC) $(LDFLAGS) $(OBJ) -o $@ $(LIBS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user