Annotation of 43BSD/lib/libc/net/hosttable/Makefile, revision 1.1.1.1

1.1       root        1: 
                      2: #
                      3: # Copyright (c) 1983 Regents of the University of California.
                      4: # All rights reserved.  The Berkeley software License Agreement
                      5: # specifies the terms and conditions for redistribution.
                      6: #
                      7: #      @(#)Makefile    5.4 (Berkeley) 9/5/85
                      8: #
                      9: 
                     10: OBJS=  gethostnamadr.o gethostent.o
                     11: SRCS=  gethostnamadr.c gethostent.c
                     12: CFLAGS=        -O ${DEFS}
                     13: 
                     14: .c.o: 
                     15:        ${CC} -p -c ${CFLAGS} $*.c
                     16:        -ld -X -r $*.o
                     17:        mv a.out profiled/$*.o
                     18:        ${CC} ${CFLAGS} -c $*.c
                     19:        -ld -x -r $*.o
                     20:        mv a.out $*.o
                     21: 
                     22: hostlib hostlib_p: ${OBJS} 
                     23:        @echo "building profiled hostlib"
                     24:        @cd profiled; ar cru ../hostlib_p ${OBJS}
                     25:        @echo "building normal netlib"
                     26:        @ar cru hostlib ${OBJS}
                     27:        
                     28: tags:
                     29:        cwd=`pwd`; \
                     30:        for i in ${SRCS}; do \
                     31:                ctags -a -f ${TAGSFILE} $$cwd/$$i; \
                     32:        done
                     33: 
                     34: clean:
                     35:        rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o \
                     36:                tags Makefile.bak
                     37: 
                     38: depend:
                     39:        for i in ${SRCS}; do \
                     40:            cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \
                     41:                { if (rec != "") print rec; rec = $$0; prev = $$1; } \
                     42:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
                     43:                else rec = rec " " $$2 } } \
                     44:                END { print rec } ' >> makedep; done
                     45:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                     46:        echo '$$r makedep' >>eddep
                     47:        echo 'w' >>eddep
                     48:        cp Makefile Makefile.bak
                     49:        ed - Makefile < eddep
                     50:        rm eddep makedep
                     51:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                     52:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                     53:        echo '# see make depend above' >> Makefile
                     54: 
                     55: # DO NOT DELETE THIS LINE -- make depend uses it
                     56: 
                     57: gethostnamadr.o: gethostnamadr.c /usr/include/stdio.h /usr/include/netdb.h
                     58: gethostnamadr.o: /usr/include/sys/file.h /usr/include/ndbm.h
                     59: gethostent.o: gethostent.c /usr/include/stdio.h /usr/include/sys/types.h
                     60: gethostent.o: /usr/include/sys/socket.h /usr/include/netdb.h
                     61: gethostent.o: /usr/include/ctype.h /usr/include/ndbm.h
                     62: # DEPENDENCIES MUST END AT END OF FILE
                     63: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                     64: # see make depend above

unix.superglobalmegacorp.com

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