add env vars & misc

This commit is contained in:
starkwj
2026-02-11 06:27:58 +00:00
parent 739d074b0c
commit 389030a8f8
128 changed files with 89 additions and 59 deletions

View File

@@ -0,0 +1,30 @@
CXX := g++
TARGET := vllm_vnpu_daemon
SRCS := vnpu_daemon.cpp shm_manager.cpp
ASCEND_HOME := /usr/local/Ascend/ascend-toolkit/latest
INCLUDES := -I$(ASCEND_HOME)/include -Iinclude
LIBS := -L$(ASCEND_HOME)/lib64 -lascendcl
CXXFLAGS := $(INCLUDES) -O2
LDFLAGS := $(LIBS)
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
.PHONY: all clean install uninstall
all: $(TARGET)
$(TARGET): $(SRCS)
$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)
install: $(TARGET)
install -d $(DESTDIR)$(BINDIR)
install -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
uninstall:
rm -f $(DESTDIR)$(BINDIR)/$(TARGET)
clean:
rm -f $(TARGET)