diff options
author | Florian Lohoff <flo@rfc822.org> | 2008-10-04 12:45:43 +0000 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-04-26 15:26:19 +0200 |
commit | d8a73fe012567565113419dc0c4678df5abe5bc5 (patch) | |
tree | 83fe7ec624beab65968aaf9dd474048f1b8a48c2 /tip22/Makefile | |
parent | 3f5a6babb02b56298eb7fb118dc23582cbff932a (diff) |
don't build tip22 specially
so we can make debian/rules more straightforward
Diffstat (limited to 'tip22/Makefile')
-rw-r--r-- | tip22/Makefile | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/tip22/Makefile b/tip22/Makefile index 548371b..48829b4 100644 --- a/tip22/Makefile +++ b/tip22/Makefile @@ -17,19 +17,15 @@ BINDIR ?= /usr/sbin LIBS=${ARCLIB} BINS=tip22 tip32 -LD_SCRIPTS = ld.kernel.script.$(SUBARCH) ld.ramdisk.script.$(SUBARCH) ld.script.$(SUBARCH) -OBJECTS = tftpload.$(SUBARCH).o +LD_SCRIPTS = ld.kernel.script ld.ramdisk.script ld.script +OBJECTS = tftpload.o TARGETS = $(OBJECTS) $(LD_SCRIPTS) # uncomment for debugging #CFLAGS+=-DDEBUG -all: ${LIBS} ${BINS} - @$(MAKE) SUBARCH=IP32 archall - @$(MAKE) SUBARCH=IP22 archall - -archall: $(TARGETS) +all: ${LIBS} $(TARGETS) $(ARCLIB): @@ -42,18 +38,13 @@ $(PRINT_LOADADDR): %.$(SUBARCH).o: %.c $(CC) $(CFLAGS) -c -o $@ $< -%.script.$(SUBARCH): %.script.in +%.script: %.script.in LOADADDR=$(LOADADDR); \ OUTPUTFORMAT=$(OUTPUTFORMAT); \ sed -e "s/@@LOADADDR@@/$$LOADADDR/" \ -e "s/@@OUTPUTFORMAT@@/$$OUTPUTFORMAT/" <$< >$@ clean: - @$(MAKE) SUBARCH=IP32 archclean - @$(MAKE) SUBARCH=IP22 archclean - rm -f tags *~ - -archclean: @$(MAKE) -C $(ARCLIBDIR) clean @$(MAKE) -C $(COMMONDIR) clean rm -f $(TARGETS) @@ -61,8 +52,7 @@ archclean: install: all install -d ${PREFIX}/${BINDIR} install -m 755 ${BINS} ${PREFIX}/${BINDIR} - @$(MAKE) SUBARCH=IP32 archinstall - @$(MAKE) SUBARCH=IP22 archinstall + @$(MAKE) SUBARCH=${SUBARCH} archinstall archinstall: $(foreach tg,$(TARGETS),install -m 644 $(tg) ${PREFIX}/${LIBDIR};) |