Subversion Repositories Kolibri OS

Rev

Rev 5022 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5022 Rev 6668
Line 3... Line 3...
3
CC = kos32-gcc
3
CC = kos32-gcc
4
AR = kos32-ar
4
AR = kos32-ar
5
LD = kos32-ld
5
LD = kos32-ld
6
STRIP = kos32-strip
6
STRIP = kos32-strip
Line -... Line 7...
-
 
7
 
-
 
8
INSTALLDIR:= /home/autobuild/tools/win32/lib
7
 
9
 
Line 8... Line 10...
8
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fno-ident -fomit-frame-pointer
10
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fno-ident -fomit-frame-pointer
9
 
11
 
Line 10... Line 12...
10
LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0
12
LDFLAGS = -shared -s -T dll.lds --entry _DllStartup --image-base=0
Line 11... Line 13...
11
LDFLAGS+= --out-implib lib$(LIBRARY).dll.a
13
LDFLAGS+= --out-implib lib$(LIBRARY).dll.a
Line 12... Line -...
12
 
-
 
13
ARFLAGS = cvrs
-
 
14
 
14
 
Line 15... Line 15...
15
INCLUDES= -I. -I../newlib/libc/include
15
ARFLAGS = cvrs
16
 
16
 
Line 66... Line 66...
66
 
66
 
Line 67... Line 67...
67
ebox:$lib(LIBRARY).a $(LIBRARY).dll
67
ebox:$lib(LIBRARY).a $(LIBRARY).dll
68
 
68
 
69
lib$(LIBRARY).a: $(OBJECTS) Makefile
69
lib$(LIBRARY).a: $(OBJECTS) Makefile
Line 70... Line 70...
70
	$(AR) $(ARFLAGS) lib$(LIBRARY).a $(OBJECTS)
70
	$(AR) $(ARFLAGS) lib$(LIBRARY).a $(OBJECTS)
71
	mv -f lib$(LIBRARY).a ../../lib
71
	mv -f lib$(LIBRARY).a $(INSTALLDIR)
72
 
72
 
73
$(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile
73
$(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile
74
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS)
74
	$(LD) $(LDFLAGS) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS)
75
	#sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
75
	#sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
Line 76... Line 76...
76
	#sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
76
	#sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
77
	mv -f $@ ../../bin
77
	mv -f $@ ../../bin