Commit | Line | Data |
---|---|---|
1c68a737 | 1 | |
3f442544 KM |
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 | # | |
bef7c386 | 7 | # @(#)Makefile 5.3 (Berkeley) %G% |
3f442544 KM |
8 | # |
9 | ||
bef7c386 JB |
10 | OBJS= gethostnamadr.o gethostent.o |
11 | SRCS= gethostnamadr.c gethostent.c | |
3f442544 KM |
12 | CFLAGS= -O ${DEFS} |
13 | ||
bef7c386 | 14 | .c.o: |
3f442544 KM |
15 | ${CC} -p -c ${CFLAGS} $*.c |
16 | -ld -X -r $*.o | |
bef7c386 | 17 | mv a.out profiled/$*.o |
3f442544 KM |
18 | ${CC} ${CFLAGS} -c $*.c |
19 | -ld -x -r $*.o | |
bef7c386 | 20 | mv a.out $*.o |
3f442544 | 21 | |
bef7c386 JB |
22 | hostlib hostlib_p: ${OBJS} |
23 | @echo "building profiled hostlib" | |
24 | @cd profiled; ar cru ../hostlib_p ${OBJS} | |
1c68a737 | 25 | @echo "building normal netlib" |
bef7c386 | 26 | @ar cru hostlib ${OBJS} |
1c68a737 | 27 | |
bef7c386 JB |
28 | tags: |
29 | cwd=`pwd`; \ | |
30 | for i in ${SRCS}; do \ | |
31 | ctags -a -f ${TAGSFILE} $$cwd/$$i; \ | |
32 | done | |
33 | ||
3f442544 | 34 | clean: |
bef7c386 | 35 | rm -f ${OBJS} errs a.out core hostlib hostlib_p profiled/*.o tags |