diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-12-11 12:05:31 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-12-11 12:05:31 +0000 |
commit | fb6f30cabdaa0ed74d0f7ec9d1feb137260e37aa (patch) | |
tree | 966dd7a9746f4a8d3151d614aeb2018997e57e5b | |
parent | 2a6fe90abab5e178a2b3c5959a53b0a69e21518d (diff) |
Remove some accumulated ugly junk
-rw-r--r-- | Makefile | 49 |
1 files changed, 1 insertions, 48 deletions
@@ -40,8 +40,7 @@ all: headers pregen subdirs shared finished # In this section, we need .config -include .config.cmd -.PHONY: $(SHARED_TARGET) -shared: $(SHARED_TARGET) +shared: ifeq ($(strip $(HAVE_SHARED)),y) @$(MAKE) -C libc shared @$(MAKE) -C ldso shared @@ -55,63 +54,17 @@ ifeq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y) @$(MAKE) -C libintl shared endif else -ifeq ($(SHARED_TARGET),) @echo @echo Not building shared libraries... @echo endif -endif -ifneq ($(SHARED_TARGET),) - -lib/main.o: $(ROOTDIR)/lib/libc/main.c - $(CC) $(CFLAGS) $(ARCH_CFLAGS) -c -o $@ $(ROOTDIR)/lib/libc/main.c - -bogus $(SHARED_TARGET): lib/libc.a lib/main.o Makefile - make -C $(ROOTDIR) relink - $(CC) -nostartfiles -o $(SHARED_TARGET) $(ARCH_CFLAGS) -Wl,-elf2flt -nostdlib \ - -Wl,-shared-lib-id,${LIBID} \ - lib/main.o \ - -Wl,--whole-archive,lib/libc.a,-lgcc,--no-whole-archive - $(OBJCOPY) -L _GLOBAL_OFFSET_TABLE_ -L main -L __main -L _start \ - -L __uClibc_main -L __uClibc_start_main -L lib_main \ - -L _exit_dummy_ref \ - -L __do_global_dtors -L __do_global_ctors \ - -L __CTOR_LIST__ -L __DTOR_LIST__ \ - -L _current_shared_library_a5_offset_ \ - $(SHARED_TARGET).gdb - $(LN) -sf $(SHARED_TARGET).gdb . -endif finished: shared @echo @echo Finally finished compiling... @echo -# -# Target for uClinux distro -# -.PHONY: romfs -romfs: - @if [ "$(CONFIG_BINFMT_SHARED_FLAT)" = "y" ]; then \ - [ -e $(ROMFSDIR)/lib ] || $(INSTALL) -d $(ROMFSDIR)/lib; \ - $(ROMFSINST) $(SHARED_TARGET) /lib/lib$(LIBID).so; \ - fi -ifeq ($(strip $(HAVE_SHARED)),y) - $(INSTALL) -d $(ROMFSDIR)/lib - $(INSTALL) -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \ - $(ROMFSDIR)/lib - cp -dRf lib/*.so.* $(ROMFSDIR)/lib/. - @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \ - set -x -e; \ - $(INSTALL) -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \ - $(ROMFSDIR)/lib; \ - $(ROMFSINST) -s \ - /lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \ - /lib/ld-linux.so.2; \ - fi; -endif - include/bits/uClibc_config.h: .config @if [ ! -x ./extra/config/conf ] ; then \ make -C extra/config conf; \ |