diff options
author | S. Davilla <davilla@4pi.com> | 2011-04-11 13:00:28 -0400 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2011-04-12 18:19:24 -0400 |
commit | 3c39e45375ef23099572a4cbbd1e8d2f6869c82b (patch) | |
tree | 8529de20be6632a6ba8ed48662e40619d0b610cb /tools/darwin/depends/samba/Makefile | |
parent | 1b4f11c4f023893ef3cddf0fe863da8e67f9373d (diff) |
[osx/ios] refactor depends build system to use config.site, for testing only right now
Diffstat (limited to 'tools/darwin/depends/samba/Makefile')
-rw-r--r-- | tools/darwin/depends/samba/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tools/darwin/depends/samba/Makefile b/tools/darwin/depends/samba/Makefile new file mode 100644 index 0000000000..c1dfee0d40 --- /dev/null +++ b/tools/darwin/depends/samba/Makefile @@ -0,0 +1,50 @@ +include ../Makefile.include + +# lib name, version +LIBNAME=samba +VERSION=3.5.6 +SOURCE=$(LIBNAME)-$(VERSION) +ARCHIVE=$(SOURCE).tar.gz + +# configuration settings +CONFIGURE=./configure --prefix=$(PREFIX) \ + --without-cluster-support --disable-swat --without-ldap \ + --without-pam --without-pam_smbpass --with-fhs + +LIBDYLIB=$(SOURCE)/source3/bin/libsmbclient.dylib + +all: $(LIBDYLIB) .installed + +$(TARBALLS_LOCATION)/$(ARCHIVE): + $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) + +$(LIBDYLIB): $(TARBALLS_LOCATION)/$(ARCHIVE) + rm -rf $(SOURCE) + $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + echo $(SOURCE) > .gitignore + cd $(SOURCE)/source3; ./autogen.sh + cd $(SOURCE)/source3; $(CONFIGURE) + #cp -f /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$(platform_sdk_version).sdk/usr/include/crt_externs.h $(PREFIX)/include/ + cd $(SOURCE)/source3; make bin/libsmbclient.dylib + +.installed: + cp -f $(SOURCE)/source3/include/libsmbclient.h $(PREFIX)/include/ + cp -f $(SOURCE)/source3/bin/libtdb.dylib.1 $(PREFIX)/lib/ + cp -f $(SOURCE)/source3/bin/libtalloc.dylib.2 $(PREFIX)/lib/ + cp -f $(SOURCE)/source3/bin/libsmbclient.dylib.0 $(PREFIX)/lib/ + cd $(PREFIX)/lib; ln -sf libsmbclient.dylib.0 libsmbclient.dylib + install_name_tool -id $(PREFIX)/lib/libtdb.dylib.1 $(PREFIX)/lib/libtdb.dylib.1 + install_name_tool -id $(PREFIX)/lib/libtalloc.dylib.2 $(PREFIX)/lib/libtalloc.dylib.2 + install_name_tool -id $(PREFIX)/lib/libsmbclient.dylib.0 $(PREFIX)/lib/libsmbclient.dylib.0 + install_name_tool -change bin/libtdb.dylib.1 $(PREFIX)/lib/libtdb.dylib.1 \ + $(PREFIX)/lib/libsmbclient.dylib.0 + install_name_tool -change bin/libtalloc.dylib.2 $(PREFIX)/lib/libtalloc.dylib.2 \ + $(PREFIX)/lib/libsmbclient.dylib.0 + touch $@ + +clean: + make -C $(SOURCE)/source3 clean + rm -f .installed + +distclean:: + rm -rf $(SOURCE) .installed |