testprogs/win32: add prepare_dcpromo tool
[samba.git] / testprogs / win32 / prepare_dcpromo / GNUmakefile
1 INCLUDES=-I.
2 CFLAGS=$(INCLUDES)
3 LIBS=-ladvapi32
4
5 PREPARE_DCPROMO = prepare_dcpromo.exe
6
7 all: $(PREPARE_DCPROMO)
8
9 MINGW_CC = i586-mingw32msvc-cc
10 CC = $(MINGW_CC)
11
12 .SUFFIXES: .c .obj .exe
13
14 .c.obj:
15         $(CC) $(CFLAGS) -c $< -o $@
16
17 .obj.exe:
18         $(CC) $(CFLAGS) -o $@ $< $(LIBS)
19
20 clean:
21         rm -f *~ *.obj *.exe