~ubuntu-branches/ubuntu/gutsy/openafs/gutsy

« back to all changes in this revision

Viewing changes to src/libuafs/MakefileProto.FBSD.in

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-01-10 16:37:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040110163733-jvr0n1uahshlb1uu
Tags: upstream-1.2.11
ImportĀ upstreamĀ versionĀ 1.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
 
2
 
3
# MakefileProto for Solaris systems
 
4
#
 
5
DEST=@DEST@
 
6
TOP_SRCDIR=@TOP_SRCDIR@
 
7
TOP_INCDIR=@TOP_INCDIR@
 
8
TOP_LIBDIR=@TOP_LIBDIR@
 
9
prefix=@prefix@
 
10
exec_prefix=@exec_prefix@
 
11
bindir=@bindir@
 
12
sbindir=@sbindir@
 
13
libexecdir=@libexecdir@
 
14
libdir=@libdir@
 
15
includedir=@includedir@
 
16
mandir=@mandir@
 
17
afssrvbindir=@afssrvbindir@
 
18
afssrvsbindir=@afssrvsbindir@
 
19
afssrvlibexecdir=@afssrvlibexecdir@
 
20
SYS_NAME=@AFS_SYSNAME@
 
21
 
 
22
include ../config/Makefile.${SYS_NAME}
 
23
 
 
24
# System specific build commands and flags
 
25
CC = gcc
 
26
DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
 
27
KOPTS=
 
28
CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
 
29
OPTF=-O
 
30
# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
 
31
 
 
32
TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD40_ENV
 
33
TEST_LDFLAGS=
 
34
TEST_LIBS=
 
35
 
 
36
LIBUAFS = libuafs.a
 
37
LIBAFSWEB = nsafs.so
 
38
LIBAFSWEBKRB = nsafs.krb.so
 
39
 
 
40
include Makefile.common
 
41
 
 
42
setup_common:
 
43
        -$(RM) -f  h net netinet rpc ufs nfs  machine sys inet nsapi
 
44
        -ln -s /usr/include/sys h
 
45
        -ln -s /usr/include/net net
 
46
        -ln -s /usr/include/netinet netinet
 
47
        -ln -s /usr/include/rpc rpc
 
48
        -ln -s /usr/include/sys sys
 
49
        -ln -s /usr/include/nfs nfs
 
50
        -ln -s /usr/include/inet inet
 
51
        -ln -s /usr/include/ufs ufs
 
52
        -ln -s $(NS_INCL) nsapi
 
53
 
 
54
setup_uafs: UAFS setup_common
 
55
        -$(RM) -f UAFS/Makefile UAFS/Makefile.common
 
56
        ln -s ../Makefile UAFS/Makefile
 
57
        ln -s ../Makefile.common UAFS/Makefile.common
 
58
 
 
59
UAFS:
 
60
        mkdir -p $@
 
61
 
 
62
setup_nsafs: AFSWEB setup_common
 
63
        -$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
 
64
        ln -s ../Makefile AFSWEB/Makefile
 
65
        ln -s ../Makefile.common AFSWEB/Makefile.common
 
66
 
 
67
AFSWEB: 
 
68
        mkdir -p $@
 
69
 
 
70
UAFS/$(LIBUAFS): setup_uafs
 
71
        cd UAFS; \
 
72
        $(MAKE) $(LIBUAFS) DESTDIR=${DESTDIR}
 
73
 
 
74
AFSWEB/$(LIBAFSWEB): setup_nsafs
 
75
        cd AFSWEB; \
 
76
        $(MAKE) $(LIBAFSWEB) DESTDIR=${DESTDIR}
 
77
 
 
78
AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
 
79
        cd AFSWEB; \
 
80
        $(MAKE) $(LIBAFSWEBKRB) DESTDIR=${DESTDIR}
 
81
 
 
82
# Below this line are targets when in the COMMON directory:
 
83
 
 
84
$(LIBUAFS): $(UAFSOBJ)
 
85
        -$(RM) -f $(LIBUAFS)
 
86
        $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
 
87
 
 
88
$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
 
89
        -$(RM) -f $(LIBAFSWEB)
 
90
        ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
 
91
 
 
92
$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
 
93
        -$(RM) -f $(LIBAFSWEBKRB)
 
94
        ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)