summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorTristan Gingold2014-12-24 07:35:20 +0100
committerTristan Gingold2014-12-24 07:35:20 +0100
commit7d07fb69e1e52dc0c31a95831506eb1117204aec (patch)
tree4bf74ac7bd1a120b52e6ef7c8cdbde118d0a091b /Makefile.in
parentefe968f6d6e30f9cd5265c4301c98ba2175d464d (diff)
downloadghdl-7d07fb69e1e52dc0c31a95831506eb1117204aec.tar.gz
ghdl-7d07fb69e1e52dc0c31a95831506eb1117204aec.tar.bz2
ghdl-7d07fb69e1e52dc0c31a95831506eb1117204aec.zip
Makefiles: add OPT_FLAGS.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in26
1 files changed, 13 insertions, 13 deletions
diff --git a/Makefile.in b/Makefile.in
index 947bd26..998804a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -40,24 +40,23 @@ VHDL_LIB_DIR=$(prefix)/$(libdirsuffix)
ADAC=$(CC)
# Debug
-ADA_FLAGS=-g -gnata
+OPT_FLAGS=-g
+ADA_FLAGS=-gnata
# Optimize, do not forget to use MODE=--genfast for iirs.adb.
-#ADA_FLAGS+=-O -gnatpn
-#GRT_FLAGS+=-O
+#ADA_FLAGS+=-gnatpn
+#OPT_FLAGS+=-O
# Profiling.
-#ADA_FLAGS+=-pg -gnatn -O
-#GRT_FLAGS+=-pg -O
+#ADA_FLAGS+=-gnatn
+#OPT_FLAGS+=-pg -O
# Coverage
-#ADA_FLAGS+=-fprofile-arcs -ftest-coverage
-
-GRT_FLAGS=-g
-LIB_CFLAGS=-g -O2
-
-GNATFLAGS=-gnaty3befhkmr -gnatwae -aO. -gnatf -gnat05 $(ADA_FLAGS)
+#OPT_FLAGS+=-fprofile-arcs -ftest-coverage
+GNATFLAGS=-gnaty3befhkmr -gnatwae -aO. -gnatf -gnat05 $(OPT_FLAGS) $(ADA_FLAGS)
+GRT_FLAGS=$(OPT_FLAGS)
+LIB_CFLAGS=$(OPT_FLAGS)
GNAT_BARGS=-bargs -E
@@ -95,7 +94,7 @@ ghdl_mcode: $(GRT_ADD_OBJS) $(ORTHO_DEPS) memsegs_c.o chkstk.o force
$(GNATMAKE) -o $@ $(GHDL_MCODE_INCFLAGS) $(GNATFLAGS) ghdl_jit.adb $(GNAT_BARGS) -largs memsegs_c.o chkstk.o $(GNAT_LARGS) $(GRT_ADD_OBJS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB))
memsegs_c.o: $(srcdir)/src/ortho/mcode/memsegs_c.c
- $(CC) -c -g -o $@ $<
+ $(CC) -c $(OPT_FLAGS) -o $@ $<
libs.vhdl.mcode: vhdl.libs.all
@@ -183,7 +182,8 @@ ghdl_llvm_jit: $(GRT_ADD_OBJS) $(ORTHO_DEPS) llvm-cbindings.o force
$(GNATMAKE) -o $@ $(GHDL_LLVM_INCFLAGS) $(GNATFLAGS) ghdl_jit.adb $(GNAT_BARGS) -largs llvm-cbindings.o $(GNAT_LARGS) $(GRT_ADD_OBJS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB)) `$(LLVM_CONFIG) --ldflags --libs --system-libs` -lc++
llvm-cbindings.o: $(srcdir)/src/ortho/llvm/llvm-cbindings.cpp
- $(CXX) -c -m64 `$(LLVM_CONFIG) --includedir --cxxflags` -g -o $@ $<
+ $(CXX) -c `$(LLVM_CONFIG) --includedir --cxxflags` \
+ $(OPT_FLAGS) -o $@ $<
libs.vhdl.llvmjit:
$(MAKE) GHDL=ghdl_llvm_jit vhdl.libs.all