Rev 5563 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5563 | Rev 6606 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | export LD = kos32-ld |
3 | export LD = kos32-ld |
4 | export STRIP = kos32-strip |
4 | export STRIP = kos32-strip |
5 | 5 | ||
Line 6... | Line 6... | ||
6 | export SDK_DIR:= $(abspath ../../..) |
6 | export SDK_DIR:= $(abspath ../../..) |
- | 7 | export INSTALLDIR:= /home/autobuild/tools/win32/lib |
|
Line 7... | Line 8... | ||
7 | 8 | ||
Line 8... | Line 9... | ||
8 | EGL = egl |
9 | EGL = egl |
9 | 10 | ||
10 | CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os |
11 | CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -Os |
Line 11... | Line 12... | ||
11 | CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields |
12 | CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields |
12 | CFLAGS = -c $(CFLAGS_OPT) |
13 | CFLAGS = -c $(CFLAGS_OPT) |
Line 13... | Line 14... | ||
13 | 14 | ||
14 | LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../../newlib/dll.lds -e _DllStartup |
15 | LDFLAGS = -shared -s --image-base 0 -T dll.lds -e _DllStartup |
Line 15... | Line -... | ||
15 | LDFLAGS+= --out-implib lib$(EGL).dll.a |
- | |
16 | - | ||
17 | INC_MESA= -I../../newlib/libc/include -I./include -I./src -I./src/glsl -I./src/mesa -I./src/mapi |
16 | LDFLAGS+= --out-implib lib$(EGL).dll.a |
Line 18... | Line 17... | ||
18 | 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 |
17 | |
19 | 18 | INC_MESA= -I../../newlib/libc/include -I./include -I./src -I./src/glsl -I./src/mesa -I./src/mapi |
|
20 | LIBPATH:= -L../../../lib -L/home/autobuild/tools/win32/mingw32/lib |
19 | 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 |
21 | 20 | ||
Line 22... | Line 21... | ||
22 | LIBS:= -ldll -ldrm.dll -lc.dll -lgcc |
21 | LIBS:= -ldll -ldrm.dll -lgcc -lc.dll |
Line 23... | Line 22... | ||
23 | 22 | ||
Line 42... | Line 41... | ||
42 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ egl.def $(EGL_OBJS) $(LIBS) |
41 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ egl.def $(EGL_OBJS) $(LIBS) |
43 | # $(STRIP) $@ |
42 | # $(STRIP) $@ |
44 | # sed -e "s/ @[^ ]*//" egl1.def > egl.def |
43 | # sed -e "s/ @[^ ]*//" egl1.def > egl.def |
45 | mv -f $@ ../../../bin |
44 | mv -f $@ ../../../bin |
46 | mv -f lib$(EGL).dll.a ../../../lib |
45 | mv -f lib$(EGL).dll.a $(INSTALLDIR) |
47 | 46 | ||
Line 48... | Line 47... | ||
48 | libglsl.a : $(GLSL_OBJS) Makefile |
47 | libglsl.a : $(GLSL_OBJS) Makefile |
49 | $(AR) libglsl.a $(GLSL_OBJS) |
48 | $(AR) libglsl.a $(GLSL_OBJS) |
50 | mv -f libglsl.a ../../../lib |
49 | mv -f libglsl.a $(INSTALLDIR) |
Line 51... | Line 50... | ||
51 | 50 | ||
52 | libGL.dll: $(LIBGL_OBJS) Makefile |
51 | libGL.dll: $(LIBGL_OBJS) Makefile |
53 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBGL_OBJS) $(LIBS) |
52 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBGL_OBJS) $(LIBS) |
54 | # $(STRIP) $@ |
53 | # $(STRIP) $@ |
55 | # sed -e "s/ @[^ ]*//" egl1.def > egl.def |
54 | # sed -e "s/ @[^ ]*//" egl1.def > egl.def |
56 | mv -f $@ ../../bin |
55 | mv -f $@ ../../bin |
Line 57... | Line 56... | ||
57 | mv -f libGL.dll.a ../../../lib |
56 | mv -f libGL.dll.a $(INSTALLDIR) |
58 | 57 | ||
Line 59... | Line 58... | ||
59 | src/glsl/glcpp/%.o : src/glsl/glcpp/%.c Makefile |
58 | src/glsl/glcpp/%.o : src/glsl/glcpp/%.c Makefile |