summaryrefslogtreecommitdiff
path: root/testprogs/win32/prepare_dcpromo/GNUmakefile
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-05-31 10:02:38 +0200
committerStefan Metzmacher <metze@samba.org>2010-06-22 10:47:39 +0200
commitdf96f18e8ff3400d1bb7e9743498936ad32ee005 (patch)
tree4d42d45e44bb3b38a6f723a93be9441cbc78aa7f /testprogs/win32/prepare_dcpromo/GNUmakefile
parentefe65cd7b707c3ba5b321016829da431d6905415 (diff)
downloadsamba-df96f18e8ff3400d1bb7e9743498936ad32ee005.tar.gz
samba-df96f18e8ff3400d1bb7e9743498936ad32ee005.tar.bz2
samba-df96f18e8ff3400d1bb7e9743498936ad32ee005.zip
testprogs/win32: add prepare_dcpromo tool
This tool can set the DOMAIN-SID and nextRid counter in the local SAM on windows servers (tested with w2k8r2) dcpromo will use this values for the ad domain it creates. This might be useful for upgrades from a Samba3 domain. metze
Diffstat (limited to 'testprogs/win32/prepare_dcpromo/GNUmakefile')
-rwxr-xr-xtestprogs/win32/prepare_dcpromo/GNUmakefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/testprogs/win32/prepare_dcpromo/GNUmakefile b/testprogs/win32/prepare_dcpromo/GNUmakefile
new file mode 100755
index 0000000000..1c9561398e
--- /dev/null
+++ b/testprogs/win32/prepare_dcpromo/GNUmakefile
@@ -0,0 +1,21 @@
+INCLUDES=-I.
+CFLAGS=$(INCLUDES)
+LIBS=-ladvapi32
+
+PREPARE_DCPROMO = prepare_dcpromo.exe
+
+all: $(PREPARE_DCPROMO)
+
+MINGW_CC = i586-mingw32msvc-cc
+CC = $(MINGW_CC)
+
+.SUFFIXES: .c .obj .exe
+
+.c.obj:
+ $(CC) $(CFLAGS) -c $< -o $@
+
+.obj.exe:
+ $(CC) $(CFLAGS) -o $@ $< $(LIBS)
+
+clean:
+ rm -f *~ *.obj *.exe