-# Hey Emacs, this is a -*- makefile -*-
#
-# libFIRM Project
-#
-# $Id$
+# Project: libFIRM
+# File name: MakeRules.in
+# Purpose:
+# Author: nicht Till Riedel, das waren andere!
+# Modified by:
+# Created:
+# CVS-ID: $Id$
+# Copyright: (c) 2002-2003 Universität Karlsruhe
+# Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
#
VPATH = $(srcdir)
+LIBFIRM_VERSION = @PACKAGE_VERSION@
+
CC = @CC@
-CFLAGS := @CFLAGS@
+CFLAGS := -std=c99 -pedantic-errors -Wall -Wstrict-prototypes @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 ?= ${includedir}/${PACKAGE_NAME}
+LIBDIR ?= ${libdir}
+PACKAGE_NAME = @PACKAGE_NAME@
+INCLUDEDIR ?= ${includedir}/${PACKAGE_NAME}
+LIBDIR ?= ${libdir}
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@
-DISTFILES = $(SOURCES)
+AUTODOC := @DOXYGEN@
+AUTODOCFILE := libfirm.doxygen
+AUTODOCDIR := doc/html
+AUTODOCINDEXFILE := $(AUTODOCDIR)/index.html
+
+DISTFILES += $(addprefix $(srcdir)/, $(SOURCES))
+ARCHIVEDISTFILES += $(addprefix $(TARDIRNAME)/$(subdir)/, $(SOURCES))
CFILES = $(filter %.c,$(SOURCES) $(GENFILES))
HFILES = $(filter %.h,$(SOURCES) $(GENFILES))
OFILES = $(CFILES:.c=.o)
-
TAGFILES = $(CFILES) $(HFILES)
LDLIBS=$(LIBS) -lm -lc
%.c: %.dot
$(DT) $(DTFLAGS) <$^ >$@ || $(fail)
-
define fail
{ $(RM) $@; false; }
endef
endef
endif
-targets = all clean depend echodist echogen echosrc realclean tags install
+targets = all clean depend realclean tags install autodoc dist distrib install_headers install_libs