From 54dac9ba2254fc8378d07290f176f90a60746c42 Mon Sep 17 00:00:00 2001 From: kvigor Date: Fri, 15 Sep 2000 21:39:27 +0000 Subject: [PATCH] Add tini and install-tini targets to master makefile git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@360 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- Makefile | 20 +++++++++++++++++++- device/lib/Makefile.in | 5 +++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4b64260f..05599e9b 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ SDCC_ASLINK = as/mcs51 as link PKGS = $(SDCC_MISC) $(SDCC_LIBS) $(SDCC_ASLINK) \ src device/include device/lib - +PKGS_TINI = $(SDCC_LIBS) $(SDCC_ASLINK) \ + src device/include PORTS = mcs51 z80 srcdir = . @@ -21,6 +22,8 @@ srcdir = . # ------------------------------------------ all: checkconf sdcc +tini: checkconf sdcc-tini + sdcc-libs: ifeq ($(CROSS_LIBGC),1) $(MAKE) -C support/gc -f Makefile.cross @@ -42,9 +45,16 @@ sdcc-device: $(MAKE) -C device/include $(MAKE) -C device/lib +sdcc-device-tini: + $(MAKE) -C device/include + $(MAKE) -C device/lib modelDS390 + sdcc: sdcc-cc sdcc-aslink sdcc-misc sdcc-device $(MAKE) -f main.mk all +sdcc-tini: sdcc-cc sdcc-aslink sdcc-device-tini + $(MAKE) -f main.mk all + # Some interesting sub rules sdcc-bin: sdcc-cc sdcc-aslink sdcc-misc @@ -58,6 +68,14 @@ install: $(MAKE) -C $$pkg install ;\ done +install-tini: + $(MAKE) -f main.mk install + @for pkg in $(PKGS_TINI); do\ + $(MAKE) -C $$pkg install ;\ + done + $(MAKE) -C device/lib installDS390 + + # Deleting all the installed files # -------------------------------- diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index 9e941f9d..2b743787 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -81,7 +81,7 @@ modelDS390: # Compiling and installing everything and runing test # --------------------------------------------------- -install: installdirs +install: installDS390 $(CP) *.c $(datadir)/lib/ for model in $(MODELS); do \ [ -d $$model ] || $(MAKE) all; \ @@ -89,8 +89,9 @@ install: installdirs $(CP) $$model/*.asm $(datadir)/lib/$$model/; \ $(CP) $$model/*.cdb $(datadir)/lib/$$model/; \ done - $(CP) ds390/*.lib ds390/*.rel ds390/*.asm ds390/*.cdb $(datadir)/lib/ds390 +installDS390: installdirs + $(CP) ds390/*.lib ds390/*.rel ds390/*.asm ds390/*.cdb $(datadir)/lib/ds390 # Deleting all the installed files # -------------------------------- -- 2.47.2