• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision8eaff69d91445a494d8b1a387d5b96f1d669f74c (tree)
Time2001-01-16 20:25:23
AuthorEric Andersen <andersen@code...>
CommiterEric Andersen

Log Message

Add first pass shared lib support into Makefile.
This could use some refinement...

Change Summary

Incremental Difference

--- a/Makefile
+++ b/Makefile
@@ -31,13 +31,28 @@ include Rules.mak
3131
3232 DIRS = misc pwd_grp stdio string termios unistd net signal stdlib sysdeps extra
3333
34-all: libc.a
34+ifeq ($(HAS_MMU),true)
35+ DO_SHARED=shared
36+endif
37+
38+all: libc.a $(DO_SHARED) done
3539
3640 libc.a: halfclean headers subdirs
41+ $(CROSS)ranlib libc.a
42+
43+# Surely there is a better way to do this then dumping all
44+# the objects into a tmp dir. Please -- someone enlighten me.
45+shared: libc.a
46+ @rm -rf tmp
47+ @mkdir tmp
48+ @(cd tmp; ar -x ../libc.a)
49+ $(CC) -s -nostdlib -shared -o libuClibc.so.1 -Wl,-soname,libuClibc.so.1 tmp/*.o
50+ @rm -rf tmp
51+
52+done: libc.a $(DO_SHARED)
3753 @echo
3854 @echo Finally finished compiling...
3955 @echo
40- $(CROSS)ranlib libc.a
4156
4257 halfclean:
4358 @rm -f libc.a
@@ -66,6 +81,7 @@ tags:
6681 ctags -R
6782
6883 clean: subdirs_clean
84+ @rm -rf tmp
6985 rm -f libc.a libcrt0.o
7086 rm -f include/asm include/linux include/bits
7187