Samba 3.0.22 Porting by Vidya Sagar

21
Please note that many header files have been created. After running configure and building prototypes its time
now to build your application.
3.8 Build (make and make install)
Some portable applications have only one Makefile at the root of source tree and some have many Makefiles
each in a subdirectory which contain rules to build code in that particular subdirectory. In the latter case,
Makefile(s) call each other in nested fashion. Samba has a single Makefile located inside root source directory
(/SAMBA/SMB3022/src/samba-3.0.22-mpe/source). A full build of Samba on MPE/iX takes significant amount of
time (We observed ~5-6 hrs on an HP e3000 969-400 system in our HP Lab environment).
Starting a Samba build can be started by just issuing command make at POSIX shell as follows:
shell/iX> pwd
/SAMBA/SMB3022/src/samba-3.0.22-mpe/source
shell/iX> make
Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt -Iinclude -I/SAMBA/SMB3022/src/samba-
3.0.22-mpe/source/include -I/SAMBA/SMB3022/src/samba-3.0.22-mpe/source/ubiqx -I/
SAMBA/SMB3022/src/samba-3.0.22-mpe/source/tdb -I. -Dmpeix -D_POSIX_SOURCE -D_SO
CKET_SOURCE -D_INCLUDE_MPEXL_SOURCE -I/SYSLOG/PUB -I/usr/contrib/include -DLDAP_
DEPRECATED -I/SAMBA/SMB3022/src/samba-3.0.22-mpe/source -D_SAMBA_BUILD_
LIBS = -lposix60 -lunix -lsyslog -lsocket -lsvipc -lcurses
LDSHFLAGS = -shared -L/POSIXC60/lib -L/SYSLOG/PUB -Xlinker -WL,xl='/SAMBA
/SMB3022/LIBCPXL'
LDFLAGS = -L/POSIXC60/lib -L/SYSLOG/PUB -Xlinker -WL,xl='/SAMBA/SMB3022/LI
BCPXL'
PIE_CFLAGS =
PIE_LDFLAGS =
Compiling dynconfig.c
Compiling param/loadparm.c
Compiling param/params.c
Compiling smbd/files.c
Compiling smbd/chgpasswd.c
Compiling smbd/connection.c
Compiling smbd/utmp.c
Compiling smbd/session.c
.
.
.
Compiling lib/smbldap_util.c with
Compiling groupdb/mapping.c with
Linking libsmbclient non-shared library bin/libsmbclient.a
175 OBJECT FILES HAVE BEEN ADDED.
Compiling libsmb/smb_share_modes.c with
Linking libsmbsharemodes non-shared library bin/libsmbsharemodes.a
3 OBJECT FILES HAVE BEEN ADDED.
Compiling libmsrpc/libmsrpc.c with
Compiling libmsrpc/libmsrpc_internal.c with
Compiling libmsrpc/cac_lsarpc.c with
Compiling libmsrpc/cac_winreg.c with
Compiling libmsrpc/cac_samr.c with
Compiling libmsrpc/cac_svcctl.c with
Linking libmsrpc shared library bin/libmsrpc.so
Linking libmsrpc non-shared library bin/libmsrpc.a
181 OBJECT FILES HAVE BEEN ADDED.