From a86356dc41a884f9e44a72ecf483ef0382d4cf66 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:13:22 +0000 Subject: [PATCH] lilypond-1.0.1 --- make/Variables.make | 228 +++++++------------------------------------- 1 file changed, 36 insertions(+), 192 deletions(-) diff --git a/make/Variables.make b/make/Variables.make index b2e75db9ef..82a5199a8c 100644 --- a/make/Variables.make +++ b/make/Variables.make @@ -1,8 +1,5 @@ -# -# project LilyPond -- the musical typesetter -# title generic variables +# title package specific variables # file make/Variables.make -# abstract # # do not change this file for site-wide extensions; please use # make/$(outdir)/Site.make; @@ -10,52 +7,16 @@ # Any change in files in this directory (make/) would be distributed, if # you do make dist # -# Copyright (c) 1997 by -# Jan Nieuwenhuizen -# Han-Wen Nienhuys - -# toplevel version info, might be handy? -# -include $(depth)/make/Toplevel_version.make - - -# Don't try to outsmart us, you puny computer! -ifeq (0,${MAKELEVEL}) - MAKE:=$(MAKE) --no-builtin-rules -endif - - -ifndef config -configuration=config -else -configuration=config-$(config) -endif - -include $(depth)/$(configuration).make - -# directory names: -buildprefix=$(depth) - -ifdef CONFIGSUFFIX -outdir=out-$(CONFIGSUFFIX) -else -outdir=out -endif # derived names -lily_bindir = $(depth)/bin -distdir = $(depth)/$(outdir)/$(DIST_NAME) -depdir = $(outdir) - flowerout = $(buildprefix)/flower/$(outdir) libout = $(buildprefix)/lib/$(outdir) lilyout = $(buildprefix)/lily/$(outdir) mi2muout = $(buildprefix)/mi2mu/$(outdir) -makeout = $(buildprefix)/make/$(outdir) -docout = $(buildprefix)/Documentation/$(outdir) -binout = $(buildprefix)/bin/$(outdir) -doc-dir = $(depth)/Documentation +buildscripts = $(depth)/buildscripts + + flower-dir = $(depth)/flower lib-dir = $(depth)/lib lily-dir = $(depth)/lily @@ -64,60 +25,7 @@ make-dir = $(depth)/make include-lib = $(depth)/lib/include include-flower = $(depth)/flower/include - -rpm-sources = ${HOME}/rpms/SOURCES -# - -configheader=$(outdir)/config.hh - - - - -# user settings: -# -include $(depth)/make/User.make -# -# -# need to be defined in local Makefiles: -# -FOOBAR = -# the version: -# -ifneq ($(MY_PATCH_LEVEL),$(FOOBAR)) -VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL).$(MY_PATCH_LEVEL) -else -VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL) -endif - -ifneq ($(TOPLEVEL_MY_PATCH_LEVEL),$(FOOBAR)) -TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL).$(TOPLEVEL_MY_PATCH_LEVEL) -else -TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL) -endif -# - -# ugh, but it gets hairy without extension.. -DOTTEXT=.txt - -# for rpmrc only -LILYPOND_ROOTDIR=$(shell cd $(depth)/..; pwd) - -# -# fix naming, use TOPLEVEL_ prefix _or_ MODULE? -DIST_NAME = lilypond-$(TOPLEVEL_VERSION) -# NO_DOOS_DIST = bin flower lib lily make mi2mu out NO_DOOS_DIST = flower lib lily make mi2mu out -# - -# list of object files: -# -SOURCE_FILES = $(CCFILES) $(EXTRA_SOURCE_FILES) -OFILEC = $(SOURCE_FILES:.c=.o) -OFILECC = $(OFILEC:.cc=.o) -OFILEL = $(OFILECC:.ll=.o) -OFILEY = $(OFILEL:.yy=.o) -OFILES = $(addprefix $(outdir)/,$(OFILEY)) -# # dummydeps # @@ -129,12 +37,6 @@ DUMMYDEPS=\ # -# clean file lists: -# -ERROR_LOG = 2> /dev/null -SILENT_LOG = 2>&1 > /dev/null -date = $(shell date +%x) - # version stuff: # lily-version = $(lilyout)/version.hh @@ -148,101 +50,43 @@ LIBFLOWER = $(flowerout)/$(LIB_PREFIX)flower$(LIB_SUFFIX) LIBLILY = $(libout)/$(LIB_PREFIX)lily$(LIB_SUFFIX) # -# compile and link options: -# -ARFLAGS = ru -CFLAGS = $(ICFLAGS) $(DEFINES) $(INCLUDES) $(USER_CFLAGS) $(EXTRA_CFLAGS) - -# added two warnings that are treated by cygwin32's gcc 2.7.2 as errors. -# huh, but still, no warnings even provoced with linux's gcc 2.7.2.1? - -# -pipe makes it go faster, but is not supported on all platforms. -# EXTRA_CXXFLAGS= -Wall -Winline -W -Wmissing-prototypes -Wmissing-declarations -Wconversion -EXTRA_CXXFLAGS= -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wconversion - -CXXFLAGS = $(CFLAGS) $(USER_CXXFLAGS) $(EXTRA_CXXFLAGS) $(MODULE_CXXFLAGS) -INCLUDES = -Iinclude -I$(outdir) -I$(include-lib) -I$(libout) -I$(include-flower) -I$(flowerout) -CXX_OUTPUT_OPTION = $< -o $@ -LDFLAGS = $(ILDFLAGS) $(USER_LDFLAGS) $(EXTRA_LDFLAGS) $(MODULE_LDFLAGS) -L$(depth)/lib/$(outdir) -L$(depth)/flower/$(outdir) -LOADLIBES = $(EXTRA_LIBES) $(MODULE_LIBES) -lstdc++ # need lg++ for win32, really! -# - -# macro compiler: -# -M4 = m4 -# - -# librarian: -# -AR = ar -AR_COMMAND = $(AR) $(ARFLAGS) $@ -# -RANLIB_COMMAND=$(RANLIB) $@ -# compiler: -# - -DO_CXX_COMPILE=$(DODEP)\ - $(CXX) -c $(CXXFLAGS) $(CXX_OUTPUT_OPTION) - -# linker: -# -LD = $(CXX) -LD_COMMAND = $(LD) $(LDFLAGS) -o $@ -# - -# dependencies: -# -depfile = $(depdir)/$(subst .o,.dep,$(notdir $@))# -DODEP=rm -f $(depfile); DEPENDENCIES_OUTPUT="$(depfile) $(outdir)/$(notdir $@)" -# - -# utils: -# -#FLEX = flex -#BISON = bison -# - -# generic target names: -# -ifdef NAME -EXECUTABLE = $(outdir)/$(NAME)$(EXE) -else -EXECUTABLE = -endif - -EXECUTABLES = $(EXECUTABLE) -LIB_PREFIX = lib - -ifndef LIB_SUFFIX -LIB_SUFFIX = .a -endif - -LIBRARY = $(outdir)/$(LIB_PREFIX)$(NAME).a -SHAREDLIBRARY=$(outdir)/$(LIB_PREFIX)$(NAME).so -# +LILYPOND_INCLUDES = -I$(include-lib) -I$(libout) -I$(include-flower) -I$(flowerout) +LILYPOND_LDFLAGS = -L$(depth)/lib/$(outdir) -L$(depth)/flower/$(outdir) +LILYPOND_LIBES = -#replace to do stripping of certain objects -STRIPDEBUG=true -DISTFILES=$(EXTRA_DISTFILES) Makefile $(ALL_SOURCES) -DOCDIR=$(depth)/$(outdir) +# should use to create .spec ? -pod2groff=$(POD2MAN) --center="LilyPond documentation" --section="0"\ - --release="LilyPond $(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)" $< > $@ +# installed by 'make installextradoc' +EXTRA_DOC_FILES = \ + ANNOUNCEMENT ANNOUNCE-0.1 AUTHORS.txt BUGS COPYING DEDICATION INSTALL.txt NEWS PATCHES.txt README.txt TODO \ + Documentation/out/*.txt\ + Documentation/tex/*.doc\ + Documentation/tex/*.bib\ + Documentation/pictures/out/lelie_logo.gif\ + input\ + mutopia\ +INSTALLED_EXTRA_DOC_FILES = $(addprefix $(prefix:/%=%)/doc/lilypond/, $(EXTRA_DOC_FILES)) -STRIP=strip --strip-debug -ifdef stablecc - STABLEOBS=$(addprefix $(outdir)/,$(stablecc:.cc=.o)) -endif +# installed by 'make install' +INSTALL_DIST_FILES = \ + bin/convert-mudela\ + bin/mudela-book\ + bin/ly2dvi\ + bin/lilypond$(DOTEXE)\ + bin/mi2mu$(DOTEXE)\ + info/lilypond.info\ + man/man1/mi2mu.1\ + man/man1/lilypond.1\ + man/man1/mudela-book.1\ + man/man1/ly2dvi.1\ + man/man1/convert-mudela.1\ + lib/texmf/texmf/tex/lilypond\ + lib/texmf/texmf/fonts/source/public/lilypond\ + share/lilypond/\ + share/locale/*/LC_MESSAGES/lilypond.mo\ -# substitute $(STRIP) in Site.make if you want stripping -DO_STRIP=true -ifdef SUBDIRS -LOOP=set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done -else -LOOP= -endif +INSTALLED_DIST_FILES = $(addprefix $(prefix:/%=%)/, $(INSTALL_DIST_FILES)) -sed-version= sed 's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g' -- 2.39.5