Subversion Repositories Kolibri OS

Rev

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

Rev 4768 Rev 4866
Line -... Line 1...
-
 
1
export CC = kos32-gcc
-
 
2
export AR = kos32-ar
1
EGL = egl
3
export LD = kos32-ld
-
 
4
export STRIP = kos32-strip
-
 
5
 
-
 
6
export SDK_DIR:= $(abspath ../..)
Line 2... Line 7...
2
 
7
 
Line 3... Line 8...
3
CC = gcc
8
EGL = egl
4
 
9
 
5
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os 
10
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os 
Line 6... Line -...
6
CFLAGS_OPT+= -fomit-frame-pointer -mno-ms-bitfields
-
 
7
CFLAGS   = -c $(CFLAGS_OPT)
11
CFLAGS_OPT+= -fomit-frame-pointer -mno-ms-bitfields
8
 
-
 
9
LD = ld
-
 
10
LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../newlib/dll.lds --out-implib lib$(EGL).dll.a -e _DllStartup
-
 
11
 
12
CFLAGS   = -c $(CFLAGS_OPT)
Line 12... Line 13...
12
STRIP = $(PREFIX)strip
13
 
13
 
14
LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../newlib/dll.lds -e _DllStartup
Line 14... Line 15...
14
export SDK_DIR:= $(abspath ../..)
15
LDFLAGS+= --out-implib lib$(EGL).dll.a 
Line 15... Line 16...
15
 
16
 
Line 16... Line 17...
16
INC_MESA=  -I../newlib/include -I./include -I./src -I./src/glsl -I./src/mesa -I./src/mapi
17
INC_MESA=  -I../newlib/include -I./include -I./src -I./src/glsl -I./src/mesa -I./src/mapi
17
INC_EGL=   -I../newlib/include -I../../includes -I./include -I../libdrm -I../libdrm/include/drm -I./src/egl/main -I./src/gbm/backends/dri -I./src/gbm/main
18
INC_EGL=   -I../newlib/include -I../../includes -I./include -I../libdrm -I../libdrm/include/drm -I./src/egl/main -I./src/gbm/backends/dri -I./src/gbm/main
Line 38... Line 39...
38
	done
39
	done
39
 
40
 
Line 40... Line 41...
40
$(EGL).dll: $(EGL_OBJS) Makefile
41
$(EGL).dll: $(EGL_OBJS) Makefile
41
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ egl.def $(EGL_OBJS) $(LIBS)
42
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ egl.def $(EGL_OBJS) $(LIBS)
42
	$(STRIP) $@
43
#	$(STRIP) $@
43
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
44
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
44
	mv -f $@ ../../bin
45
	mv -f $@ ../../bin
45
	mv -f lib$(EGL).dll.a ../../lib   
46
	mv -f lib$(EGL).dll.a ../../lib   
Line 46... Line 47...
46
 
47
 
47
libglsl.a : $(GLSL_OBJS) Makefile
48
libglsl.a : $(GLSL_OBJS) Makefile
48
	ar cvrs libglsl.a $(GLSL_OBJS) 
49
	$(AR) libglsl.a $(GLSL_OBJS) 
Line 49... Line 50...
49
	mv -f libglsl.a ../../lib
50
	mv -f libglsl.a ../../lib
50
 
51
 
51
libGL.dll: $(LIBGL_OBJS) Makefile
52
libGL.dll: $(LIBGL_OBJS) Makefile
52
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBGL_OBJS) $(LIBS)
53
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBGL_OBJS) $(LIBS)
53
	$(STRIP) $@
54
#	$(STRIP) $@
54
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
55
#	sed -e "s/ @[^ ]*//" egl1.def > egl.def
Line 55... Line 56...
55
	mv -f $@ ../../bin
56
	mv -f $@ ../../bin