Annotation of kernel/conf/Makefile.ppc, revision 1.1.1.1

1.1       root        1: ##
                      2: # Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3: #
                      4: # @APPLE_LICENSE_HEADER_START@
                      5: # 
                      6: # Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7: # Reserved.  This file contains Original Code and/or Modifications of
                      8: # Original Code as defined in and that are subject to the Apple Public
                      9: # Source License Version 1.1 (the "License").  You may not use this file
                     10: # except in compliance with the License.  Please obtain a copy of the
                     11: # License at http://www.apple.com/publicsource and read it before using
                     12: # this file.
                     13: # 
                     14: # The Original Code and all software distributed under the License are
                     15: # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16: # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17: # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18: # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
                     19: # License for the specific language governing rights and limitations
                     20: # under the License.
                     21: # 
                     22: # @APPLE_LICENSE_HEADER_END@
                     23: ##
                     24: 
                     25: #
                     26: # Mach Operating System
                     27: # Copyright (c) 1986 Carnegie-Mellon University
                     28: # All rights reserved.  The CMU software License Agreement
                     29: # specifies the terms and conditions for use and redistribution.
                     30: #  
                     31: ######################################################################
                     32: 
                     33: ifneq "" "$(wildcard /bin/mkdirs)"
                     34:   MKDIRS = /bin/mkdirs
                     35: else
                     36:   MKDIRS = /bin/mkdir -p
                     37: endif
                     38: 
                     39: ######################################################################
                     40: #BEGIN Machine dependent Makefile fragment for NeXT PPC
                     41: ######################################################################
                     42: 
                     43: #
                     44: #  Compilation components
                     45: #
                     46: CC=    cc
                     47: LD=    ld
                     48: 
                     49: KCC=cc -static -nostdinc -nostdlib -traditional-cpp -fno-builtin
                     50: 
                     51: MACHINE_INCLUDES=
                     52: 
                     53: MACHINE_GENASSYM_FLAGS= -DKERNEL
                     54: 
                     55: MACHINE_CFLAGS= -arch ppc -I$(SOURCE_DIR)/bsd/include \
                     56:        -finline -fno-keep-inline-functions -force_cpusubtype_ALL \
                     57:        -fwritable-strings -fno-common -msoft-float -mcpu=604 \
                     58:        -Dppc -DPPC -Wall -Wno-four-char-constants -fpascal-strings
                     59: 
                     60: MACHINE_SFLAGS= -arch ppc -D__ASSEMBLER__ -Dppc -DPPC -force_cpusubtype_ALL
                     61: 
                     62: LDFLAGS=-e start -segalign 0x1000              \
                     63:                -segaddr __TEXT 0x05000         \
                     64:                -segaddr __VECTORS 0x0          \
                     65:                -noseglinkedit -force_cpusubtype_ALL
                     66: 
                     67: 
                     68: 
                     69: MACHINE=ppc
                     70: 
                     71: LIBS_P=-lcc
                     72: LIBS=-lcc
                     73: 
                     74: PRELDDEPS=assym.h
                     75: 
                     76: LDOBJS_PREFIX= $(LIBC_OBJ) $(LIBC_UNROLL_OBJ)
                     77: LDOBJS_SUFFIX= $(LIBDRIVER_SOURCE)/$(LIBDRIVER) $(LIBOBJC_SOURCE)/$(LIBOBJC) $(LIBPEXPERT_SOURCE)/$(LIBPEXPERT)
                     78: 
                     79: LDDEPS_PREFIX=
                     80: SWAPDEPS_PREFIX=
                     81: 
                     82: OBJSDEPS=
                     83: 
                     84: FEATURES_EXTRA=
                     85: 
                     86: LIBC_SRC=      memchr.c memcmp.c memcpy.c memmove.c memset.c
                     87: LIBC_OBJ=      $(LIBC_SRC:.c=.o)
                     88: 
                     89: $(LIBC_OBJ):
                     90:        ${KCC} $(COPTS) $(MACHINE_CFLAGS) -c -O2 $(MACHINEDIR)/libc/$*.c
                     91: 
                     92: LIBC_UNROLL_SRC=       strchr.c strrchr.c strlen.c \
                     93:                        strcpy.c strncpy.c strcat.c strncat.c \
                     94:                        strcmp.c strncmp.c index.c
                     95: LIBC_UNROLL_OBJ=       $(LIBC_UNROLL_SRC:.c=.o)
                     96: 
                     97: $(LIBC_UNROLL_OBJ):
                     98:        ${KCC} $(COPTS) $(MACHINE_CFLAGS) -c -O2 -funroll-all-loops \
                     99:                                                        $(MACHINEDIR)/libc/$*.c
                    100: 
                    101: 
                    102: 
                    103: MACHINE_INSTALL=
                    104: 
                    105: #
                    106: # Install machine headers.
                    107: #
                    108: MACHINE_COMPATHDRS=
                    109: MACHINE_INSTALLHDRS= ppc_installhdrs
                    110: 
                    111: MACHINE_EXPORT=    bsd/ppc bsd/dev/ppc kernserv/ppc mach/ppc
                    112: MACHINE_LCLEXPORT= bsd/ppc bsd/dev/ppc bsd/if/ppc mach/ppc             \
                    113:                        kernserv/ppc machdep/ppc driverkit/ppc
                    114: 
                    115: MACHINE_MIGDIRS=   mach/ppc
                    116: 
                    117: ppc_installhdrs: features DSTROOT
                    118:        echo features = $(FEATURES)
                    119:        $(MKDIRS) ${DSTROOT}${LCLDIR}/machdep/ppc
                    120:        install -c -m 444 ${FEATURES}                           \
                    121:                ${DSTROOT}${LCLDIR}/machdep/ppc
                    122: 
                    123: MACHINE_TAG_DIRS=                                                      \
                    124:        bsd/ppc bsd/dev/ppc driverkit/ppc machdep/ppc bsd/if/ppc        \
                    125:        kernserv/ppc mach/ppc
                    126: 
                    127: #
                    128: # Local clean rule
                    129: #
                    130: MACHINE_CLEAN=ppc_clean
                    131: 
                    132: ppc_clean:
                    133:        rm -rf fpsp
                    134: 
                    135: cleanup: ALWAYS
                    136:        for i in ${TAGDIRS}; \
                    137:        do \
                    138:                (cd $(SOURCE_DIR)/$$i; rm -f *.CKP *.OLD *~ *.old core); \
                    139:        done
                    140: 
                    141: rebuild: clean cleanup features tags all
                    142:        @echo Don't forget to do a make install
                    143: 
                    144: ######################################################################
                    145: #END   Machine dependent Makefile fragment for NeXT ppc
                    146: ######################################################################

unix.superglobalmegacorp.com

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