diff options
-rw-r--r-- | Makefile.in | 6 | ||||
-rw-r--r-- | src/grt/Makefile.inc | 17 |
2 files changed, 9 insertions, 14 deletions
diff --git a/Makefile.in b/Makefile.in index 61c295375..452060996 100644 --- a/Makefile.in +++ b/Makefile.in @@ -43,11 +43,11 @@ incdir=$(prefix)/include MKDIR=mkdir LN=ln -s CP=cp +MV=mv SED=sed GRT_RANLIB=ranlib VHDL_LIB_DIR=$(prefix)/$(libdirsuffix) -ADAC=$(CC) # Debug OPT_FLAGS=-g @@ -102,7 +102,7 @@ version.tmp: $(srcdir)/src/version.in force # Create version.tmp from version.in, using git date/hash if [ -d $(srcdir)/.git ]; then \ desc=`cd $(srcdir); git describe --dirty`; \ - sed -e "s/[(].*[)]/($$desc)/" < $< > $@; \ + $(SED) -e "s/[(].*[)]/($$desc)/" < $< > $@; \ else \ $(CP) $< $@; \ fi @@ -279,7 +279,7 @@ libmhdlsimvhdl.a: $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) version.ads force gnatbind -Lmhdlsim_vhdl_ mhdlsim.ali -O > mhdlsim.files gnatbind -Lmhdlsim_vhdl_ mhdlsim.ali -K -Z > mhdlsim.link $(GNATMAKE) -c b~mhdlsim.adb - rm -f $@ + $(RM) -f $@ ar rc $@ b~mhdlsim.o `cat mhdlsim.files` $(GRT_ADD_OBJS) ################ ghwdump ################################################# diff --git a/src/grt/Makefile.inc b/src/grt/Makefile.inc index f60a845ae..b87cb966f 100644 --- a/src/grt/Makefile.inc +++ b/src/grt/Makefile.inc @@ -20,7 +20,7 @@ # AR: ar command # RM # CC -# ADAC: the GNAT compiler +# GNATMAKE: the GNAT compiler (gnatmake) # GHDL1: the ghdl compiler # GRT_RANLIB: the ranlib tool for the grt library. # grt_libdir: the place to put grt. @@ -92,7 +92,7 @@ endif GRT_PRAGMA_FLAG=-gnatec$(GRTSRCDIR)/grt.adc -gnat05 -gnatdY # Rule to compile an Ada file. -GRT_ADACOMPILE=$(ADAC) -c $(GRT_FLAGS) $(GRT_PRAGMA_FLAG) -o $@ $< +GRT_ADACOMPILE=$(GNATMAKE) -u -c $(GRT_FLAGS) $(GRT_PRAGMA_FLAG) grt-all: libgrt.a $(GRT_LIBBACKTRACE) grt.lst @@ -103,23 +103,18 @@ libgrt.a: $(GRT_ADD_OBJS) run-bind.o main.o grt-files $(GRT_RANLIB) $@ run-bind.adb: $(GRT_SRC_DEPS) grt-force - gnatmake -c -aI$(GRTSRCDIR) $(GRT_PRAGMA_FLAG) \ + $(GNATMAKE) -c -aI$(GRTSRCDIR) $(GRT_PRAGMA_FLAG) \ ghdl_main $(GRT_ADAFLAGS) -cargs $(GRT_FLAGS) # Set No Run-Time flag to suppress references to standard gnat library. sed -e '/^P /s/P /P NR /' < ghdl_main.ali > ghdl_main-tmp.ali - mv ghdl_main-tmp.ali ghdl_main.ali + $(MV) ghdl_main-tmp.ali ghdl_main.ali gnatbind -Lgrt_ -o run-bind.adb -n ghdl_main.ali -#system.ads: -# sed -e "/Configurable_Run_Time/s/False/True/" \ -# -e "/Suppress_Standard_Library/s/False/True/" \ -# < `$(ADAC) -print-file-name=adainclude/system.ads` > $@ - run-bind.o: run-bind.adb - $(GRT_ADACOMPILE) + $(GRT_ADACOMPILE) -o $@ $< main.o: $(GRTSRCDIR)/main.adb - $(GRT_ADACOMPILE) + $(GRT_ADACOMPILE) -o $@ $< jumps.o: $(GRTSRCDIR)/config/jumps.c $(CC) -c $(GRT_FLAGS) $(GRT_CFLAGS) -o $@ $< |