Changeset fcd7053 in mainline for uspace/lib/libc/Makefile


Ignore:
Timestamp:
2009-02-12T20:11:25Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa024ce
Parents:
84266669
Message:

cleanup configuration
code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = $(shell pwd)
    3533SOFTINT_PREFIX = ../softint
     34
     35ifndef CROSS_PREFIX
     36        CROSS_PREFIX = /usr/local
     37endif
     38
    3639
    3740## Setup toolchain
     
    4043include $(LIBC_PREFIX)/Makefile.toolchain
    4144
     45
    4246## Sources
    4347#
    44 
    4548
    4649GENERIC_SOURCES = \
     
    8891
    8992ARCH_SOURCES += \
    90         arch/$(ARCH)/src/entry.s \
    91         arch/$(ARCH)/src/thread_entry.s
     93        arch/$(UARCH)/src/entry.s \
     94        arch/$(UARCH)/src/thread_entry.s
    9295
    9396GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
     
    97100.PHONY: all clean depend kerninc
    98101
    99 all: kerninc libc.a arch/$(ARCH)/_link.ld
     102all: kerninc libc.a arch/$(UARCH)/_link.ld
    100103
    101104kerninc:
    102105        ln -sfn ../../../../kernel/generic/include include/kernel
    103106        ln -sfn kernel/arch include/arch
    104         ln -sfn ../arch/$(ARCH)/include include/libarch
     107        ln -sfn ../arch/$(UARCH)/include include/libarch
    105108
    106109-include Makefile.depend
    107110
    108111clean:
    109         -rm -f include/kernel include/arch include/libarch libc.a arch/$(ARCH)/_link.ld Makefile.depend
    110         find generic/ arch/$(ARCH)/ malloc -name '*.o' -follow -exec rm \{\} \;
     112        -rm -f include/kernel include/arch include/libarch libc.a arch/$(UARCH)/_link.ld Makefile.depend
     113        find generic/ arch/$(UARCH)/ malloc -name '*.o' -follow -exec rm \{\} \;
    111114
    112115depend: kerninc
    113         -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
     116        -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
    114117
    115118libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
    116119        $(AR) rc libc.a $(LIBS) $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
    117120
    118 arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
     121arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in
    119122        $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
    120123
Note: See TracChangeset for help on using the changeset viewer.