11 #### USER CONFIGURABLE
15 OPTIFLAG
=-DNDEBUG
-DNPRINT
-O2
18 # uncomment for windhoos
21 # turn off -pipe if linker doesn't support it
22 EXTRACXXFLAGS
=-pipe
-Wall
-W
-Wmissing-prototypes
-DSTRING_UTILS_INLINED
25 # -lefence = ElectricFence.
27 # ElectricFence is a memory debugger which uses the
28 # VM hardware to trap malloc/free errors.
34 #### END USER CONFIGURABLE part.
38 DEFINES
+=$(OPTIFLAG
) $(PROFILEFLAG
)
50 VERSION
=$(MAJVER
).
$(MINVER
).
$(PATCHLEVEL
)
51 CXXVER
=`$(CXX) --version`
54 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
68 gencc
=parser.
cc lexer.
cc
70 mym2mgencc
=midi-parser.
cc midi-lexer.
cc
71 m2mcc
=$(mym2mcc
) $(mym2mgencc
) $(mym2msharedcc
)
73 MY_CCSOURCE
=$(addprefix $(CCDIR
)/, $(mycc
))
74 CCSOURCE
=$(addprefix $(CCDIR
)/, $(cc))
75 obs
=$(addprefix $(OBJECTDIR
)/,$(cc:.
cc=.o
))
76 m2mobs
=$(addprefix $(OBJECTDIR
)/,$(m2mcc
:.
cc=.o
))
77 allcc
=$(mycc
) $(mym2mcc
)
78 allobs
=$(obs
) $(m2mobs
)
80 M2MCCSOURCE
=$(addprefix $(CCDIR
)/, $(m2mcc
))
81 ALLDEPS
=$(addprefix $(DEPDIR
)/,$(cc:.
cc=.dep
))
82 STABLEOBS
=$(addprefix $(OBJECTDIR
)/,$(stablecc
:.
cc=.o
))
83 allhdr
=$(hdr
) $(mym2mhh
)
84 HEADERS
=$(addprefix $(HEADERDIR
)/,$(allhdr
))
85 progdocs
=$(HEADERS
) $(MY_CCSOURCE
)
88 .EXPORT_ALL_VARIABLES
:
93 DNAME
=$(PACKAGENAME
)-$(VERSION
)
97 othersrc
=lexer.l parser.y midi-lexer.l midi-parser.y
98 SCRIPTS
=make_version make_patch genheader clearlily
99 MAKFILES
=Makefile Variables.make Sources.make Initial.make Generate.make \
101 OFILES
=COPYING README NEWS TODO ANNOUNCE
102 IFILES
= titledefs.
tex lilyponddefs.
tex \
103 ltest.
tex test.
tex .dstreamrc dimen.
tex
104 DFILES
=$(MAKFILES
) $(OFILES
) $(IFILES
) $(SCRIPTS
)
107 LOADLIBES
=-L
$(FLOWERDIR
) -lflower
$(EXTRALIB
) -lg
++
110 CXXFLAGS
=$(DEFINES
) -I
$(HEADERDIR
) -I
$(FLOWERDIR
) $(EXTRACXXFLAGS
)
115 OUTPUT_OPTION
=$< -o
$@
116 DDIR
=$(TOPDIR
)/$(DNAME
)
117 SUBDIRS
=Documentation
$(OBJECTDIR
) $(CCDIR
) $(HEADERDIR
) $(INITDIR
) $(DEPDIR
) \
120 depfile
=deps
/$(subst .o
,.dep
,$(notdir $@
))
121 DODEP
=rm -f
$(depfile
); DEPENDENCIES_OUTPUT
="$(depfile) $(OBJECTDIR)/$(notdir $@)"
123 STRIPDEBUG
=true
#replace to do stripping of certain objects