Subversion Repositories Kolibri OS

Rev

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

Rev 5600 Rev 6531
Line 1... Line -...
1
LIBRARY= libeglut
-
 
2
IMPLIB=  libeglut.dll.a
1
LIBRARY= libeglut
3
 
2
IMPLIB=  libeglut.dll.a
Line 4... Line 3...
4
CC = kos32-gcc
3
 
5
AR = kos32-ar
4
CC = kos32-gcc
6
LD = kos32-ld
5
AR = kos32-ar
Line -... Line 6...
-
 
6
LD = kos32-ld
-
 
7
 
7
 
8
INSTALLDIR:= /home/autobuild/tools/win32/lib
Line 8... Line 9...
8
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
9
 
Line 9... Line 10...
9
 
10
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
10
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
11
 
Line 11... Line -...
11
 
-
 
12
LDFLAGS:= -shared -s -nostdlib -T ../newlib/libc/dll.lds --entry _DllStartup --image-base=0
12
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
Line 13... Line 13...
13
LDFLAGS+= --out-implib $(IMPLIB)
13
 
Line 33... Line 33...
33
all:$(LIBRARY).a $(LIBRARY).dll
33
 
Line 34... Line 34...
34
 
34
all:$(LIBRARY).a $(LIBRARY).dll
35
$(LIBRARY).a: $(OBJECTS) Makefile
35
 
36
	$(AR) crs $(LIBRARY).a $(OBJECTS)
36
$(LIBRARY).a: $(OBJECTS) Makefile
Line 37... Line 37...
37
	mv -f $(LIBRARY).a ../../lib
37
	$(AR) crs $(LIBRARY).a $(OBJECTS)
38
 
38
	mv -f $(LIBRARY).a $(INSTALLDIR)
39
$(LIBRARY).dll: $(OBJECTS) Makefile
39
 
40
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS) 
40
$(LIBRARY).dll: $(OBJECTS) Makefile
Line 41... Line 41...
41
	mv -f $(LIBRARY).dll ../../bin
41
	$(LD) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS) 
42
	mv -f $(IMPLIB) ../../lib   
42
	mv -f $(LIBRARY).dll ../../bin
Line 43... Line 43...
43
 
43
	mv -f $(IMPLIB) $(INSTALLDIR)