|
|
1.1 root 1: # @(#)Makefile 4.19 (Berkeley) 7/31/83
2: .SUFFIXES:
3: .SUFFIXES: .x .s .c .o
4: DESTDIR=
5: AS=/bin/as
6: CC=/bin/cc
7: LD=/bin/ld
8: INCLDIR=${DESTDIR}/usr/include
9: LIBDIR=${DESTDIR}/lib
10: ULIBDIR=${DESTDIR}/usr/lib
11:
12: CFLAGS= -O -I$(DESTDIR)/usr/include
13:
14: OBJS= msgsys.o plock.o semsys.o shmsys.o ulimit.o utssys.o
15:
16: syslib syslib_p: ${OBJS}
17: @echo "building profiled syslib_p"
18: @cd profiled; ar cru ../syslib_p ${OBJS}
19: @echo "buiding normal syslib_p"
20: @ar cru syslib ${OBJS}
21:
22: ulimit.o: ulimit.c
23: /lib/cpp -I$(DESTDIR)/usr/include -E -DPROF $*.c | ${AS} -o $*.o
24: -ld -x -r $*.o
25: mv a.out profiled/$*.o
26: /lib/cpp -I$(DESTDIR)/usr/include -E $*.c | ${AS} -o $*.o
27: -ld -x -r $*.o
28: mv a.out $*.o
29:
30: msgsys.o: msgsys.c
31: ${CC} -p ${CFLAGS} -c $*.c
32: ${LD} -x -r $*.o
33: mv a.out profiled/$*.o
34: ${CC} ${CFLAGS} -c $*.c
35: ${LD} -x -r $*.o
36: mv a.out $*.o
37:
38: plock.o: plock.c
39: ${CC} -p ${CFLAGS} -c $*.c
40: ${LD} -x -r $*.o
41: mv a.out profiled/$*.o
42: ${CC} ${CFLAGS} -c $*.c
43: ${LD} -x -r $*.o
44: mv a.out $*.o
45:
46: semsys.o: semsys.c
47: ${CC} -p ${CFLAGS} -c $*.c
48: ${LD} -x -r $*.o
49: mv a.out profiled/$*.o
50: ${CC} ${CFLAGS} -c $*.c
51: ${LD} -x -r $*.o
52: mv a.out $*.o
53:
54: shmsys.o: shmsys.c
55: ${CC} -p ${CFLAGS} -c $*.c
56: ${LD} -x -r $*.o
57: mv a.out profiled/$*.o
58: ${CC} ${CFLAGS} -c $*.c
59: ${LD} -x -r $*.o
60: mv a.out $*.o
61:
62: utssys.o: utssys.c
63: ${CC} -p ${CFLAGS} -c $*.c
64: ${LD} -x -r $*.o
65: mv a.out profiled/$*.o
66: ${CC} ${CFLAGS} -c $*.c
67: ${LD} -x -r $*.o
68: mv a.out $*.o
69:
70: clean:
71: rm -f syslib syslib_p ${OBJS} profiled/*.o
72:
73: cleansrc:
74: rm -f *.c *.h Makefile
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.