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 | # | |
1c68a737 | 7 | # @(#)Makefile 5.2 (Berkeley) %G% |
3f442544 KM |
8 | # |
9 | ||
1c68a737 | 10 | OBJS= gethostnamadr.o |
3f442544 KM |
11 | CFLAGS= -O ${DEFS} |
12 | ||
1c68a737 | 13 | gethostnamadr.o: |
3f442544 KM |
14 | ${CC} -p -c ${CFLAGS} $*.c |
15 | -ld -X -r $*.o | |
16 | mv a.out ../profiled/$*.o | |
17 | ${CC} ${CFLAGS} -c $*.c | |
18 | -ld -x -r $*.o | |
19 | mv a.out ../$*.o | |
20 | ||
1c68a737 KD |
21 | netlib netlib_p: ${OBJS} |
22 | @echo "building profiled netlib" | |
23 | @cd ../profiled; ar ru ../netlib_p ${TARGETOBJS} | |
24 | @echo "building normal netlib" | |
25 | @ar ru ../netlib ${TARGETOBJS} | |
26 | ||
3f442544 KM |
27 | clean: |
28 | rm -f ${OBJS} errs a.out core |