From bfaff8ed1a3899c9aef7eaa2421d3d6467343ea1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Oct 1998 12:17:01 +0000 Subject: got smbwrapper working on IRIX 6.4. Things got a bit tricky, especially as the headers get the syscall numbers wrong! (This used to be commit a5405f1ab069a3123a819311a87ca84f2c5f0fea) --- source3/Makefile.in | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'source3/Makefile.in') diff --git a/source3/Makefile.in b/source3/Makefile.in index 8f21e417e6..3faa4331d4 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -222,6 +222,7 @@ PROTO_OBJ = $(SMBD_OBJ) $(NMBD_OBJ) $(SWAT_OBJ) $(CLIENT_OBJ) \ $(RPCCLIENT_OBJ) $(SMBWRAPPER_OBJ) PICOBJS = $(SMBWRAPPER_OBJ:.o=.po) +PICOBJS32 = $(SMBWRAPPER_OBJ:.o=.po32) ###################################################################### # now the rules... @@ -229,10 +230,10 @@ PICOBJS = $(SMBWRAPPER_OBJ:.o=.po) all : CHECK $(SPROGS) $(PROGS) -smbwrapper : CHECK smbwrapper/smbsh smbwrapper/smbwrapper.so +smbwrapper : CHECK smbwrapper/smbsh smbwrapper/smbwrapper.so @WRAP32@ .SUFFIXES: -.SUFFIXES: .c .o .po +.SUFFIXES: .c .o .po .po32 CHECK: @echo "Using FLAGS = $(FLAGS)" @@ -259,8 +260,16 @@ MAKEDIR = || exec false; \ .c.po: @MAINT@ .deps/.dummy @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \ dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi - @echo Compiling $*.c with -fpic - @$(CC) -I. -I$(srcdir) $(FLAGS) -fpic -c $< -o $@ \ + @echo Compiling $*.c with @PICFLAG@ + @$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< -o $@ \ + @MAINT@ -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp + +# this is for IRIX +.c.po32: @MAINT@ .deps/.dummy + @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \ + dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi + @echo Compiling $*.c with @PICFLAG@ + @$(CC) -32 -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< -o $@ \ @MAINT@ -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp bin/.dummy: @@ -338,7 +347,11 @@ bin/smbtorture: $(SMBTORTURE_OBJ) bin/.dummy smbwrapper/smbwrapper.so: $(PICOBJS) @echo Linking shared library $@ - $(LD) @LDSHFLAGS@ -o $@ $(PICOBJS) $(LIBS) + @$(LD) @LDSHFLAGS@ -o $@ $(PICOBJS) $(LIBS) + +smbwrapper/smbwrapper.32.so: $(PICOBJS32) + @echo Linking shared library $@ + @$(LD) -32 @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LIBS) smbwrapper/smbsh: smbwrapper/smbsh.in config.status CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status @@ -402,7 +415,7 @@ ctags: realclean: clean -rm -f config.log $(PROGS) $(SPROGS) bin/.dummy -rmdir bin - -rm -f smbwrapper/smbsh smbwrapper/smbwrapper.so + -rm -f smbwrapper/smbsh smbwrapper/smbwrapper*.so distclean: realclean -rm -f include/config.h include/stamp-h Makefile -- cgit