Skip to content

Commit

Permalink
add no shunt dpi target /home/v/workspace/Shunt/bin/libCutils.so
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbesy committed Jan 3, 2021
1 parent 49daa7c commit 2f0728c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions utils/makedir/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include dpi/src/subdir.mk


-include c/src/subdir.mk
-include subdir.mk
-include objects.mk

ifeq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),all ${SHUNT_HOME}/bin/libutils.so))
-include dpi/src/subdir.mk
endif

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
Expand All @@ -24,7 +29,7 @@ endif
# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: ${SHUNT_HOME}/bin/libutils.so
all: ${SHUNT_HOME}/bin/libutils.so

# Tool invocations
${SHUNT_HOME}/bin/libutils.so: $(OBJS) $(USER_OBJS)
Expand All @@ -34,9 +39,17 @@ ${SHUNT_HOME}/bin/libutils.so: $(OBJS) $(USER_OBJS)
@echo 'Finished building target: $@'
@echo ' '

${SHUNT_HOME}/bin/libCutils.so: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C Linker'
gcc -std=gnu11 -Wall -Werror -Wpedantic -Wextra -Wno-odr $(USER_OPT) -shared -o "${SHUNT_HOME}/bin/libCutils.so" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '


# Other Targets
clean:
-$(RM) $(OBJS)$(C_DEPS)$(LIBRARIES) ${SHUNT_HOME}/bin/libutils.so
-$(RM) $(OBJS)$(C_DEPS)$(LIBRARIES) ${SHUNT_HOME}/bin/libutils.so ${SHUNT_HOME}/bin/libCutils.so
-@echo ' '

.PHONY: all clean dependents
Expand Down

0 comments on commit 2f0728c

Please sign in to comment.