Annotation of driverkit/iostat/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Generic Makefile for simple commands
                      3: # Copyright NeXT, Inc.  1989, 1990.  All rights reserved.
                      4: #
                      5: # Who and where
                      6: #
                      7: # PROGRAM -- what the executable should be named
                      8: # BINDIR -- the directory where the executable should be installed
                      9: # DSTDIRS -- a list of directories that must exist at install time
                     10: #              (preceed all entries with $(DSTROOT)
                     11: PROGRAM= iostat
                     12: BINDIR= /usr/local/bin
                     13: CONFDIR= /private/etc
                     14: DSTDIRS= $(DSTROOT)$(BINDIR) $(DSTROOT)$(CONFDIR)
                     15: 
                     16: #
                     17: # Source files
                     18: #
                     19: HFILES=
                     20: YFILES=
                     21: CFILES=
                     22: SFILES=
                     23: MFILES= $(PROGRAM).m
                     24: 
                     25: #
                     26: # Garbage is removed from source directory by "clobber"
                     27: #
                     28: GARBAGE= errs [Mm]ake.out *~ #*# *.o *.d TAGS tags vers.c Makedep
                     29: 
                     30: #
                     31: # What to print and how to print it
                     32: # Paths are relative to PROGDIR.
                     33: #
                     34: PRINTFILES = $(HFILES) $(YFILES) $(CFILES) $(MFILES) $(SFILES)
                     35: TABSIZE=8
                     36: ENSCRIPTFLAGS=-2rG
                     37: 
                     38: #
                     39: # OBJROOT and SYMROOT may optionally be defined on command line
                     40: # Used by release control to place objects and executable in particular
                     41: # directories.
                     42: #
                     43: OBJROOT=.
                     44: SYMROOT=.
                     45: 
                     46: #
                     47: # Global options that apply to all types of builds
                     48: # Note the weird -I is for the benefit of buildit only. Normally we'd just 
                     49: # pick up the latest header files from "/" or from "../../..".
                     50: #
                     51: CFLAGS=-DNeXT_MOD -DKERNEL_PRIVATE -bsd -ObjC -I../../..
                     52: SFLAGS= -DASSEMBLER
                     53: LDFLAGS=
                     54: #LIBS=-lm -lDriver -L/usr/local/lib/driverkit
                     55: #LIBS=-lm -lDriver -L$(DSTROOT)/usr/local/lib/driverkit
                     56: LIBS=-lm -lDriver -L$(SYMROOT)/../libDriver/syms
                     57: IFLAGS= -u -s
                     58: 
                     59: #
                     60: # Options for release builds
                     61: #
                     62: STD_COPTS= -O2 -g
                     63: STD_LDOPTS=
                     64: STD_LIBS=
                     65: 
                     66: #
                     67: # Options for profiling builds
                     68: #
                     69: PROF_COPTS= -pg -O2
                     70: PROF_LDOPTS= -pg
                     71: PROF_LIBS=
                     72: 
                     73: #
                     74: # Options for debugging builds
                     75: #
                     76: DBG_COPTS= -g -DDEBUG
                     77: DBG_LDOPTS=
                     78: DBG_LIBS=
                     79: 
                     80: #
                     81: # Objects that can't be built by the default rules can have the
                     82: # appropriate rules placed at the end of this file.
                     83: # EXTRA_SRCS and EXTRA_OBJS should list these source and object files
                     84: # if for some reason they could not be listed in HFILES, CFILES, YFILES, ....
                     85: # (E.g.: the file isn't a C, yacc, or assembler source.)
                     86: #
                     87: EXTRA_SRCS=
                     88: EXTRA_OBJS=
                     89: 
                     90: #
                     91: # Include file for simple makefiles
                     92: # Note: this is included here, rather than at the bottom of the file
                     93: # for a reason: You want all macro defs to proceed all "rules".
                     94: # Include MakeInc.simple here insures that any macros needed by the
                     95: # both the rules in MakeInc.simple and those that follow in this file
                     96: # will be defined.
                     97: #
                     98: findfile MakeInc.simple
                     99: 
                    100: #
                    101: # Extra install operations go here
                    102: #
                    103: install_extra:
                    104: 
                    105: installhdrs:
                    106: 
                    107: #
                    108: # This makefile will recursive invoke itself after cd'ing to OBJROOT.
                    109: # When invoked in the OBJROOT will have the following macros defined:
                    110: #      SRCDIR -- path to the directory containing this Makefile
                    111: #      SYMROOT -- path to the directory that is to contain the result
                    112: #              of this build
                    113: #
                    114: # E.g.
                    115: # foo.o:       foo.c foo.h
                    116: #      $(CC) -MD $(CFLAGS) $(COPTS) $(CCFLAGS) -WEIRD_OPT -c \
                    117: #              -o $@ $(SRCDIR)/foo.c
                    118: #      md -d -u Makedep $(*F).d
                    119: #

unix.superglobalmegacorp.com

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