Ignore:
Timestamp:
2010-03-23T14:44:00Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63f8966
Parents:
d99c1d2
Message:

unify and simplify user space makefiles
rename NETWORKING configuration option to CONFIG_NETWORKING

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/sparc64/Makefile.common

    rd99c1d2 r1b1164e8  
    11#
    2 # Copyright (c) 2009 Lukas Mejdrech
     2# Copyright (c) 2006 Martin Decky
    33# All rights reserved.
    44#
     
    2727#
    2828
    29 include ../../../Makefile.common
    30 include ../../../Makefile.config
     29GCC_CFLAGS += -mcpu=ultrasparc -m64
     30LFLAGS = -no-check-sections
    3131
    32 # keep netif drivers before nil modules
    33 # in order to support networking architectures build
     32ENDIANESS = BE
    3433
    35 ifeq ($(CONFIG_NETIF_DP8390),y)
    36         DIRS = netif/dp8390
    37 else
    38         DIRS =
     34BFD_NAME = elf64-sparc
     35BFD_ARCH = sparc
     36
     37ifeq ($(PROCESSOR),us)
     38        DEFS += -DSUN4U
    3939endif
    4040
    41 DIRS += \
    42         netif/lo \
    43         nil/eth \
    44         nil/nildummy \
    45         net \
    46         net/start \
    47         socket \
    48         app/echo \
    49         app/ping \
    50         app/nettest1 \
    51         app/nettest2
    52 
    53 DIRS_MODULAR = \
    54                 il/arp \
    55                 il/ip \
    56                 tl/icmp \
    57                 tl/udp \
    58                 tl/tcp \
    59 
    60 DIRS_ALL = $(DIRS) $(DIRS_MODULAR)
    61 
    62 ifeq ($(NETWORKING), module)
    63         BUILDS := $(addsuffix .build,$(DIRS))
    64 else
    65 ifeq ($(NETWORKING), modular)
    66         BUILDS := $(addsuffix .build,$(DIRS_ALL))
    67 endif
     41ifeq ($(PROCESSOR),us3)
     42        DEFS += -DSUN4U
    6843endif
    6944
    70 CLEANS := $(addsuffix .clean,$(DIRS_ALL))
    71 
    72 CHECKS := $(addsuffix .check,$(basename $(BUILDS)))
    73 
    74 .PHONY: all build $(BUILDS) $(CLEANS) clean
    75 
    76 all: $(BUILDS)
    77 
    78 build: $(BUILDS)
    79 
    80 check: $(CHECKS)
    81 
    82 clean: $(CLEANS)
    83         find $(DIRS_ALL) ./ -name '*.o' -follow -exec rm \{\} \;
    84 
    85 $(CHECKS):
    86         -$(MAKE) -C $(basename $@) check
    87 
    88 $(CLEANS):
    89         -$(MAKE) -C $(basename $@) clean
    90 
    91 $(BUILDS):
    92         $(MAKE) -C $(basename $@) all
     45ifeq ($(PROCESSOR),sun4v)
     46        DEFS += -DSUN4V
     47endif
Note: See TracChangeset for help on using the changeset viewer.