diff options
author | gingold | 2006-03-10 02:15:29 +0000 |
---|---|---|
committer | gingold | 2006-03-10 02:15:29 +0000 |
commit | 402c0b3ca702f0e6c3e1e5589c98f01a21d6d6f0 (patch) | |
tree | eccb325bd340a7fb2265810fe0be11a9b74b41dc /translate/mcode/Makefile.in | |
parent | d969ae0b7b1872c931f0da6736e459b6ce6fc981 (diff) | |
download | ghdl-402c0b3ca702f0e6c3e1e5589c98f01a21d6d6f0.tar.gz ghdl-402c0b3ca702f0e6c3e1e5589c98f01a21d6d6f0.tar.bz2 ghdl-402c0b3ca702f0e6c3e1e5589c98f01a21d6d6f0.zip |
windows distribution based on mcode
Diffstat (limited to 'translate/mcode/Makefile.in')
-rw-r--r-- | translate/mcode/Makefile.in | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/translate/mcode/Makefile.in b/translate/mcode/Makefile.in new file mode 100644 index 0000000..beb450a --- /dev/null +++ b/translate/mcode/Makefile.in @@ -0,0 +1,54 @@ +PREFIX=/usr/local +target=i686-pc-linux-gnu + +CFLAGS=-O +GNATFLAGS=$(CFLAGS) -gnatn + +GRT_FLAGS=$(CFLAGS) + +all: ghdl_mcode std.v93 std.v87 ieee.v93 ieee.v87 synopsys.v93 synopsys.v87 mentor.v93 + + +GRTSRCDIR=grt + +####grt Makefile.inc + +ghdl_mcode: default_pathes.ads $(GRT_ADD_OBJS) mmap_binding.o force + gnatmake -aIghdldrv -aIghdl -aIortho -aIgrt $(GNATFLAGS) ghdl_mcode $(GNAT_BARGS) -largs mmap_binding.o $(GNAT_LARGS) $(GRT_ADD_OBJS) $(GRT_EXTRA_LIB) -Wl,--version-script=$(GRTSRCDIR)/grt.ver -Wl,--export-dynamic + +mmap_binding.o: ortho/mmap_binding.c + $(CC) -c -g -o $@ $< + +default_pathes.ads: Makefile + echo "-- DO NOT EDIT" > tmp-dpathes.ads + echo "-- This file is created by Makefile" >> tmp-dpathes.ads + echo "package Default_Pathes is" >> tmp-dpathes.ads + echo " Prefix : constant String :=">> tmp-dpathes.ads + echo " \"$(PREFIX)/lib/ghdl/\";" >> tmp-dpathes.ads + echo "end Default_Pathes;" >> tmp-dpathes.ads + if test -r $@ && cmp tmp-dpathes.ads $@; then \ + echo "$@ unchanged"; \ + else \ + mv tmp-dpathes.ads $@; \ + fi + $(RM) tmp-dpathes.ads + +force: + +LIB93_DIR:=./lib/v93 +LIB87_DIR:=./lib/v87 +LIBSRC_DIR:=./libraries +ANALYZE=../../../ghdl_mcode -a --ieee=none +REL_DIR=../../.. +VHDLLIBS_COPY_OBJS:=no +CP=cp +LN=ln -s + +./lib: + mkdir $@ + +$(LIB93_DIR) $(LIB87_DIR): ./lib + mkdir $@ + + +####libraries Makefile.inc |