X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=MakeRules.in;h=b49c92d1bf604377b1b3eceb878c4fb51336622f;hb=ff244fb7355c6120cf0f15ba7911b473bb91c64b;hp=972403ab6e4a7aeba9b281fcaff6167b511d995a;hpb=46acf61b997efb1721fe3002ce63a7ac4208640a;p=libfirm diff --git a/MakeRules.in b/MakeRules.in index 972403ab6..b49c92d1b 100644 --- a/MakeRules.in +++ b/MakeRules.in @@ -1,19 +1,32 @@ -# 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@ @@ -21,21 +34,34 @@ LD := @LD@ 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 @@ -55,7 +81,6 @@ COMPILE.s = $(CC) -S $(DEFS) $(CPPFLAGS) $(CDEBUG) $(CFLAGS) $(XCFLAGS) %.c: %.dot $(DT) $(DTFLAGS) <$^ >$@ || $(fail) - define fail { $(RM) $@; false; } endef @@ -75,4 +100,4 @@ test -z "$$fail" 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