1 #/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
4 include @TOP_OBJDIR@/src/config/Makefile.config
7 # System specific build commands and flags
9 DEFINES= -DKERNEL -DUKERNEL
11 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
14 TEST_CFLAGS= -DAFS_NBSD_ENV
21 LIBAFSWEBKRB = nsafs.krb.so
23 include Makefile.common
26 -$(RM) -f h net netinet rpc ufs nfs machine sys inet nsapi
27 -ln -s /usr/include/sys h
28 -ln -s /usr/include/net net
29 -ln -s /usr/include/netinet netinet
30 -ln -s /usr/include/rpc rpc
31 -ln -s /usr/include/sys sys
32 -ln -s /usr/include/nfs nfs
33 -ln -s /usr/include/inet inet
34 -ln -s /usr/include/ufs ufs
35 -ln -s $(NS_INCL) nsapi
37 setup_uafs: UAFS setup_common
38 -$(RM) -f UAFS/Makefile UAFS/Makefile.common
39 ln -s ../Makefile UAFS/Makefile
40 ln -s ../Makefile.common UAFS/Makefile.common
42 setup_juafs: JUAFS setup_common
43 -$(RM) -f JUAFS/Makefile JUAFS/Makefile.common
44 ln -s ../Makefile JUAFS/Makefile
45 ln -s ../Makefile.common JUAFS/Makefile.common
53 setup_nsafs: AFSWEB setup_common
54 -$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
55 ln -s ../Makefile AFSWEB/Makefile
56 ln -s ../Makefile.common AFSWEB/Makefile.common
61 JUAFS/$(LIBJUAFS): setup_juafs
63 $(MAKE) $(LIBJUAFS) DESTDIR=${DESTDIR} LIBJUAFS_FLAGS=-DAFS_WEB_ENHANCEMENTS
65 UAFS/$(LIBUAFS): setup_uafs
67 $(MAKE) $(LIBUAFS) DESTDIR=${DESTDIR} LIBJUAFS_FLAGS=
69 AFSWEB/$(LIBAFSWEB): setup_nsafs
71 $(MAKE) $(LIBAFSWEB) DESTDIR=${DESTDIR}
73 AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
75 $(MAKE) $(LIBAFSWEBKRB) DESTDIR=${DESTDIR}
77 # Below this line are targets when in the COMMON directory:
79 $(LIBUAFS): $(UAFSOBJ)
81 $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
83 $(LIBJUAFS): $(JUAFSOBJ)
85 $(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)
87 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
88 -$(RM) -f $(LIBAFSWEB)
89 ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
91 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
92 -$(RM) -f $(LIBAFSWEBKRB)
93 ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)