srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
# System specific build commands and flags
DEFINES=-DKERNEL -DUKERNEL -D_NO_PROTO -DOSF
KOPTS=
-DBUG=
+DBG=
OPTF=-O
-CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG} -pthread
+CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS) -pthread
WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
-TEST_CFLAGS=-pthread -D_NO_PROTO -D_REENTRANT -DAFS_PTHREAD_ENV -Dosf -DAFS_OSF_ENV -DOSF
+TEST_CFLAGS=-pthread -D_NO_PROTO -D_REENTRANT -DAFS_PTHREAD_ENV -Dosf -DAFS_OSF_ENV -DOSF $(XCFLAGS)
TEST_LDFLAGS=-pthread
TEST_LIBS=-lm
include Makefile.common
-setup_common:
- -$(RM) -f h net netinet rpc ufs nfs machine sys inet nsapi
- -ln -s /usr/include/sys h
- -ln -s /usr/include/net net
- -ln -s /usr/include/netinet netinet
- -ln -s /usr/include/rpc rpc
- -ln -s /usr/include/sys sys
- -ln -s /usr/include/nfs nfs
- -ln -s /usr/include/inet inet
- -ln -s /usr/include/ufs ufs
- -ln -s $(NS_INCL) nsapi
-
-setup_uafs: UAFS setup_common
- -$(RM) -f UAFS/Makefile UAFS/Makefile.common
- ln -s ../Makefile UAFS/Makefile
- ln -s ../Makefile.common UAFS/Makefile.common
-
-UAFS:
- mkdir -p $@
-
-JUAFS:
- mkdir -p $@
-
-setup_nsafs: AFSWEB setup_common
- -$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
- ln -s ../Makefile AFSWEB/Makefile
- ln -s ../Makefile.common AFSWEB/Makefile.common
-
-setup_juafs: JUAFS setup_common
- -$(RM) -f JUAFS/Makefile JUAFS/Makefile.common
- ln -s ../Makefile JUAFS/Makefile
- ln -s ../Makefile.common JUAFS/Makefile.common
-
-AFSWEB:
- mkdir -p $@
-
-UAFS/$(LIBUAFS): setup_uafs
- cd UAFS; \
- $(MAKE) $(LIBUAFS) LIBJUAFS_FLAGS=
-
-JUAFS/$(LIBJUAFS): setup_juafs
- cd JUAFS; \
- $(MAKE) $(LIBJUAFS) DESTDIR=${DESTDIR} LIBJUAFS_FLAGS=-DAFS_WEB_ENHANCEMENTS
-
-AFSWEB/$(LIBAFSWEB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEB)
-
-AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
- cd AFSWEB; \
- $(MAKE) $(LIBAFSWEBKRB)
-
-# Below this line are targets when in the COMMON directory:
-
$(LIBUAFS): $(UAFSOBJ)
-$(RM) -f $(LIBUAFS)
$(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
ranlib $(LIBUAFS)
+libuafs_pic.a: $(PICUAFSOBJ)
+ -$(RM) -f libuafs_pic.a
+ $(AR) $(ARFLAGS) libuafs_pic.a $(PICUAFSOBJ)
+ ranlib libuafs_pic.a
+
$(LIBJUAFS): $(JUAFSOBJ)
-$(RM) -f $(LIBJUAFS)
$(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)