]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/c++-vars.make
e273cc7a48918649dde031e294c16788d2120cc9
[lilypond.git] / stepmake / stepmake / c++-vars.make
1
2 # added two warnings that are treated by cygwin32's gcc 2.7.2 as errors.
3 # huh, but still, no warnings even provoced with linux's gcc 2.7.2.1?
4
5 # -pipe makes it go faster, but is not supported on all platforms. 
6 # EXTRA_CXXFLAGS= -Wall -Winline -W -Wmissing-prototypes -Wmissing-declarations -Wconversion
7 EXTRA_CXXFLAGS= -Wall  -W -Wmissing-prototypes -Wmissing-declarations -Wconversion
8
9
10  CXXFLAGS = $(ICFLAGS) $(DEFINES) $(addprefix -I,$(INCLUDES)) $(USER_CFLAGS) $(EXTRA_CFLAGS) $(MODULE_CFLAGS) $($(PACKAGE)_CFLAGS) $($(PACKAGE)_CXXFLAGS) $(USER_CXXFLAGS) $(EXTRA_CXXFLAGS) $(MODULE_CXXFLAGS)
11 CXX_OUTPUT_OPTION = $< -o $@
12 DO_CXX_COMPILE=$(DODEP) $(CXX) -c $(CXXFLAGS) $(CXX_OUTPUT_OPTION)
13
14 # template files:
15 TCC_FILES := $(wildcard *.tcc)
16 HH_FILES := $(wildcard *.hh)
17 CC_FILES := $(wildcard *.cc)
18 INL_FILES := $(wildcard *.icc)
19 YY_FILES := $(wildcard *.yy)
20 LL_FILES := $(wildcard *.ll)
21
22 SOURCE_FILES+= $(CC_FILES) $(YY_FILES) $(INL_FILES) $(TCC_FILES) $(HH_FILES) $(LL_FILES)
23
24 ALL_CC_SOURCES += $(HH_FILES) $(INL_FILES) $(CC_FILES) $(YY_FILES) $(LL_FILES) 
25
26 O_FILES+=$(addprefix $(outdir)/, $(CC_FILES:.cc=.o) $(LL_FILES:.ll=.o) $(YY_FILES:.yy=.o))
27
28 TAGS_FILES += $(TCC_FILES) $(HH_FILES) $(INL_FILES) $(CC_FILES) $(YY_FILES) $(LL_FILES)
29