xref: /original-bsd/lib/libcompat/4.1/Makefile (revision c43e4352)
1#	Makefile	4.2	83/07/05
2#
3CFLAGS=	-O
4STD=	ftime.o gtty.o nice.o pause.o rand.o stty.o tell.o \
5	times.o utime.o vlimit.o vtimes.o
6# these should just be pitched, but in the interest of compatibility...
7TRASH=	getpw.o
8OBJS=	${STD} ${TRASH}
9
10.c.o:
11	${CC} -p ${CFLAGS} -c $*.c
12	-ld -X -r $*.o
13	mv a.out profiled/$*.o
14	${CC} ${CFLAGS} -c $*.c
15	-ld -x -r $*.o
16	mv a.out $*.o
17
18compat-4.1lib compat-4.1lib_p: ${OBJS}
19	@echo "building profiled compat-4.1lib"
20	@cd profiled; ar cru ../compat-4.1lib_p ${OBJS}
21	@echo "buiding normal compat-4.1lib"
22	@ar cru compat-4.1lib ${OBJS}
23
24clean:
25	rm -f compat-4.1lib compat-4.1lib_p ${OBJS} profiled/*.o
26