6 OPTIFLAG
=-DNDEBUG
-DNPRINT
-O2
9 # turn off -pipe if linker doesn't support it
10 EXTRACXXFLAGS
=-pipe
-Wall
-W
-Wmissing-prototypes
13 # -lefence = ElectricFence.
15 # ElectricFence is a memory debugger which uses the
16 # VM hardware to trap malloc/free errors.
21 #### END USER CONFIGURABLE part.
25 DEFINES
+=$(OPTIFLAG
) $(PROFILEFLAG
)
41 VERSION
=$(MAJVER
).
$(MINVER
).
$(PATCHLEVEL
)
42 CXXVER
=`$(CXX) --version`
45 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
53 #vpath %.hh $(HEADERDIR)
56 #vpath %.o $(OBJECTDIR)
57 #vpath %.dep $(DEPDIR)
62 progdocs
=$(hdr
) $(mycc
)
63 gencc
=parser.
cc lexer.
cc
66 CCSOURCE
=$(addprefix $(CCDIR
)/, $(cc))
67 obs
=$(addprefix $(OBJECTDIR
)/,$(cc:.
cc=.o
))
68 ALLDEPS
=$(addprefix $(DEPDIR
)/,$(cc:.
cc=.dep
))
71 .EXPORT_ALL_VARIABLES
:
76 DNAME
=$(PACKAGENAME
)-$(VERSION
)
79 othersrc
=lexer.l parser.y
80 SCRIPTS
=make_version make_patch genheader clearlily
81 MAKFILES
=Makefile Variables.make Sources.make Initial.make Generate.make \
83 OFILES
=COPYING README NEWS TODO
84 IFILES
= standchen.
tex titledefs.
tex pavane.
tex lilyponddefs.
tex \
85 ltest.
tex test.
tex .dstreamrc dimen.
tex
86 DFILES
=$(MAKFILES
) $(OFILES
) $(IFILES
) $(SCRIPTS
)
89 LOADLIBES
=-L
$(FLOWERDIR
) -lflower
$(EXTRALIB
)
92 CXXFLAGS
=$(DEFINES
) -I
$(HEADERDIR
) -I
$(FLOWERDIR
) $(EXTRACXXFLAGS
)
96 OUTPUT_OPTION
=$< -o
$@
97 DDIR
=$(TOPDIR
)/$(DNAME
)
98 SUBDIRS
=Documentation
$(OBJECTDIR
) $(CCDIR
) $(HEADERDIR
) $(INITDIR
) $(DEPDIR
) \
101 depfile
=deps
/$(subst .o
,.dep
,$(notdir $@
))
102 DODEP
=rm -f
$(depfile
); DEPENDENCIES_OUTPUT
="$(depfile) $(OBJECTDIR)/$(notdir $@)"