[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makefile changes for lilypond shared lib

From: Nicolas Sceaux
Subject: Re: makefile changes for lilypond shared lib
Date: Tue, 29 Jun 2004 11:12:42 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Jan Nieuwenhuizen <address@hidden> writes:

> I've applied the patch, executed the split instructions and committed
> to my TLA archive, lilypond--lily-as-lib branch, with a few minor
> --srcdir build issues fixed.

Here is a patch that fixes the python-module rules. Also, GNUmakefile
is missing from parser/

`make all' has succeeded
`make web' is running and looks fine so far.

These are my last few free days, after that I will be overwhelmed by
other non-computer-related tasks. I would like to do the most I can
until then. What do you think should be done now?


* looking for address@hidden/lilypond--lily-as-lib--0--patch-11 to compare with
* comparing to address@hidden/lilypond--lily-as-lib--0--patch-11
M  stepmake/stepmake/python-module-rules.make
M  stepmake/stepmake/python-module-vars.make

* modified files

--- orig/stepmake/stepmake/python-module-rules.make
+++ mod/stepmake/stepmake/python-module-rules.make
@@ -1,6 +1,7 @@
-$(outdir)/%$(SHARED_MODULE_SUFFIX): $(outdir)/%.o
-       $(LD) $(SHARED_FLAGS) -o $@ $< $(ALL_LDFLAGS)
+$(outdir)/%$(SHARED_MODULE_SUFFIX): $(outdir)/%.lo
+       $(LIBTOOL_LINK) -o $(addprefix $(outdir)/lib, $(notdir 
+       cd $(outdir) && /bin/rm -f $(notdir $@) && $(LN_S) 
$(LIBTOOL_DIR)/$(addprefix lib, $(notdir $@)) $(notdir $@)
 $(outdir)/%.pyc: $(outdir)/
        $(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'

--- orig/stepmake/stepmake/python-module-vars.make
+++ mod/stepmake/stepmake/python-module-vars.make
@@ -6,6 +6,8 @@
 OUT_SO_MODULES = $(addprefix $(outdir)/, $(C_FILES:.c=$(SHARED_MODULE_SUFFIX)))

depth = ..

NAME = lyparser
SUBDIRS = include

MODULE_LIBS=$(depth)/flower/flower $(depth)/lily/lily 
MODULE_INCLUDES= $(depth)/flower/include $(depth)/lily/include

STEPMAKE_TEMPLATES= c++ library po

include $(depth)/make/stepmake.make 

# for profiling, link guile statically:
# USER_LDFLAGS += -static -lltdl -ldl

ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'
ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/'


# force these: Make can't know these have to be generated in advance
$(outdir)/my-lily-parser.o: $(outdir)/parser.hh
$(outdir)/my-lily-lexer.o: $(outdir)/parser.hh
$(outdir)/lexer.o: $(outdir)/parser.hh $(outdir)/version.hh

$(outdir)/my-lily-parser.lo: $(outdir)/parser.hh
$(outdir)/my-lily-lexer.lo: $(outdir)/parser.hh
$(outdir)/lexer.lo: $(outdir)/parser.hh $(outdir)/version.hh

# ugh.  For --srcdir builds, these must exist to satisfy their broken
# lexer.dep and parser.dep file entries.
ifneq ($(srcdir), .)
.PRECIOUS: $(outdir)/ $(outdir)/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]