make sure c/c++ code both get the correct flags.
[AROS.git] / test / smp / smp-smallpt / mmakefile.src
blobe8654e7e980fb8b8b7e51a8053614582308a0892
1 #   $Id: mmakefile.src 53238 2017-01-19 01:46:57Z NicJA $
4 include $(SRCDIR)/config/aros.cfg
6 FILES   := main renderer
7 CXXFILES := smallpt
8 EXEDIR  := $(AROS_TESTS)/smp
10 #MM- test-smp : test-smp-smp-smallpt
11 #MM- test-smp-quick : test-smp-smp-smallpt-quick
13 #USER_CFLAGS := $(PARANOIA_CFLAGS)
15 NOWARN_FLAGS  := $(NOWARN_VOLATILE_REGISTER_VAR)
16 SMALLPT_FLAGS := $(CFLAGS_NO_RED_ZONE) -Os -flto
17 USER_CXXFLAGS := $(NOWARN_FLAGS) $(SMALLPT_FLAGS)
18 USER_CFLAGS   := -std=gnu99 $(SMALLPT_CFLAGS)
19 USER_LDFLAGS  := -static-libstdc++
21 %build_prog mmake=test-smp-smp-smallpt \
22     files=$(FILES) cxxfiles=$(CXXFILES) targetdir=$(EXEDIR) \
23     uselibs="" progname=SMP-SmallPT
25 %common