From 69723f10b6e9a92c7d2c707731f670cd2f1a2fa1 Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Sat, 30 May 1998 17:21:40 +0000 Subject: [PATCH] Makefile: - except for main.root, delete all created *.root files just after they're made. This avoids duplicate symbols in the link step. --- bin/gsh/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/gsh/Makefile b/bin/gsh/Makefile index 37966f1..96b4c3f 100644 --- a/bin/gsh/Makefile +++ b/bin/gsh/Makefile @@ -1,7 +1,7 @@ # # makefile for building gsh. This is for use with dmake. # -# $Id: Makefile,v 1.2 1998/04/24 15:38:31 gdr-ftp Exp $ +# $Id: Makefile,v 1.3 1998/05/30 17:21:40 gdr-ftp Exp $ # # Devin Reade, February 1998. # @@ -29,6 +29,12 @@ LDLIBS += -l/trenco3/lib.206/ltermcap .INCLUDE : /src/gno/prog.mk +# We give a custom implicit rule for *.o files so that we don't get +# duplicate "dummy" symbols in the link step. +%.o: %.asm + $(AS) -o $@ $(ASFLAGS) $(__OFLAG) $< + -$(RM) -f $(OBJ_DIR)$*.root + LOCAL_MACRO_SRC = # gsh.mac MACRO_SRC = \ $(LOCAL_MACRO_SRC) \