2 include $(TOP)/config/make.cfg
4 #MM mesa-demos-glexcess : \
7 #MM $(CROSSTOOLS_TARGET) \
8 #MM workbench-libs-mesa-includes \
9 #MM workbench-libs-glu-includes \
10 #MM contrib-gfx-libs-glut \
11 #MM mesa-demos-glexcess-cpp \
12 #MM mesa-demos-glexcess-copyfiles
34 USER_CFLAGS := -fno-asynchronous-unwind-tables -fno-exceptions
37 CXX_FLAGS := $(CFLAGS) $(USER_CFLAGS) -fno-rtti -nostdinc++
38 CXX_FLAGS := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(CXX_FLAGS)))
40 # Define the use of cross compiler
42 CXX_CC := $(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros-g++
44 CXX_CC := $(TARGET_CXX)
48 %compile_q cmd=$(CXX_CC) opt=$(CXX_FLAGS) from=$(SRCDIR)/$(CURDIR)/$@.cpp to="$(addsuffix .o,$(addprefix $(GENDIR)/$(CURDIR)/,$(notdir $@)))"
51 mesa-demos-glexcess-cpp : mesa-demos-glexcess-cpp-directories-setup $(GLEXCESS_SOURCES)
54 mesa-demos-glexcess-cpp-directories-setup :
55 %mkdirs_q dirs="$(GENDIR)/$(CURDIR) $(AROS_CONTRIB)/Demos/Mesa/GLExcess"
57 USER_LDFLAGS := -L$(AROS_LIB)
61 %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"
64 mesa-demos-glexcess-copyfiles :
65 %copy_dir_recursive mmake=mesa-demos-glexcess-copyfiles src=data dst="$(GENDIR)/$(CURDIR) $(AROS_CONTRIB)/Demos/Mesa/GLExcess/data"