update patch for openssl to 1.1.0h
[AROS-Contrib.git] / Demo / GLExcess / mmakefile.src
blob1ce8026a6caed9a986751a5e9ff77cefeff6f1d8
1 #   $Id$
3 include $(SRCDIR)/config/aros-contrib.cfg
5 #MM mesa-demos-glexcess : \
6 #MM     includes \
7 #MM     linklibs-startup \
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
15 GLEXCESS_SOURCES = \
16         glxsglut \
17         scene01 \
18         scene02 \
19         scene03 \
20         scene04 \
21         scene05 \
22         scene06 \
23         scene07 \
24         scene08 \
25         scene09 \
26         scene10 \
27         scene11 \
28         scene12 \
29         Texture \
30         utils
32 USER_INCLUDES := \
33     -I$(SRCDIR)/$(CURDIR)
35 NOWARN_FLAGS := $(NOWARN_WRITE_STRINGS) $(NOWARN_ARRAY_BOUNDS) $(NOWARN_MISLEADING_INDENTATION)
37 USER_CFLAGS := $(NOWARN_FLAGS) -fno-asynchronous-unwind-tables -fno-exceptions 
39 # Remove C-only flags
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
44 ifeq ($(TARGET_CXX),)
45   CXX_CC := $(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros-g++
46 else
47   CXX_CC := $(TARGET_CXX)
48 endif
50 $(GLEXCESS_SOURCES) :
51 %compile_q cmd=$(CXX_CC) opt=$(CXX_FLAGS) from=$(SRCDIR)/$(CURDIR)/$@.cpp to="$(addsuffix .o,$(addprefix $(GENDIR)/$(CURDIR)/,$(notdir $@)))"
53 #MM
54 mesa-demos-glexcess-cpp : mesa-demos-glexcess-cpp-directories-setup $(GLEXCESS_SOURCES)
56 #MM
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++
62 #MM
63 mesa-demos-glexcess :
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"
66 #MM
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"
70 %common