1,4 → 1,3 |
|
LIBRARY= libeglut |
IMPLIB= libeglut.dll.a |
|
6,14 → 5,15 |
AR = kos32-ar |
LD = kos32-ld |
|
INSTALLDIR:= /home/autobuild/tools/win32/lib |
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer |
|
INCLUDES= -I. -I../newlib/libc/include -I../Mesa/mesa-9.2.5/include -I../Mesa/mesa-9.2.5/src/gbm/main -I../libdrm/include |
|
LDFLAGS:= -shared -s -nostdlib -T ../newlib/libc/dll.lds --entry _DllStartup --image-base=0 |
LDFLAGS:= -shared -s -T dll.lds --entry _DllStartup --image-base=0 |
LDFLAGS+= --out-implib $(IMPLIB) |
|
LIBPATH:= -L../../lib |
LIBS:= -ldll -legl.dll -lGL.dll -lc.dll |
|
DEFINES= -D__unix__ -DMESA_EGL_NO_X11_HEADERS |
35,12 → 35,12 |
|
$(LIBRARY).a: $(OBJECTS) Makefile |
$(AR) crs $(LIBRARY).a $(OBJECTS) |
mv -f $(LIBRARY).a ../../lib |
mv -f $(LIBRARY).a $(INSTALLDIR) |
|
$(LIBRARY).dll: $(OBJECTS) Makefile |
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS) |
$(LD) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS) |
mv -f $(LIBRARY).dll ../../bin |
mv -f $(IMPLIB) ../../lib |
mv -f $(IMPLIB) $(INSTALLDIR) |
|
%.o : %.c Makefile eglut.h eglutint.h render.h |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |