Annotation of driverkit/Examples/i386Loadable/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: #      Makefile for kernel loadable NullDriver
                      3: #
                      4: BUILD_NAME=NullDriver
                      5: INSTALL_BIN_DIR= /usr/Devices/NullDriver.config
                      6: #INSTALL_BIN_DIR= 
                      7: INSTALL_HDR_DIR= 
                      8: INSTALLFLAGS=
                      9: 
                     10: #
                     11: # Define target architectures.
                     12: # MACHINE_LIST is the list of architectures to be build for during "make all"
                     13: #      and "make install" if RC_ARCHS is not specified.
                     14: # TARGET_LIST specify the type of build to be performed during "make all" and
                     15: #      "make install".
                     16: # MACHINE and first specify the architecture and type of build for a default
                     17: #      'make' with no arguments. 
                     18: #
                     19: # Possible values of 'first' and TARGET_LIST are:
                     20: #
                     21: #      release                 -- user executable
                     22: #      debug                   -- user executable, DEBUG
                     23: #      kernrelease             -- .o to be linked into kernel code
                     24: #      kerndebug               -- .o to be linked into kernel code, DEBUG
                     25: #      relocrelease            -- kern-loadable
                     26: #      relocdebug              -- kern_loadable, DEBUG
                     27: #
                     28: MACHINE_LIST=          
                     29: TARGET_LIST=           relocrelease
                     30: MACHINE=               i386
                     31: INSTALL_TARGETS=       relocrelease
                     32: #INSTALL_TARGETS=
                     33: INSTALL_MACHINES=      i386
                     34: 
                     35: first: relocrelease
                     36: 
                     37: #
                     38: # Define machine-dependent subdirectories. Leave commented out if none.
                     39: #
                     40: #SOURCE_SUBDIRS=
                     41: 
                     42: #
                     43: # Optional CFLAGS for cc runs.
                     44: #
                     45: #DEBUG_CFLAGS=
                     46: #RELEASE_CFLAGS=
                     47: #
                     48: # These are for local build within the driverkit project...
                     49: #
                     50: DEBUG_CFLAGS= -I../../
                     51: RELEASE_CFLAGS= -I../../
                     52: 
                     53: # For generating relocatable .o:
                     54: #
                     55: #LD= /bin/ld
                     56: #DEBUG_LDFLAGS= -r
                     57: #RELEASE_LDFLAGS= -r
                     58: 
                     59: #
                     60: # For generating executable:
                     61: #
                     62: LD= /bin/cc
                     63: DEBUG_LDFLAGS=
                     64: RELEASE_LDFLAGS=
                     65: 
                     66: #
                     67: # Options to kl_ld for generating kern-loadable.
                     68: #
                     69: KL_DEBUG_FLAGS= -d NullDriver_loadable
                     70: KL_RELEASE_FLAGS=
                     71: 
                     72: #
                     73: # Define these for generating a kern_loadable relocatable.
                     74: #
                     75: SERVER_NAME= NullDriver
                     76: KS_VAR_NAME= NullDriverInstance
                     77: 
                     78: MIG_DERIVED= 
                     79: #
                     80: # The kl_ld run for kern_loadable module depends on this. It is
                     81: # typically used to do a mig run.
                     82: #
                     83: OTHER_DEPENDS= 
                     84: 
                     85: #
                     86: # Optional targets...
                     87: #
                     88: prePost: preLoad postLoad
                     89: 
                     90: preLoad: preLoad.o
                     91:        cc $(RC_CFLAGS) -o $@ $(*F).o -lDriver
                     92: postLoad: postLoad.o
                     93:        cc $(RC_CFLAGS) -o $@ $(*F).o -lDriver
                     94: 
                     95: #
                     96: # Specify name of load_commands and unload_commands text files for 
                     97: # kern-loadable module. The LOAD_COMMANDS files is mandatory; the 
                     98: # UNLOAD_COMMANDS file is optional - leave UNLOAD_COMMANDS commented out
                     99: # if no file needed.
                    100: #
                    101: LOAD_COMMANDS=                 Load_Commands.sect
                    102: #UNLOAD_COMMANDS=      Unload_Commands.sect
                    103: 
                    104: #
                    105: # Specify the source files common to all machines.
                    106: #
                    107: COMMON_MFILES= NullDriver.m
                    108: COMMON_CFILES= 
                    109: COMMON_PUBLIC_HFILES=
                    110: COMMON_PRIVATE_HFILES= NullDriver.h
                    111: 
                    112: #
                    113: # one set of source files sharing a common name in the machine-dependent 
                    114: # build directories. 
                    115: #
                    116: MACHINE_COMMON_CFILES=
                    117: MACHINE_COMMON_MFILES=
                    118: 
                    119: #
                    120: # optionally, additional source files specific to each machine.
                    121: #
                    122: # 88k specific...
                    123: m88k_CFILES=
                    124: m88k_MFILES=
                    125: # 68k specific...
                    126: m68k_CFILES=
                    127: m68k_MFILES=
                    128: # i386 specific...
                    129: i386_CFILES=
                    130: i386_MFILES=
                    131: 
                    132: #
                    133: # User, kernel, and kern-loadable specific source.
                    134: #
                    135: USER_MFILES=
                    136: USER_CFILES=
                    137: KERNEL_MFILES=
                    138: KERNEL_CFILES=
                    139: 
                    140: OTHER_INSTALL= Instance0.table preLoad postLoad
                    141: 
                    142: #
                    143: # Other files to installsrc.
                    144: #
                    145: OTHER_SOURCE= $(OTHER_INSTALL)
                    146: 
                    147: #
                    148: # Other files to clean.
                    149: #
                    150: OTHER_CLEAN_FILES=
                    151: 
                    152: #
                    153: # Other install rules (invoked as dependency, so this executes before 
                    154: # the main install rule).
                    155: #
                    156: other_install: always preLoad postLoad
                    157:        install $(INSTALLFLAGS) $(OTHER_INSTALL)                        \
                    158:                    $(DSTROOT)$(INSTALL_BIN_DIR)
                    159: 
                    160: # 
                    161: # Libraries. These may be overridden, deleted, or appended to.
                    162: #
                    163: RELEASE_LIBS=
                    164: DEBUG_LIBS=  
                    165: #RELEASE_KERN_LIBS=    $(SYMROOT)/../../libDriver/syms/libDriver_kern.o
                    166: #DEBUG_KERN_LIBS=      $(SYMROOT)/../../libDriver/syms/libDriver_kern_g.o
                    167: RELEASE_KERN_LIBS=
                    168: DEBUG_KERN_LIBS=       
                    169: 
                    170: #
                    171: # This does the rest.
                    172: #
                    173: -include ../../MakefileDir/Makefile.device_common

unix.superglobalmegacorp.com

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