Added C++ munching %.out rule.

This commit is contained in:
Janet B. Anderson
1998-03-26 17:25:49 +00:00
parent 1ba094353f
commit 2d4b230a83

View File

@@ -74,7 +74,7 @@ depends:: $(SRCS.c) $(SRCS.cc)
clean::
@echo "Cleaning"
@$(RM) *.i *.o *.a $(TARGETS) $(PROD) $(LIBNAME) $(INC) \
@$(RM) *.i *.o *.a *.out $(TARGETS) $(PROD) $(LIBNAME) $(INC) \
$(DBDINSTALL) $(MENUS) $(RECTYPES) $(BPTS) $(DBDNAME)
$(DIRECTORY_TARGETS) :
@@ -107,6 +107,14 @@ $(DIRECTORY_TARGETS) :
$(RM) $@
$(COMPILE.cc) $<
# C++ munching
%.out : %.o
@ $(RM) ctct.o ctdt.c
$(NM) $< | $(MUNCH) > ctdt.c
$(COMPILE.c) -traditional ctdt.c
$(LINK.c) $@ $< ctdt.o
@ $(RM) ctdt.c ctdt.o
#
# rename the y.tab.h file only if we
# are creating it