VPATH = $(srcdir)
+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@
LDFLAGS := @LDFLAGS@
LD_R := @libfirm_cv_prog_ld_r@
+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@
ARFLAGS := rc
+TAR := @TAR@
+TARDIRNAME := libfirm-$(LIBFIRM_VERSION)
+TARFILENAME := $(topdir)/$(TARDIRNAME).tar
+TARFLAGS = -uhf $(TARFILENAME)
+
RANLIB := @RANLIB@
AUTODOC := @ROBODOC@
GLOBALXREFFILE := $(AUTODOCDIR)/libfirm.html.xrefs
LOCALXREFSFILE := .xrefs
-DISTFILES = $(SOURCES)
+DISTFILES += $(addprefix $(srcdir)/, $(SOURCES))
+ARCHIVEDISTFILES += $(addprefix $(TARDIRNAME)/$(subdir)/, $(SOURCES))
CFILES = $(filter %.c,$(SOURCES) $(GENFILES))
HFILES = $(filter %.h,$(SOURCES) $(GENFILES))
OFILES = $(CFILES:.c=.o)
endef
endif
-targets = all clean depend echodist echogen echosrc realclean tags install autodoc autodoc_xref autodoc_html
+targets = all clean depend realclean tags install autodoc autodoc_xref autodoc_html dist distrib install_headers install_libs