Skip to content

Commit

Permalink
[BUILD] Moved comments in Makefile_defs to above lines
Browse files Browse the repository at this point in the history
  • Loading branch information
benliao1 committed Jul 26, 2023
1 parent c82d403 commit 4c8ebec
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile_defs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ OBJ = $(BUILD)/obj
# this is the name of the lower level directory (e.g. THIS_DIR in the dev_handler folder is "dev_handler")
THIS_DIR = $(strip $(shell pwd | xargs basename -z))

COMPONENT_DIRS = dev_handler net_handler executor network_switch shm_wrapper runtime_util logger # list of runtime component directories
OBJ_SUBDIR = $(foreach dir,$(COMPONENT_DIRS),$(OBJ)/$(dir)) # list of subfolders in $(OBJ) for runtime object files
INCLUDE += $(foreach dir,$(COMPONENT_DIRS),-I../$(dir)) # list of folders to include in compilation commands

OBJS = $(patsubst %.c,$(OBJ)/$(THIS_DIR)/%.o,$(SRCS)) # make a list of all object files this executable is dependent on relative to this Makefile
# list of runtime component directories
COMPONENT_DIRS = dev_handler net_handler executor network_switch shm_wrapper runtime_util logger
# list of subfolders in $(OBJ) for runtime object files
OBJ_SUBDIR = $(foreach dir,$(COMPONENT_DIRS),$(OBJ)/$(dir))
# list of folders to include in compilation commands
INCLUDE += $(foreach dir,$(COMPONENT_DIRS),-I../$(dir))

# list of all object files this executable is dependent on relative to this Makefile
OBJS = $(patsubst %.c,$(OBJ)/$(THIS_DIR)/%.o,$(SRCS))

# list of build folders
BUILD_DIR += $(OBJ) $(BIN) $(BUILD) $(OBJ_SUBDIR)
Expand Down

0 comments on commit 4c8ebec

Please sign in to comment.