aboutsummaryrefslogtreecommitdiff
path: root/tip22
diff options
context:
space:
mode:
authorFlorian Lohoff <flo@rfc822.org>2008-10-04 12:15:43 +0000
committerGuido Günther <agx@sigxcpu.org>2009-01-11 18:11:50 +0100
commit9b278b0264d12e3a9c2b5468fd3333fad1fb45f5 (patch)
tree55dbc389f531d2e4db3cce738d8056d8e3b44b17 /tip22
parent0b1d5fa90eabd98e3d69734ce1cdcef949d3fb30 (diff)
Remove print_loadaddr and print_outputformat
replace by makefile defines
Diffstat (limited to 'tip22')
-rw-r--r--tip22/Makefile8
1 files changed, 3 insertions, 5 deletions
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/" <$< >$@