1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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