Commit | Line | Data |
---|---|---|
0b095c72 SL |
1 | # Makefile 4.1 83/06/27 |
2 | # | |
3 | CFLAGS= -O -DCM_N -DCM_GT -DCM_B -DCM_D | |
4 | LD = ld | |
5 | ||
6 | .c.o: | |
7 | $(CC) $(CFLAGS) -c -p $*.c | |
8 | $(LD) $(LDFLAGS) -x -r -o profiled/$*.o $*.o | |
9 | $(CC) $(CFLAGS) -c $*.c | |
10 | $(LD) $(LDFLAGS) -X -r $*.o | |
11 | mv a.out $*.o | |
12 | ||
13 | termcap.a termcap_p.a: termcap.o tgoto.o tputs.o | |
14 | ar cr termcap.a termcap.o tgoto.o tputs.o | |
15 | cd profiled; ar cr ../termcap_p.a termcap.o tgoto.o tputs.o | |
16 | ||
17 | clean: | |
18 | -rm -f *.o profiled/*.o | |
19 | -rm -f termcap.a termcap_p.a | |
20 | ||
21 | install: termcap.a termcap_p.a | |
22 | install -c termcap.a ${DESTDIR}/usr/lib/libtermcap.a | |
23 | -rm -f ${DESTDIR}/usr/lib/libtermlib.a | |
24 | ln ${DESTDIR}/usr/lib/libtermcap.a ${DESTDIR}/usr/lib/libtermlib.a | |
25 | ranlib ${DESTDIR}/usr/lib/libtermcap.a | |
26 | install -c termcap_p.a ${DESTDIR}/usr/lib/libtermcap_p.a | |
27 | -rm -f ${DESTDIR}/usr/lib/libtermlib_p.a | |
28 | ln ${DESTDIR}/usr/lib/libtermcap_p.a ${DESTDIR}/usr/lib/libtermlib_p.a | |
29 | ranlib ${DESTDIR}/usr/lib/libtermcap_p.a | |
30 | ||
31 | VGRIND= csh /usr/ucb/vgrind | |
32 | vgrind: | |
33 | cp /dev/null index | |
34 | ${VGRIND} -h "Termcap library" termcap.c tputs.c tgoto.c | |
35 | ${VGRIND} -h "Termcap library" -x index |