Subversion Repositories Kolibri OS

Rev

Rev 4866 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4628 Serge 1
 
2
MESA_SRC:= $(SRC_DIR)/Mesa/src
3
4
 
5
CFLAGS_OPT+= -fomit-frame-pointer -mno-ms-bitfields
6
CFLAGS   = -c $(CFLAGS_OPT)
7
8
 
9
10
 
4930 Serge 11
INC_EGL+= -I$(SRC_DIR)/libdrm -I$(SRC_DIR)/libdrm/include/drm -I./main
4628 Serge 12
INC_EGL+= -I$(MESA_SRC)/gbm/backends/dri -I$(MESA_SRC)/gbm/main
13
14
 
4866 Serge 15
4628 Serge 16
 
17
18
 
19
MESA_DEFS+= -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_VERSION=\"9.2.5\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\"
20
MESA_DEFS+= -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"9.2.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
21
MESA_DEFS+= -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
22
23
 
24
25
 
26
	drivers/dri2/egl_dri2.c		\
27
	drivers/dri2/platform_drm.c	\
28
	main/eglapi.c			\
29
	main/eglarray.c			\
30
	main/eglconfig.c		\
31
	main/eglcontext.c		\
32
	main/eglcurrent.c		\
33
	main/egldisplay.c		\
34
	main/egldriver.c		\
35
	main/eglfallbacks.c		\
36
	main/eglglobals.c		\
37
	main/eglimage.c			\
38
	main/egllog.c			\
39
	main/eglmisc.c			\
40
	main/eglmode.c			\
41
	main/eglscreen.c		\
42
	main/eglstring.c		\
43
	main/eglsurface.c		\
44
	main/eglsync.c			\
45
	$(MESA_SRC)/gbm/backends/dri/driver_name.c	\
46
	$(MESA_SRC)/gbm/backends/dri/gbm_dri.c		\
47
	$(MESA_SRC)/gbm/main/backend.c			\
48
	$(MESA_SRC)/gbm/main/gbm.c			\
49
	$(NULL)
50
51
 
52
 
53
54
 
55
56
 
57
58
 
59
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(MESA_SRC)/../egl.def $(EGL_OBJS) $(LIBS)
60
#	$(STRIP) $@
4866 Serge 61
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
4628 Serge 62
	mv -f $@ $(SDK_DIR)/bin
63
	mv -f libegl.dll.a $(SDK_DIR)/lib
64
65
 
66
	$(CC) $(CFLAGS) $(MESA_DEFS) $(EGL_DEFS) $(INC_EGL) -o $@ $<
67