Subversion Repositories Kolibri OS

Rev

Rev 6114 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6114 Rev 6606
Line 4... Line 4...
4
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os 
4
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os 
5
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
5
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
6
CFLAGS   = -c $(CFLAGS_OPT)
6
CFLAGS   = -c $(CFLAGS_OPT)
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
LDFLAGS = -nostdlib -shared -s --image-base 0 -T $(SRC_DIR)/newlib/dll.lds --out-implib libegl.dll.a -e _DllStartup
8
LDFLAGS = -shared -s --image-base 0 -T dll.lds --out-implib libegl.dll.a -e _DllStartup
9
 
9
 
10
INC_EGL:= -I$(SRC_DIR)/newlib/libc/include -I$(SDK_DIR)/includes -I$(SRC_DIR)/Mesa/mesa-9.2.5/include
10
INC_EGL:= -I$(SRC_DIR)/newlib/libc/include -I$(SDK_DIR)/includes -I$(SRC_DIR)/Mesa/mesa-9.2.5/include
Line 11... Line -...
11
INC_EGL+= -I$(SRC_DIR)/libdrm -I$(SRC_DIR)/libdrm/include/drm -I./main -I./wayland
-
 
12
INC_EGL+= -I$(MESA_SRC)/gbm/backends/dri -I$(MESA_SRC)/gbm/main
-
 
13
 
11
INC_EGL+= -I$(SRC_DIR)/libdrm -I$(SRC_DIR)/libdrm/include/drm -I./main -I./wayland
Line 14... Line 12...
14
LIBPATH:= -L$(SDK_DIR)/lib -L/home/autobuild/tools/win32/mingw32/lib
12
INC_EGL+= -I$(MESA_SRC)/gbm/backends/dri -I$(MESA_SRC)/gbm/main
15
 
13
 
16
LIBS:=  -ldll -ldrm.dll -lc.dll -lgcc
14
LIBS:=  -ldll -ldrm.dll -lgcc -lc.dll
17
 
15
 
Line 55... Line 53...
55
 
53
 
Line 56... Line 54...
56
all: libegl.dll
54
all: libegl.dll
Line 57... Line 55...
57
 
55
 
58
libegl.dll: $(EGL_OBJS) Makefile
56
libegl.dll: $(EGL_OBJS) Makefile
59
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(MESA_SRC)/../egl.def $(EGL_OBJS) $(LIBS)
57
	$(LD) $(LDFLAGS) -o $@ $(MESA_SRC)/../egl.def $(EGL_OBJS) $(LIBS)
60
#	$(STRIP) $@
58
#	$(STRIP) $@
61
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
59
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
62
	mv -f $@ $(SDK_DIR)/bin
60
	mv -f $@ $(SDK_DIR)/bin
Line 63... Line 61...
63
	mv -f libegl.dll.a $(SDK_DIR)/lib   
61
	mv -f libegl.dll.a $(INSTALLDIR)
64
 
62