Skip to content

Commit

Permalink
cmod: add install command to makefile to faciliate release
Browse files Browse the repository at this point in the history
  • Loading branch information
Yilin Zhang committed Nov 28, 2017
1 parent d0ec593 commit 7048b11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmod/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TARGET ?= libnvdla_cmod.so
BUILD_DIR ?= $(DEPTH)/$(OUTDIR)/$(PROJECT)/$(REL_PATH_FROM_TOT)
SRC_DIR ?= $(DEPTH)/cmod

PREFIX ?=$(BUILD_DIR)
PREFIX ?=$(BUILD_DIR)/release

SYSTEMC_INC_DIR ?= $(SYSTEMC)/include
SYSTEMC_LIB_DIR ?= $(SYSTEMC)/lib-linux64
Expand Down Expand Up @@ -152,7 +152,7 @@ LDFLAGS ?= -shared $(addprefix -l,$($(notdir $(SYSTEMC_LIBRARIES)):lib%.so=%)) $
$(BUILD_DIR)/$(TARGET): $(OBJS)
$(CC) $(OBJS) -o $@ $(LDFLAGS) -L$(BUILD_DIR)

default: $(BUILD_DIR)/$(TARGET)
default: $(BUILD_DIR)/$(TARGET) install
@echo "=============================================="
@echo "files are generated under $(TOT)/$(OUTDIR)/$(PROJECT)/$(REL_PATH_FROM_TOT)"
@echo "=============================================="
Expand All @@ -175,6 +175,9 @@ install:
$(CP) $(SRC_DIR)/include/scsim_common.h $(PREFIX)/include
$(CP) $(SRC_DIR)/include/NV_nvdla_top_base.h $(PREFIX)/include
$(CP) $(SRC_DIR)/nvdla_top/NV_nvdla.h $(PREFIX)/include
@echo "=============================================="
@echo "release files are installed to $(PREFIX)"
@echo "=============================================="

-include $(DEPS)

Expand Down

0 comments on commit 7048b11

Please sign in to comment.