Subversion Repositories Kolibri OS

Rev

Rev 4628 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4628 Rev 4866
Line 1... Line -...
1
CC = gcc
-
 
Line 2... Line 1...
2
 
1
SRC_DIR:=$(SDK_DIR)/sources
3
SRC_DIR:=$(SDK_DIR)/sources
2
MESA_SRC:= $(SRC_DIR)/Mesa/src
Line 4... Line 3...
4
MESA_SRC:= $(SRC_DIR)/Mesa/src
3
 
5
 
4
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os 
6
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os 
5
CFLAGS_OPT+= -fomit-frame-pointer -mno-ms-bitfields
Line 7... Line -...
7
CFLAGS_OPT+= -fomit-frame-pointer -mno-ms-bitfields
-
 
8
CFLAGS   = -c $(CFLAGS_OPT)
6
CFLAGS   = -c $(CFLAGS_OPT)
Line 9... Line -...
9
 
-
 
10
LD = ld
-
 
11
LDFLAGS = -nostdlib -shared -s --image-base 0 -T $(SRC_DIR)/newlib/dll.lds --out-implib libegl.dll.a -e _DllStartup
-
 
12
 
7
 
13
STRIP = $(PREFIX)strip
8
LDFLAGS = -nostdlib -shared -s --image-base 0 -T $(SRC_DIR)/newlib/dll.lds --out-implib libegl.dll.a -e _DllStartup
14
 
9
 
Line 15... Line 10...
15
 
10
INC_EGL:= -I$(SRC_DIR)/newlib/include -I$(SDK_DIR)/includes -I$(SRC_DIR)/Mesa/include
Line 16... Line 11...
16
INC_EGL:= -I$(SRC_DIR)/newlib/include -I$(SDK_DIR)/includes -I$(SRC_DIR)/Mesa/include
11
INC_EGL+= -I$(SRC_DIR)/libdrm -I$(SRC_DIR)/libdrm/include/drm -I./main
Line 17... Line 12...
17
INC_EGL+= -I$(SRC_DIR)/libdrm -I$(SRC_DIR)/libdrm/include/drm -I./main
12
INC_EGL+= -I$(MESA_SRC)/gbm/backends/dri -I$(MESA_SRC)/gbm/main
18
INC_EGL+= -I$(MESA_SRC)/gbm/backends/dri -I$(MESA_SRC)/gbm/main
13
 
Line 61... Line 56...
61
 
56
all: libegl.dll
Line 62... Line 57...
62
all: libegl.dll
57
 
63
 
58
libegl.dll: $(EGL_OBJS) Makefile
64
libegl.dll: $(EGL_OBJS) Makefile
59
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(MESA_SRC)/../egl.def $(EGL_OBJS) $(LIBS)
65
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(MESA_SRC)/../egl.def $(EGL_OBJS) $(LIBS)
60
#	$(STRIP) $@
66
	$(STRIP) $@
61
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
67
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
62
	mv -f $@ $(SDK_DIR)/bin
Line 68... Line 63...
68
	mv -f $@ $(SDK_DIR)/bin
63
	mv -f libegl.dll.a $(SDK_DIR)/lib