937ba4ae2871c5db1dfe2bbb59a67ac2634d9bae
[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 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15
16 # System specific build commands and flags
17 CC = gcc
18 DEFINES= -DKERNEL -DUKERNEL
19 KOPTS=
20 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
21 OPTF=-O
22
23 TEST_CFLAGS=    -DAFS_NBSD_ENV $(XCFLAGS)
24 TEST_LDFLAGS=
25 TEST_LIBS=
26
27 LIBUAFS = libuafs.a
28 LIBJUAFS = libjuafs.a
29 LIBAFSWEB = nsafs.so
30 LIBAFSWEBKRB = nsafs.krb.so
31
32 include Makefile.common
33
34 $(LIBUAFS): $(UAFSOBJ)
35         -$(RM) -f $(LIBUAFS)
36         $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
37
38 libuafs_pic.a: $(PICUAFSOBJ)
39         -$(RM) -f libuafs_pic.a
40         $(AR) $(ARFLAGS) libuafs_pic.a $(PICUAFSOBJ)
41
42 $(LIBJUAFS): $(JUAFSOBJ)
43         -$(RM) -f $(LIBJUAFS)
44         $(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)
45
46 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
47         -$(RM) -f $(LIBAFSWEB)
48         ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
49
50 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
51         -$(RM) -f $(LIBAFSWEBKRB)
52         ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)