X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=MakeRules.in;h=c3a95c857340602e118812d94700a2cdee245019;hb=616ce8f70d3c5431ff5477c23e1dda05295b9f01;hp=972403ab6e4a7aeba9b281fcaff6167b511d995a;hpb=46acf61b997efb1721fe3002ce63a7ac4208640a;p=libfirm diff --git a/MakeRules.in b/MakeRules.in index 972403ab6..c3a95c857 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) -CC = @CC@ -CFLAGS := @CFLAGS@ -CPPFLAGS := -I. -I$(topdir) -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@ +LIBFIRM_VERSION = @PACKAGE_VERSION@ +CC = @CC@ +CFLAGS := -Wall -Wstrict-prototypes @CFLAGS@ +CPPFLAGS := -I. -I$(topdir) -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@ @LIBCORE_CFLAGS@ +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