
MCS=mcs

ifeq ($(debug),yes)
	MCSFLAGS=-debug --stacktrace
endif
LIBS=


AUTOPANO_WIN32_EXE=autopano-win32.exe
AUTOPANO_WIN32_SRC=AssemblyInfo.cs \
	../Autopano.cs \
	../BasicImagingInterface.cs \
	Form1.cs \
	FormProcess.cs \
	../GUIImage-Drawing.cs
AUTOPANO_WIN32_RES=-resource:Form1.resx,autopano_sift_winGUI.Form1.resx \
	-resource:FormProcess.resx,autopano_sift_winGUI.FormProcess.resx

$(AUTOPANO_WIN32_EXE): $(AUTOPANO_WIN32_SRC) 
	$(MCS) $(MCSFLAGS) $(LIBS) -main:autopano_sift_winGUI.Form1 \
		-r:System.dll -r:System.Data.dll -r:System.Drawing.dll \
		-r:System.Windows.Forms.dll -r:System.Xml.dll \
		-r:ICSharpCode.SharpZipLib.dll \
		-r:../../libsift.dll \
		-target:winexe -out:$(AUTOPANO_WIN32_EXE) \
		$(AUTOPANO_WIN32_RES) \
		$(AUTOPANO_WIN32_SRC)


# common targets

all:	$(AUTOPANO_WIN32_EXE)

clean:
	-rm -f "$(AUTOPANO_WIN32_EXE)" 2> /dev/null


# project names as targets

autopano-sift: $(AUTOPANO_WIN32_EXE)

