Added static to many static routines
[libfirm] / MakeRules.in
index acda489..abd79c9 100644 (file)
@@ -7,15 +7,19 @@
 
 VPATH = $(srcdir)
 
-LIBFIRM_VERSION = 0.3.0
+LIBFIRM_VERSION = @PACKAGE_VERSION@
 
 CC = @CC@
 CFLAGS := @CFLAGS@
 CPPFLAGS := -I. -I$(topdir) -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@
-
+prefix?=@prefix@
+exec_prefix?=@exec_prefix@
+includedir?=@includedir@
+libdir?=@libdir@
 INSTALL = @INSTALL@
-INCLUDEDIR = @includedir@
-LIBDIR = @libdir@
+INCLUDEDIR ?= ${prefix}/${includedir}/${PACKAGE_NAME}
+LIBDIR ?= ${exec_prefix}/${libdir}
+PACKAGE_NAME = @PACKAGE_NAME@
 
 DEFS = @DEFS@
 
@@ -27,7 +31,8 @@ LN_S := @LN_S@
 
 # profiling enabled?
 ifeq (@enable_profile_libfirm@,yes)
-LDFLAGS += -g -pg
+LDFLAGS += # -g -pg GL: geht bei mir nicht: unrecognised option
+CFLAGS += -g -pg
 endif
 
 AR := @AR@
@@ -109,4 +114,4 @@ test -z "$$fail"
 endef
 endif
 
-targets = all clean depend realclean tags install autodoc autodoc_xref autodoc_html dist distrib
+targets = all clean depend realclean tags install autodoc autodoc_xref autodoc_html dist distrib install_headers install_libs