move mesa src into mesa-9.2.5
git-svn-id: svn://kolibrios.org@5563 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b754cb2eae
commit
e155f7ce5a
@ -4,7 +4,7 @@ export AR = kos32-ar
|
||||
export LD = kos32-ld
|
||||
export STRIP = kos32-strip
|
||||
|
||||
export SDK_DIR:= $(abspath ../..)
|
||||
export SDK_DIR:= $(abspath ../../..)
|
||||
|
||||
EGL = egl
|
||||
|
||||
@ -12,13 +12,13 @@ CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os
|
||||
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
|
||||
CFLAGS = -c $(CFLAGS_OPT)
|
||||
|
||||
LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../newlib/dll.lds -e _DllStartup
|
||||
LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../../newlib/dll.lds -e _DllStartup
|
||||
LDFLAGS+= --out-implib lib$(EGL).dll.a
|
||||
|
||||
INC_MESA= -I../newlib/libc/include -I./include -I./src -I./src/glsl -I./src/mesa -I./src/mapi
|
||||
INC_EGL= -I../newlib/libc/include -I../../includes -I./include -I../libdrm -I../libdrm/include/drm -I./src/egl/main -I./src/gbm/backends/dri -I./src/gbm/main
|
||||
INC_MESA= -I../../newlib/libc/include -I./include -I./src -I./src/glsl -I./src/mesa -I./src/mapi
|
||||
INC_EGL= -I../../newlib/libc/include -I../../../includes -I./include -I../../libdrm -I../../libdrm/include/drm -I./src/egl/main -I./src/gbm/backends/dri -I./src/gbm/main
|
||||
|
||||
LIBPATH:= -L../../lib -L/home/autobuild/tools/win32/mingw32/lib
|
||||
LIBPATH:= -L../../../lib -L/home/autobuild/tools/win32/mingw32/lib
|
||||
|
||||
LIBS:= -ldll -ldrm.dll -lc.dll -lgcc
|
||||
|
||||
@ -43,19 +43,19 @@ $(EGL).dll: $(EGL_OBJS) Makefile
|
||||
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ egl.def $(EGL_OBJS) $(LIBS)
|
||||
# $(STRIP) $@
|
||||
# sed -e "s/ @[^ ]*//" egl1.def > egl.def
|
||||
mv -f $@ ../../bin
|
||||
mv -f lib$(EGL).dll.a ../../lib
|
||||
mv -f $@ ../../../bin
|
||||
mv -f lib$(EGL).dll.a ../../../lib
|
||||
|
||||
libglsl.a : $(GLSL_OBJS) Makefile
|
||||
$(AR) libglsl.a $(GLSL_OBJS)
|
||||
mv -f libglsl.a ../../lib
|
||||
mv -f libglsl.a ../../../lib
|
||||
|
||||
libGL.dll: $(LIBGL_OBJS) Makefile
|
||||
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBGL_OBJS) $(LIBS)
|
||||
# $(STRIP) $@
|
||||
# sed -e "s/ @[^ ]*//" egl1.def > egl.def
|
||||
mv -f $@ ../../bin
|
||||
mv -f libGL.dll.a ../../lib
|
||||
mv -f libGL.dll.a ../../../lib
|
||||
|
||||
src/glsl/glcpp/%.o : src/glsl/glcpp/%.c Makefile
|
||||
$(CC) $(CFLAGS) -std=c99 $(MESA_DEFS) $(INC_MESA) -o $@ $<
|
70
contrib/sdk/sources/Mesa/mesa-9.2.5/Makefile.lto
Normal file
70
contrib/sdk/sources/Mesa/mesa-9.2.5/Makefile.lto
Normal file
@ -0,0 +1,70 @@
|
||||
|
||||
EGL = egl
|
||||
|
||||
CC = gcc
|
||||
|
||||
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 -march=i686 -msse2
|
||||
CFLAGS_OPT+= -fomit-frame-pointer -fno-builtin-printf -mno-stack-arg-probe
|
||||
CFLAGS_OPT+= -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2 -mno-ms-bitfields -flto
|
||||
CFLAGS = -c $(CFLAGS_OPT)
|
||||
|
||||
LD = ld
|
||||
LDFLAGS = -nostdlib,-shared,-s,--image-base,0,-T,../newlib/dll.lds,--out-implib,lib$(EGL).dll.a,-e,_DllStartup
|
||||
|
||||
STRIP = $(PREFIX)strip
|
||||
|
||||
INCLUDES= -I./include -I../libdrm -I../libdrm/include/drm -I./src/egl/main -I./src/gbm/backends/dri -I./src/gbm/main -I../newlib/include
|
||||
|
||||
LIBPATH:= -L../../lib
|
||||
|
||||
LIBS:= -ldll -ldrm.dll -lc.dll -lgcc
|
||||
|
||||
MESA_DEFS= -DMESA_DLL -DBUILD_GL32 -DMAPI_MODE_UTIL -DMAPI_TABLE_NUM_STATIC=87 -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_SSE_ASM -DMAPI_TABLE_NUM_DYNAMIC=256
|
||||
MESA_DEFS+= -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_VERSION=\"9.2.2\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\"
|
||||
MESA_DEFS+= -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"9.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
|
||||
MESA_DEFS+= -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
|
||||
|
||||
EGL_DEFS = -DHAVE_DRM_PLATFORM -D__unix__ -DMESA_EGL_NO_X11_HEADERS -D_EGL_BUILT_IN_DRIVER_DRI2
|
||||
|
||||
EGL_SRC = \
|
||||
src/egl/drivers/dri2/egl_dri2.c \
|
||||
src/egl/drivers/dri2/platform_drm.c \
|
||||
src/egl/main/eglapi.c \
|
||||
src/egl/main/eglarray.c \
|
||||
src/egl/main/eglconfig.c \
|
||||
src/egl/main/eglcontext.c \
|
||||
src/egl/main/eglcurrent.c \
|
||||
src/egl/main/egldisplay.c \
|
||||
src/egl/main/egldriver.c \
|
||||
src/egl/main/eglfallbacks.c \
|
||||
src/egl/main/eglglobals.c \
|
||||
src/egl/main/eglimage.c \
|
||||
src/egl/main/egllog.c \
|
||||
src/egl/main/eglmisc.c \
|
||||
src/egl/main/eglmode.c \
|
||||
src/egl/main/eglscreen.c \
|
||||
src/egl/main/eglstring.c \
|
||||
src/egl/main/eglsurface.c \
|
||||
src/egl/main/eglsync.c \
|
||||
src/gbm/backends/dri/gbm_dri.c \
|
||||
src/gbm/main/backend.c \
|
||||
src/gbm/main/gbm.c \
|
||||
$(NULL)
|
||||
|
||||
EGL_OBJS = $(patsubst %.c, %.o, $(EGL_SRC))
|
||||
|
||||
# targets
|
||||
|
||||
all:$(EGL).dll
|
||||
|
||||
$(EGL).dll: $(EGL_OBJS) Makefile
|
||||
$(CC) $(CFLAGS_OPT) -fwhole-program -nostdlib -Wl,$(LIBPATH),$(LDFLAGS) -o $@ egl.def $(EGL_OBJS) $(LIBS)
|
||||
$(STRIP) $@
|
||||
# sed -e "s/ @[^ ]*//" egl1.def > egl.def
|
||||
mv -f $@ ../../bin
|
||||
mv -f lib$(EGL).dll.a ../../lib
|
||||
|
||||
%.o : %.c Makefile
|
||||
$(CC) $(CFLAGS) $(MESA_DEFS) $(EGL_DEFS) $(INCLUDES) -o $@ $<
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user