From 9b278b0264d12e3a9c2b5468fd3333fad1fb45f5 Mon Sep 17 00:00:00 2001 From: Florian Lohoff Date: Sat, 4 Oct 2008 12:15:43 +0000 Subject: Remove print_loadaddr and print_outputformat replace by makefile defines --- tip22/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tip22') diff --git a/tip22/Makefile b/tip22/Makefile index 2efe8ae..548371b 100644 --- a/tip22/Makefile +++ b/tip22/Makefile @@ -6,8 +6,6 @@ ARCLIBDIR = ../arclib ARCLIB = $(ARCLIBDIR)/libarc.a COMMONDIR = ../common -PRINT_LOADADDR = $(COMMONDIR)/print_loadaddr -PRINT_OUTPUTFORMAT = $(COMMONDIR)/print_outputformat CFLAGS += -O2 -I$(COMMONDIR) -I$(ARCLIBDIR) -Wall -mno-abicalls -G 0 \ -fno-pic -DSUBARCH=${SUBARCH} @@ -44,9 +42,9 @@ $(PRINT_LOADADDR): %.$(SUBARCH).o: %.c $(CC) $(CFLAGS) -c -o $@ $< -%.script.$(SUBARCH): %.script.in $(PRINT_LOADADDR) $(PRINT_OUTPUTFORMAT) - LOADADDR=$$($(PRINT_LOADADDR) $(SUBARCH)); \ - OUTPUTFORMAT=$$($(PRINT_OUTPUTFORMAT) $(SUBARCH)); \ +%.script.$(SUBARCH): %.script.in + LOADADDR=$(LOADADDR); \ + OUTPUTFORMAT=$(OUTPUTFORMAT); \ sed -e "s/@@LOADADDR@@/$$LOADADDR/" \ -e "s/@@OUTPUTFORMAT@@/$$OUTPUTFORMAT/" <$< >$@ -- cgit v1.2.3