Skip to content

Commit

Permalink
Add compile echo lines to ext Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatix committed Nov 25, 2024
1 parent fe2cdd7 commit 9e793d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/GOTCHA/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@ all: $(LIBGOTCHA)

$(STATIC_LIBGOTCHA): $(OBJ)
$(info "GOTCHA cannot be build statically in LIKWID")
#@echo "===> CREATE STATIC LIB $@"
#$(Q)${AR} -cq $(LIBGOTCHA) $(OBJ)

$(SHARED_LIBGOTCHA): $(OBJ)
@echo "===> CREATE SHARED LIB $@"
$(Q)$(CC) $(DEBUG_FLAGS) $(LFLAGS) -Wl,-soname,$(LIBGOTCHA).$(VERSION).$(RELEASE),--no-undefined -shared -fPIC -o $(LIBGOTCHA) $(OBJ) $(LIBS)

#PATTERN RULES
$(BUILD_DIR)/%.o: %.c
@echo "===> COMPILE $@"
@mkdir -p $(BUILD_DIR)
$(Q)$(CC) -c $(DEBUG_FLAGS) $(CFLAGS) $(CPPFLAGS) $< -o $@
$(Q)$(CC) $(DEBUG_FLAGS) $(CPPFLAGS) -MT $(@:.d=.o) -MM $< > $(BUILD_DIR)/$*.d
Expand Down
3 changes: 3 additions & 0 deletions ext/hwloc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,16 @@ CPPFLAGS := $(CPPFLAGS) $(DEFINES) $(INCLUDES)
all: $(LIBHWLOC)

$(STATIC_LIBHWLOC): $(OBJ)
@echo "===> CREATE STATIC LIB $@"
$(Q)${AR} -cq $(LIBHWLOC) $(OBJ)

$(SHARED_LIBHWLOC): $(OBJ)
@echo "===> CREATE SHARED LIB $@"
$(Q)$(CC) $(DEBUG_FLAGS) $(LFLAGS) -Wl,-soname,$(LIBHWLOC).$(VERSION).$(RELEASE),--no-undefined -Wall -shared -fPIC -o $(LIBHWLOC) $^ $(LIBS) $(RPATHS)

#PATTERN RULES
$(BUILD_DIR)/%.o: %.c
@echo "===> COMPILE $@"
@mkdir -p $(BUILD_DIR)
$(Q)$(CC) -c $(DEBUG_FLAGS) $(CFLAGS) $(CPPFLAGS) $< -o $@
$(Q)$(CC) $(DEBUG_FLAGS) $(CPPFLAGS) -MT $(@:.d=.o) -MM $< > $(BUILD_DIR)/$*.d
Expand Down
4 changes: 4 additions & 0 deletions ext/lua/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,20 @@ INTERPRETER = lua
all: $(LIBLUA) $(INTERPRETER)

$(STATIC_LIBLUA): $(OBJ)
@echo "===> CREATE STATIC LIB $@"
$(Q)$(AR) -cq $@ $(OBJ)

$(SHARED_LIBLUA): $(OBJ)
@echo "===> CREATE SHARED LIB $@"
$(Q)$(CC) $(DEBUG_FLAGS) $(LFLAGS) -Wl,-soname,$(LIBLUA).$(VERSION).$(RELEASE),--no-undefined -shared -fPIC -o $@ $(OBJ) $(LIBS)

$(INTERPRETER): $(LIBLUA) $(BUILD_DIR)/lua.o
@echo "===> LINKING $@"
$(Q)$(CC) $(DEBUG_FLAGS) -o $@ $(LFLAGS) $(BUILD_DIR)/lua.o $(RPATHS) $(LIBLUA) $(LIBS)

#PATTERN RULES
$(BUILD_DIR)/%.o: %.c
@echo "===> COMPILE $@"
@mkdir -p $(BUILD_DIR)
$(Q)$(CC) -c $(DEBUG_FLAGS) $(CFLAGS) $(CPPFLAGS) $< -o $@
$(Q)$(CC) $(DEBUG_FLAGS) $(CPPFLAGS) -MT $(@:.d=.o) -MM $< > $(BUILD_DIR)/$*.d
Expand Down

0 comments on commit 9e793d1

Please sign in to comment.