Subversion Repositories Kolibri OS

Rev

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

Rev 4349 Rev 4362
Line 9... Line 9...
9
STRIP = $(PREFIX)strip
9
STRIP = $(PREFIX)strip
Line 10... Line 10...
10
 
10
 
Line 11... Line 11...
11
INCLUDES= -I. -I../newlib/include
11
INCLUDES= -I. -I../newlib/include
Line 12... Line 12...
12
 
12
 
Line 13... Line 13...
13
LIBPATH:= -L../../import -L../../static
13
LIBPATH:= -L../../lib
14
 
14
 
Line 58... Line 58...
58
 
58
 
Line 59... Line 59...
59
 
59
 
60
$(LIBRARY).a: $(OBJECTS) Makefile
60
$(LIBRARY).a: $(OBJECTS) Makefile
61
	ar cvrs $(LIBRARY).a $(OBJECTS)
61
	ar cvrs $(LIBRARY).a $(OBJECTS)
Line 62... Line 62...
62
	mv -f $(LIBRARY).a ../../static
62
	mv -f $(LIBRARY).a ../../lib
63
 
63
 
64
$(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile
64
$(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile
65
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS)
65
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS)
66
	$(STRIP) $@
66
	$(STRIP) $@
67
	sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
67
	sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
68
	sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
68
	sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
Line 69... Line 69...
69
	mv -f $@ ../../lib
69
	mv -f $@ ../../bin
70
	mv -f lib$(LIBRARY).dll.a ../../import   
70
	mv -f lib$(LIBRARY).dll.a ../../lib