1# 2# Copyright (c) 1988 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that this notice is preserved and that due credit is given 7# to the University of California at Berkeley. The name of the University 8# may not be used to endorse or promote products derived from this 9# software without specific prior written permission. This software 10# is provided ``as is'' without express or implied warranty. 11# 12# @(#)Makefile 5.7 (Berkeley) 05/20/88 13# 14DEFS= -DLIBC_SCCS 15CFLAGS= -O ${DEFS} 16OBJS= gethostnamadr.o gethostent.o 17SRCS= gethostnamadr.c gethostent.c 18TAGSFILE=tags 19 20.c.o: 21 @${CC} -p -c ${CFLAGS} $*.c 22 @-ld -X -o profiled/$*.o -r $*.o 23 ${CC} ${CFLAGS} -c $*.c 24 @-ld -x -r $*.o 25 @mv a.out $*.o 26 27all: ${OBJS} 28 29link: ${OBJS} 30 (cd ../../library; rm -f ${OBJS}) 31 (cd ../../profiled; rm -f ${OBJS}) 32 ln ${OBJS} ../../library 33 (cd profiled; ln ${OBJS} ../../../profiled) 34 35tags: 36 cwd=`pwd`; \ 37 for i in ${SRCS}; do \ 38 ctags -a -f ${TAGSFILE} $$cwd/$$i; \ 39 done 40 41clean: 42 rm -f *.o profiled/* a.out core ${TAGSFILE} 43 44depend: 45 mkdep ${CFLAGS} ${SRCS} 46 47# DO NOT DELETE THIS LINE -- mkdep uses it. 48# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 49 50gethostnamadr.o: gethostnamadr.c /usr/include/stdio.h /usr/include/netdb.h 51gethostnamadr.o: /usr/include/sys/file.h /usr/include/ndbm.h 52gethostnamadr.o: /usr/include/ctype.h 53gethostent.o: gethostent.c /usr/include/stdio.h /usr/include/sys/types.h 54gethostent.o: /usr/include/sys/socket.h /usr/include/netdb.h 55gethostent.o: /usr/include/ctype.h /usr/include/ndbm.h 56 57# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 58