BSD 4_3 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 7 Jul 1983 17:03:54 +0000 (09:03 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 7 Jul 1983 17:03:54 +0000 (09:03 -0800)
Work on file usr/contrib/courier/lib/Makefile

Synthesized-from: CSRG/cd1/4.3

usr/contrib/courier/lib/Makefile [new file with mode: 0644]

diff --git a/usr/contrib/courier/lib/Makefile b/usr/contrib/courier/lib/Makefile
new file mode 100644 (file)
index 0000000..46a167c
--- /dev/null
@@ -0,0 +1,33 @@
+#      Makefile        4.3     83/07/08
+#
+SRCS=  client.c bind.c server.c misc.c
+OBJS=  client.o bind.o server.o misc.o
+CFLAGS=        -O -DDEBUG
+DESTDIR=
+
+.c.o:
+       ${CC} -c ${CFLAGS} -p $*.c
+       ld -x -r -o profiled/$*.o $*.o
+       ${CC} -c ${CFLAGS} $*.c
+       ld -x -r $*.o
+       mv a.out $*.o
+
+libcr libcr_p: ${OBJS}
+       @echo building profiled libcr
+       @cd profiled; ar cr ../libcr_p ${OBJS}
+       @echo building normal libcr
+       @ar cr libcr ${OBJS}
+
+lint:  ${SRCS}
+       lint -hux ${SRCS}
+
+# beware, the compiler expects courier.h to be in /usr/include
+install: libcr libcr_p
+       install -c -m 644 courier.h ${DESTDIR}/usr/include/courier.h
+       install -m 644 libcr ${DESTDIR}/usr/new/lib/libcr.a
+       ranlib ${DESTDIR}/usr/new/lib/libcr.a
+       install -m 644 libcr_p ${DESTDIR}/usr/new/lib/libcr_p.a
+       ranlib ${DESTDIR}/usr/new/lib/libcr_p.a
+
+clean:
+       -rm -f ${OBJS} profiled/*.o libcr libcr_p