Skip to content

Commit

Permalink
match CLB project folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vygr committed Jul 21, 2023
1 parent 5af3b39 commit c5a8b17
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ SRC_DIR := ./src
OBJ_DIR_GUI := ./src/obj/gui
OBJ_DIR_TUI := ./src/obj/tui

SRC_FILES := $(wildcard $(SRC_DIR)/*.cpp)
SRC_FILES += $(wildcard $(SRC_DIR)/*.c)
SRC_DIRS := $(shell find $(SRC_DIR) -type d | grep -v "/obj")
OBJ_DIRS := $(patsubst $(SRC_DIR)/%,$(OBJ_DIR_GUI)/%,$(SRC_DIRS))
OBJ_DIRS += $(patsubst $(SRC_DIR)/%,$(OBJ_DIR_TUI)/%,$(SRC_DIRS))

SRC_FILES := $(shell find $(SRC_DIR) -name "*.cpp")
SRC_FILES += $(shell find $(SRC_DIR) -name "*.c")

OBJ_FILES_GUI := $(patsubst $(SRC_DIR)/%.cpp,$(OBJ_DIR_GUI)/%.o,$(SRC_FILES))
OBJ_FILES_GUI := $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR_GUI)/%.o,$(OBJ_FILES_GUI))
Expand Down Expand Up @@ -60,7 +64,7 @@ endif
@echo $(CPU) > cpu
@echo $(OS) > os
@echo $(ABI) > abi
mkdir -p obj/$(CPU)/$(ABI)/$(OS) $(OBJ_DIR_GUI) $(OBJ_DIR_TUI)
mkdir -p obj/$(CPU)/$(ABI)/$(OS) $(OBJ_DIRS)

snapshot:
rm -f snapshot.zip
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c5a8b17

Please sign in to comment.