+# Makefile
+# top level makefile of LilyPond
+
include Variables.make
.SUFFIXES:
$(exe): $(obs)
$(STRIPDEBUG) $(STABLEOBS)
- $(CXX) -o $@ $^ $(LOADLIBES)
+ $(LINKER) -o $@ $^ $(LOADLIBES)
+$(m2m): $(m2mobs)
+ $(LINKER) -o $@ $^ $(LOADLIBES)
-.PHONY: clean
+.PHONY: clean docxx
clean:
- rm -f $(exe) $(DOCDIR)/* core $(obs) $(ALLDEPS)
+ rm -f $(allexe) $(DOCDIR)/* core $(allobs)
for SUBDIR in $(SUBDIRS); \
do \
$(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR clean;\
done
distclean: clean
- rm -f version.hh $(gencc) .GENERATE *~ $(ALLDEPS)
+ rm -f version.hh $(gencc) .GENERATE *~ $(ALLDEPS)
-all: kompijl doc
+all: $(exe) $(m2m) doc
-win32: # value of $(OSTYPE) on windhoos; "make $OSTYPE" if u use bash :-)
+# value of $(OSTYPE) on windhoos; "make $OSTYPE" if you use bash :-)
+win32:
$(MAKE) -C . CXX=g++
doc:
$(MAKE) -C Documentation doc
# doc++ documentation of classes
-docpp: $(progdocs)
- -mkdir $(DOCDIR)
- doc++ -p -I -d $(DOCDIR) $^
+docxx: $(progdocs)
+ doc++ -kp -d $(DOCDIR) $^
+
+
+include $(DEPDIR)/*.dep
$(OBJECTDIR)/%.o: $(CCDIR)/%.cc
$(DODEP)\
$(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION)
-
-include $(DEPDIR)/*.dep
-
$(OBJECTDIR)/version.o: $(obs) $(HEADERDIR)/version.hh
include Generate.make