cleanup-licensing-and-transarc-references-20030309
[openafs.git] / src / libuafs / MakefileProto.NBSD.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11
12 # System specific build commands and flags
13 CC = gcc
14 DEFINES= -DKERNEL -DUKERNEL
15 KOPTS=
16 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
17 OPTF=-O
18
19 TEST_CFLAGS=    -DAFS_NBSD_ENV
20 TEST_LDFLAGS=
21 TEST_LIBS=
22
23 LIBUAFS = libuafs.a
24 LIBJUAFS = libjuafs.a
25 LIBAFSWEB = nsafs.so
26 LIBAFSWEBKRB = nsafs.krb.so
27
28 include Makefile.common
29
30 $(LIBUAFS): $(UAFSOBJ)
31         -$(RM) -f $(LIBUAFS)
32         $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
33
34 $(LIBJUAFS): $(JUAFSOBJ)
35         -$(RM) -f $(LIBJUAFS)
36         $(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)
37
38 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
39         -$(RM) -f $(LIBAFSWEB)
40         ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
41
42 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
43         -$(RM) -f $(LIBAFSWEBKRB)
44         ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)