X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=upstream%2FMakefile;h=fa28cc0f991443dd027aa314c632cba6016e6824;hp=194c05afff0bec067fe087f9bbc527ab4bfe94d7;hb=07de0e15baaca974c1d140be12e3d497030cd553;hpb=74c9fe2438225d551687f06f51e86925f8e8c13c diff --git a/upstream/Makefile b/upstream/Makefile index 194c05a..fa28cc0 100644 --- a/upstream/Makefile +++ b/upstream/Makefile @@ -237,6 +237,10 @@ patches_busybox = busybox.patch version_texinputs = 1.0 url_texinputs = http://www.megacz.com/tmp/texinputs-$(version_texinputs).tgz +version_samba = 3.0.4 +url_samba = http://us4.samba.org/samba/ftp/samba-$(version_samba).tar.gz +patches_samba = samba.patch + tasks/extract_libjpeg: tasks/download_libjpeg mkdir -p build cd build && \ @@ -340,3 +344,12 @@ tasks/build_tex: tasks/build_tex_tangle tasks/build_gpc tasks/download_texinputs && \ mips-unknown-elf-gpc $(MIPS_PCFLAGS) tex.p $(MIPS_LDFLAGS) -o tex.mips touch $@ + +tasks/build_samba: tasks/patch_samba + cd build/samba-$(version_samba)/source && \ + test -e config.status || ./configure --host=mips-unknown-elf && \ + fgrep -q '#define HAVE_GETTIMEOFDAY_TZ' include/config.h || \ + echo '#define HAVE_GETTIMEOFDAY_TZ 1' >> include/config.h && \ + make LIBS="-lglob" CFLAGS="$(MIPS_CFLAGS)" LDFLAGS="$(MIPS_LDFLAGS)" \ + CONFIGFILE="smb.conf" proto_exists bin/ntlm_auth + touch $@