diff options
author | gingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7> | 2006-03-10 02:14:40 +0000 |
---|---|---|
committer | gingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7> | 2006-03-10 02:14:40 +0000 |
commit | d969ae0b7b1872c931f0da6736e459b6ce6fc981 (patch) | |
tree | 9d06191e939370095bb9fbd11af1911c20cef5f9 /ortho/mcode/Makefile | |
parent | 04f194de79f5b4b44ac09c42bd926c7e7732bc54 (diff) | |
download | ghdl-d969ae0b7b1872c931f0da6736e459b6ce6fc981.tar.gz ghdl-d969ae0b7b1872c931f0da6736e459b6ce6fc981.tar.bz2 ghdl-d969ae0b7b1872c931f0da6736e459b6ce6fc981.zip |
mcode code generator added
Diffstat (limited to 'ortho/mcode/Makefile')
-rw-r--r-- | ortho/mcode/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ortho/mcode/Makefile b/ortho/mcode/Makefile new file mode 100644 index 000000000..cdec5c40f --- /dev/null +++ b/ortho/mcode/Makefile @@ -0,0 +1,32 @@ +ortho_srcdir=.. +GNAT_FLAGS=-gnaty3befhkmr -gnata -gnatf -gnatwlcru + +all: $(ortho_exec) + +$(ortho_exec): memsegs_c.o force + gnatmake -m -o $@ -g -aI$(ortho_srcdir)/mcode -aI$(ortho_srcdir) \ + $(GNAT_FLAGS) ortho_code_main -bargs -E -largs memsegs_c.o #-static + +memsegs_c.o: $(ortho_srcdir)/mcode/memsegs_c.c + $(CC) -c $(CFLAGS) -o $@ $< + +oread: force + gnatmake -m -o $@ -g $(GNAT_FLAGS) -aI../oread ortho_code_main -aI.. + +elfdump: force + gnatmake -m -g $(GNAT_FLAGS) $@ + +coffdump: force + gnatmake -m $(GNAT_FLAGS) $@ + +clean: + $(RM) -f *.o *.ali ortho_code_main elfdump + $(RM) b~*.ad? *~ + +distclean: clean + + +force: + +.PHONY: force all clean + |