aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt/Makefile.inc
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-09-17 08:06:36 +0200
committerTristan Gingold <tgingold@free.fr>2015-09-17 08:06:36 +0200
commite5e1f179fdd64fa1abc89b5a0b00209c0e3bcba7 (patch)
tree9bb895e5c8d7df33b2a444a79443bf8381b3edad /src/grt/Makefile.inc
parent6e118c1d32b9a8ad674e765a52f861b2db5b34f5 (diff)
downloadghdl-e5e1f179fdd64fa1abc89b5a0b00209c0e3bcba7.tar.gz
ghdl-e5e1f179fdd64fa1abc89b5a0b00209c0e3bcba7.tar.bz2
ghdl-e5e1f179fdd64fa1abc89b5a0b00209c0e3bcba7.zip
Fix GRT_EXTRA_LIB, remove grt-arch (unused).
Diffstat (limited to 'src/grt/Makefile.inc')
-rw-r--r--src/grt/Makefile.inc19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/grt/Makefile.inc b/src/grt/Makefile.inc
index 5b64a5440..af217e10a 100644
--- a/src/grt/Makefile.inc
+++ b/src/grt/Makefile.inc
@@ -45,24 +45,25 @@ endif
GRT_ELF_OPTS:=-Wl,--version-script=@/grt.ver -Wl,--export-dynamic
# Set target files.
-ifeq ($(filter-out mingw32,$(arch) $(osys)),)
+ifeq ($(filter-out mingw32,$(osys)),)
GRT_TARGET_OBJS=jumps.o math.o clock.o
else
GRT_TARGET_OBJS=jumps.o times.o
- ifeq ($(filter-out linux,$(arch) $(osys)),)
+ ifeq ($(filter-out linux,$(osys)),)
GRT_EXTRA_LIB=-ldl -lm $(GRT_ELF_OPTS)
endif
- ifeq ($(filter-out netbsd freebsd% dragonfly%,$(arch) $(osys)),)
+ ifeq ($(filter-out netbsd freebsd% dragonfly%,$(osys)),)
GRT_EXTRA_LIB=-lm $(GRT_ELF_OPTS)
endif
- ifeq ($(filter-out solaris%,$(arch) $(osys)),)
+ ifeq ($(filter-out solaris%,$(osys)),)
GRT_EXTRA_LIB=-ldl -lm
endif
- ifeq ($(filter-out darwin%,$(arch) $(osys)),)
+ ifeq ($(filter-out darwin%,$(osys)),)
GRT_EXTRA_LIB=
endif
endif
+# Object files (from C) for fst
GRT_FST_OBJS := fstapi.o lz4.o fastlz.o
# Additionnal object files (C or asm files).
@@ -75,8 +76,6 @@ ifeq ($(GRT_USE_PTHREADS),y)
GRT_EXTRA_LIB+=-lpthread
endif
-GRT_ARCH?=None
-
# Configuration pragmas.
GRT_PRAGMA_FLAG=-gnatec$(GRTSRCDIR)/grt.adc -gnat05
@@ -85,7 +84,7 @@ GRT_ADACOMPILE=$(ADAC) -c $(GRT_FLAGS) $(GRT_PRAGMA_FLAG) -o $@ $<
grt-all: libgrt.a grt.lst
-libgrt.a: $(GRT_ADD_OBJS) run-bind.o main.o grt-files # grt-arch.ads
+libgrt.a: $(GRT_ADD_OBJS) run-bind.o main.o grt-files
$(RM) -f $@
$(AR) rcv $@ `sed -e "/^-/d" < grt-files` $(GRT_ADD_OBJS) \
run-bind.o main.o
@@ -153,10 +152,6 @@ grt-files: run-bind.adb
sed -e "1,/-- *BEGIN/d" -e "/-- *END/,\$$d" \
-e "s/ -- //" < $< > $@
-grt-arch.ads:
- echo "With Grt.Arch_$(GRT_ARCH);" > $@
- echo "Package Grt.Arch renames Grt.Arch_$(GRT_ARCH);" >> $@
-
# Remove local files (they are now in the libgrt library).
# Also, remove the -shared option, in order not to build a shared library
# instead of an executable.