Enable the usage of different firm variants
authorAndreas Zwinkau <zwinkau@kit.edu>
Fri, 8 Apr 2011 14:33:07 +0000 (16:33 +0200)
committerAndreas Zwinkau <zwinkau@kit.edu>
Wed, 24 Aug 2011 11:48:29 +0000 (13:48 +0200)
Makefile

index f1e302a..2a96248 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
 GOAL = $(BUILDDIR)/cparser
 
 BUILDDIR ?= build
+variant  ?= debug# Different libfirm variants (debug, optimize, profile)
 
 FIRM_HOME   = libfirm
 FIRM_CPPFLAGS = -I$(FIRM_HOME)/include
 FIRM_LIBS   = -lm
-LIBFIRM_FILE = build/debug/libfirm.a
+LIBFIRM_FILE = build/$(variant)/libfirm.a
 FIRM_VERSION = 1.19.1
 FIRM_URL = http://downloads.sourceforge.net/project/libfirm/libfirm/$(FIRM_VERSION)/libfirm-$(FIRM_VERSION).tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flibfirm%2Ffiles%2Flibfirm%2F&ts=1299786346&use_mirror=ignum