Fix the building of libvvp.pc

This commit is contained in:
Cary R 2026-07-12 17:32:36 -07:00
parent e5482b89b1
commit 15689210c1
1 changed files with 5 additions and 1 deletions

View File

@ -178,7 +178,7 @@ VVP_POSTBUILD = ln -sf vvp@EXEEXT@ vvp$(suffix)@EXEEXT@
VVP_CLEAN += vvp$(suffix)@EXEEXT@
endif
all: dep vvp@EXEEXT@ vvp.man
all: dep vvp@EXEEXT@ libvvp.pc vvp.man
# ENV_VVP sets LD_LIBRARY_PATH by default to run vvp from the build tree
check: all
@ -221,6 +221,10 @@ vvp@EXEEXT@: $(VVP_OBJ) $(VVP_DEPS)
$(CXX) $(LDFLAGS) -o $@ $(VVP_OBJ) -L. $(VVP_LDFLAGS) $(LIBS)
$(VVP_POSTBUILD)
libvvp.pc: $(srcdir)/libvvp.pc.in ../config.status
cd ..; ./config.status --file=vvp/$@
%.o: %.cc config.h | dep
$(CXX) $(CPPFLAGS) -DIVL_SUFFIX='"$(suffix)"' $(MDIR1) $(MDIR2) $(CXXFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
mv $*.d dep/$*.d