clean up some makefile issues. (NicJA)
[AROS.git] / arch / all-hosted / libs / hostgl / mmakefile.src
blob20fe525cef6a18deaecb3d56a70a5d1b06426f17
1 #   $Id$
3 #   Generate libGL.a
6 include $(SRCDIR)/config/aros.cfg
8 #MM- workbench-libs-complete : workbench-libs-hostgl-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU)
10 #MM- workbench-libs-hostgl-linux-i386 : workbench-libs-hostgl
11 #MM- workbench-libs-hostgl-linux-x86_64 : workbench-libs-hostgl
13 #MM workbench-libs-hostgl : includes
15 MESA_BASE_DIRECTORY := $(SRCDIR)/workbench/libs/mesa/src
16 MESA_DIRECTORY := $(MESA_BASE_DIRECTORY)/mesa
17 MESA_AROS_DIRECTORY := $(MESA_BASE_DIRECTORY)/aros
18 MESA_GALLIUM_DIRECTORY := $(MESA_BASE_DIRECTORY)/gallium
19 MESA_ST_DIRECTORY := $(MESA_GALLIUM_DIRECTORY)/state_trackers/arosmesa
20 MESA_MAPI_DIRECTORY := $(MESA_BASE_DIRECTORY)/mapi
22 LIBRARY_SOURCES = \
23                 $(MESA_AROS_DIRECTORY)/tls \
24                 hostgl_funcs \
25                 hostgl_gl_api \
26                 hostgl_support \
27                 hostgl_ctx_manager \
28                 hostgl_glacreatecontext \
29                 hostgl_gladestroycontext \
30                 hostgl_glagetconfig \
31                 hostgl_glagetcurrentcontext \
32                 hostgl_glagetopenglstatetrackerapi \
33                 hostgl_glagetprocaddress \
34                 hostgl_glamakecurrent \
35                 hostgl_glasetrast \
36                 hostgl_glaswapbuffers \
37                 x11_hostlib \
38                 glx_hostlib
40 USER_INCLUDES :=  \
41     -I$(SRCDIR)/$(CURDIR)/../../hidd/x11 \
42     -I$(MESA_AROS_DIRECTORY) \
43     -I$(MESA_ST_DIRECTORY) \
44     -I$(MESA_DIRECTORY) \
45     -I$(MESA_GALLIUM_DIRECTORY)/include \
46     -I$(MESA_MAPI_DIRECTORY) \
47     -isystem $(GENINCDIR) \
48      $(KERNEL_INCLUDES)
50 USER_CPPFLAGS := -DHOST_OS_$(ARCH) -DAROSMESA_TYPES='"hostgl_types.h"'
51 USER_CFLAGS := $(HOST_X11_CFLAGS)
53 %build_module_library mmake=workbench-libs-hostgl \
54     modname=hostgl modtype=library conffile=$(SRCDIR)/workbench/libs/gl/gl.conf \
55     files="$(LIBRARY_SOURCES)" \
56     uselibs="stdcio stdc"
58 %common