3 include $(SRCDIR)/config/aros-contrib.cfg
5 #MM mesa-demos-glexcess : \
8 #MM $(CROSSTOOLS_TARGET) \
9 #MM workbench-libs-mesa-includes \
10 #MM workbench-libs-glu-includes \
11 #MM contrib-gfx-libs-glut \
12 #MM mesa-demos-glexcess-cpp \
13 #MM mesa-demos-glexcess-copyfiles
35 NOWARN_FLAGS := $(NOWARN_WRITE_STRINGS) $(NOWARN_ARRAY_BOUNDS) $(NOWARN_MISLEADING_INDENTATION)
37 USER_CFLAGS := $(NOWARN_FLAGS) -fno-asynchronous-unwind-tables -fno-exceptions
40 CXX_FLAGS := $(CFLAGS) $(USER_CFLAGS) -fno-rtti -nostdinc++
41 CXX_FLAGS := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(CXX_FLAGS)))
43 # Define the use of cross compiler
45 CXX_CC := $(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros-g++
47 CXX_CC := $(TARGET_CXX)
51 %compile_q cmd=$(CXX_CC) opt=$(CXX_FLAGS) from=$(SRCDIR)/$(CURDIR)/$@.cpp to="$(addsuffix .o,$(addprefix $(GENDIR)/$(CURDIR)/,$(notdir $@)))"
54 mesa-demos-glexcess-cpp : mesa-demos-glexcess-cpp-directories-setup $(GLEXCESS_SOURCES)
57 mesa-demos-glexcess-cpp-directories-setup :
58 %mkdirs_q dirs="$(GENDIR)/$(CURDIR) $(AROS_CONTRIB)/Demos/Mesa/GLExcess"
60 USER_LDFLAGS := -L$(AROS_LIB) -static-libstdc++
64 %link_q cmd=$(TARGET_CXX) from="$(addsuffix .o,$(addprefix $(GENDIR)/$(CURDIR)/,$(notdir $(GLEXCESS_SOURCES))))" to=$(AROS_CONTRIB)/Demos/Mesa/GLExcess/GLExcess libs="-lglut -lGL -lGLU"
67 mesa-demos-glexcess-copyfiles :
68 %copy_dir_recursive mmake=mesa-demos-glexcess-copyfiles src=data dst="$(GENDIR)/$(CURDIR) $(AROS_CONTRIB)/Demos/Mesa/GLExcess/data"