From 8f924298d81a7b959bdc7493c44a3da535eefabb Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 11 Mar 2016 10:31:56 +0100 Subject: [PATCH] fix munching for 3.14: use native vxWorks munch program --- App/tools/driver.makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/App/tools/driver.makefile b/App/tools/driver.makefile index e29e222..5539033 100644 --- a/App/tools/driver.makefile +++ b/App/tools/driver.makefile @@ -864,9 +864,10 @@ SNCFLAGS += -r ${LN} $< $(*F).gt gdc $(*F).gt -# The original 3.13 munching rule does not really work well -ifeq (${EPICS_BASETYPE},3.13) -MUNCH=tclsh $(VX_DIR)/host/src/hutils/munch.tcl +# The original EPICS munching rules do not really work well +MUNCH_5=tclsh $(VX_DIR)/host/src/hutils/munch.tcl +MUNCH_6=tclsh $(VX_DIR)/host/resource/hutils/tcl/munch.tcl +MUNCH=$(MUNCH_$(VXWORKS_MAJOR_VERSION)) %.munch: CMPLR=TRAD %.munch: % @echo Munching $< @@ -874,7 +875,11 @@ MUNCH=tclsh $(VX_DIR)/host/src/hutils/munch.tcl $(NM) $< | $(MUNCH) > ctdt.c $(COMPILE.c) ctdt.c $(LINK.c) $@ $< ctdt.o -endif + +%_ctdt.c : %.nm + @echo Munching $* + @$(RM) $@ + $(MUNCH) < $< > $@ ${VERSIONFILE}: echo "char _${PRJ}LibRelease[] = \"${LIBVERSION}\";" >> $@