Annotation of qemu/roms/SLOF/lib/libc/Makefile, revision 1.1

1.1     ! root        1: # *****************************************************************************
        !             2: # * Copyright (c) 2004, 2008 IBM Corporation
        !             3: # * All rights reserved.
        !             4: # * This program and the accompanying materials
        !             5: # * are made available under the terms of the BSD License
        !             6: # * which accompanies this distribution, and is available at
        !             7: # * http://www.opensource.org/licenses/bsd-license.php
        !             8: # *
        !             9: # * Contributors:
        !            10: # *     IBM Corporation - initial implementation
        !            11: # ****************************************************************************/
        !            12: 
        !            13: TOPCMNDIR ?= ../..
        !            14: 
        !            15: LIBCCMNDIR = $(shell pwd)
        !            16: STRINGCMNDIR = $(LIBCCMNDIR)/string
        !            17: CTYPECMNDIR = $(LIBCCMNDIR)/ctype
        !            18: STDLIBCMNDIR = $(LIBCCMNDIR)/stdlib
        !            19: STDIOCMNDIR = $(LIBCCMNDIR)/stdio
        !            20: GETOPTCMNDIR = $(LIBCCMNDIR)/getopt
        !            21: 
        !            22: include $(TOPCMNDIR)/make.rules
        !            23: 
        !            24: 
        !            25: CPPFLAGS = -I$(LIBCCMNDIR)/include
        !            26: LDFLAGS= -nostdlib
        !            27: 
        !            28: TARGET = ../libc.a
        !            29: 
        !            30: 
        !            31: all: $(TARGET)
        !            32: 
        !            33: # Use the following target to build a native version of the lib
        !            34: # (for example for debugging purposes):
        !            35: native:
        !            36:        $(MAKE) CROSS="" CC=$(HOSTCC) NATIVEBUILD=1
        !            37: 
        !            38: 
        !            39: include $(STRINGCMNDIR)/Makefile.inc
        !            40: include $(CTYPECMNDIR)/Makefile.inc
        !            41: include $(STDLIBCMNDIR)/Makefile.inc
        !            42: include $(STDIOCMNDIR)/Makefile.inc
        !            43: include $(GETOPTCMNDIR)/Makefile.inc
        !            44: 
        !            45: OBJS = $(STRING_OBJS) $(CTYPE_OBJS) $(STDLIB_OBJS) $(STDIO_OBJS) $(GETOPT_OBJS)
        !            46: 
        !            47: ifneq ($(NATIVEBUILD),1)
        !            48: # These parts of the libc use assembler, so they can only be compiled when
        !            49: # we are _not_ building a native version.
        !            50: endif
        !            51: 
        !            52: 
        !            53: $(TARGET): $(OBJS)
        !            54:        $(AR) -rc $@ $(OBJS)
        !            55:        $(RANLIB) $@
        !            56: 
        !            57: 
        !            58: clean:
        !            59:        $(RM) $(TARGET) $(OBJS)
        !            60: 
        !            61: distclean: clean

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.