Annotation of 43BSD/usr.lib/libU77/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Copyright (c) 1980 Regents of the University of California.
                      3: # All rights reserved.  The Berkeley software License Agreement
                      4: # specifies the terms and conditions for redistribution.
                      5: #
                      6: #      @(#)Makefile    5.1 (Berkeley) 6/7/85
                      7: #
                      8: # Makefile for f77 system lib, libU77.a
                      9: 
                     10: CFLAGS       = -O
                     11: 
                     12: DEST         = $(DESTDIR)/usr/lib
                     13: 
                     14: DESTDIR              =
                     15: 
                     16: EXTHDRS              =
                     17: 
                     18: HDRS         =
                     19: 
                     20: LIBRARY              = libU77.a
                     21: 
                     22: LIBRARY_P     = libU77_p.a
                     23: 
                     24: MAKEFILE      = Makefile
                     25: 
                     26: OBJS         = access_.o \
                     27:                alarm_.o \
                     28:                chdir_.o \
                     29:                chmod_.o \
                     30:                ctime_.o \
                     31:                dtime_.o \
                     32:                etime_.o \
                     33:                f77lid_.o \
                     34:                fdate_.o \
                     35:                fgetc_.o \
                     36:                fork_.o \
                     37:                fputc_.o \
                     38:                fseek_.o \
                     39:                fstat_.o \
                     40:                ftell_.o \
                     41:                gerror_.o \
                     42:                getarg_.o \
                     43:                getc_.o \
                     44:                getcwd_.o \
                     45:                getenv_.o \
                     46:                getgid_.o \
                     47:                getlog_.o \
                     48:                getpid_.o \
                     49:                getuid_.o \
                     50:                gmtime_.o \
                     51:                hostnm_.o \
                     52:                iargc_.o \
                     53:                idate_.o \
                     54:                ierrno_.o \
                     55:                ioinit.o \
                     56:                isatty_.o \
                     57:                itime_.o \
                     58:                kill_.o \
                     59:                link_.o \
                     60:                loc_.o \
                     61:                lstat_.o \
                     62:                ltime_.o \
                     63:                malloc_.o \
                     64:                perror_.o \
                     65:                putc_.o \
                     66:                qsort_.o \
                     67:                rename_.o \
                     68:                sleep_.o \
                     69:                stat_.o \
                     70:                symlnk_.o \
                     71:                system_.o \
                     72:                tapeio.o \
                     73:                time_.o \
                     74:                ttynam_.o \
                     75:                unlink_.o \
                     76:                wait_.o
                     77: 
                     78: OLDDIR       = $(DESTDIR)/usr/old/lib
                     79: 
                     80: PRINT        = pr
                     81: 
                     82: SRCS         = access_.c \
                     83:                alarm_.c \
                     84:                chdir_.c \
                     85:                chmod_.c \
                     86:                ctime_.c \
                     87:                dtime_.c \
                     88:                etime_.c \
                     89:                f77lid_.c \
                     90:                fdate_.c \
                     91:                fgetc_.c \
                     92:                fork_.c \
                     93:                fputc_.c \
                     94:                fseek_.c \
                     95:                fstat_.c \
                     96:                ftell_.c \
                     97:                gerror_.c \
                     98:                getarg_.c \
                     99:                getc_.c \
                    100:                getcwd_.c \
                    101:                getenv_.c \
                    102:                getgid_.c \
                    103:                getlog_.c \
                    104:                getpid_.c \
                    105:                getuid_.c \
                    106:                gmtime_.c \
                    107:                hostnm_.c \
                    108:                iargc_.c \
                    109:                idate_.c \
                    110:                ierrno_.c \
                    111:                ioinit.f \
                    112:                isatty_.c \
                    113:                itime_.c \
                    114:                kill_.c \
                    115:                link_.c \
                    116:                loc_.c \
                    117:                lstat_.c \
                    118:                ltime_.c \
                    119:                malloc_.c \
                    120:                perror_.c \
                    121:                putc_.c \
                    122:                qsort_.c \
                    123:                rename_.c \
                    124:                sleep_.c \
                    125:                stat_.c \
                    126:                symlnk_.c \
                    127:                system_.c \
                    128:                tapeio.c \
                    129:                time_.c \
                    130:                ttynam_.c \
                    131:                unlink_.c \
                    132:                wait_.c
                    133: 
                    134: all:           $(LIBRARY) $(LIBRARY_P)
                    135: 
                    136: $(LIBRARY):    $(OBJS) Version
                    137:                @echo -n "Loading $(LIBRARY) ... "
                    138:                @ar cru $(LIBRARY) $(OBJS) ioinit.f Version
                    139:                @ranlib $(LIBRARY)
                    140:                @echo "done"
                    141: 
                    142: $(LIBRARY_P):  $(OBJS) Version
                    143:                @echo -n "Loading $(LIBRARY_P) ... "
                    144:                @cd profiled; ar cru ../$(LIBRARY_P) $(OBJS) Version
                    145:                @ranlib $(LIBRARY_P)
                    146:                @echo "done"
                    147: 
                    148: Version:       $(SRCS) mkvers
                    149:                @rm -f Version.c
                    150:                ./mkvers $(LIBRARY) $(SRCS) > Version.c
                    151:                $(CC) -c Version.c
                    152:                mv Version.o Version
                    153:                @rm -f profiled/Version
                    154:                ln Version profiled/Version
                    155: 
                    156: mkvers:                mkvers.c
                    157:                @$(CC) mkvers.c -o mkvers
                    158: 
                    159: clean:;                @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P)
                    160: 
                    161: depend:;       @echo Construct dependencies manually
                    162: 
                    163: extract:;      @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF
                    164:                @cd profiled; -ar xo $(DEST)/$(LIBRARY_P); rm -f __.SYMDEF
                    165: 
                    166: index:;                @ctags -wx $(HDRS) $(SRCS)
                    167: 
                    168: install:       $(LIBRARY) $(LIBRARY_P)
                    169:                install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY)
                    170:                ranlib $(DEST)/$(LIBRARY)
                    171:                install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P)
                    172:                ranlib $(DEST)/$(LIBRARY_P)
                    173: 
                    174: library:        $(LIBRARY) $(LIBRARY_P)
                    175: 
                    176: print:;                @$(PRINT) $(HDRS) $(SRCS)
                    177: 
                    178: tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
                    179: 
                    180: update:         $(DEST)/$(LIBRARY)
                    181: 
                    182: $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
                    183:                @-ar xo $(DEST)/$(LIBRARY)
                    184:                @cd profiled; -ar xo $(DEST)/$(LIBRARY_P)
                    185:                @make -f $(MAKEFILE) DEST=$(DEST) install clean
                    186: .c.o:
                    187:                $(CC) -p $(CFLAGS) -c $*.c
                    188:                -ld -x -r $*.o
                    189:                mv a.out profiled/$*.o
                    190:                $(CC) $(CFLAGS) -c $*.c
                    191:                -ld -x -r $*.o
                    192:                mv a.out $*.o
                    193: 
                    194: .f.o:
                    195:                $(FC) -p $(FFLAGS) -c $*.f
                    196:                -ld -x -r $*.o
                    197:                mv a.out profiled/$*.o
                    198:                $(FC) $(FFLAGS) -c $*.f
                    199:                -ld -x -r $*.o
                    200:                mv a.out $*.o

unix.superglobalmegacorp.com

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