####### Compiler, tools and options

CC            = cl
CXX           = cl
DEFINES       = -DUNICODE -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE
CFLAGS        = -nologo -Zm200 -Zc:wchar_t- -fp:fast -O2 -MT -MP -W3 $(DEFINES)
CXXFLAGS      = -nologo -Zm200 -Zc:wchar_t- -fp:fast -O2 -MT -MP -GR -EHsc -W3 -w34100 -w34189 $(DEFINES)
INCPATH       = -I"tmp64" -I"..\include"
LINK          = link
LFLAGS        = /NOLOGO /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:"tmp64\Yadif Deinterlace.intermediate.manifest"
LIBS          =  
IDL           = midl
ZIP           = zip -r -9
DEF_FILE      = 
RES_FILE      = 
COPY          = copy /y
COPY_FILE     = $(COPY)
COPY_DIR      = xcopy /s /q /y /i
DEL_FILE      = del
DEL_DIR       = rmdir
MOVE          = move
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
INSTALL_FILE    = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR     = $(COPY_DIR)

####### Output directory

OBJECTS_DIR   = tmp64

####### Files

SOURCES       = yadifdeint.cpp \
		..\Library\ofxsCore.cpp \
		..\Library\ofxsImageEffect.cpp \
		..\Library\ofxsInteract.cpp \
		..\Library\ofxsLog.cpp \
		..\Library\ofxsMultiThread.cpp \
		..\Library\ofxsParams.cpp \
		..\Library\ofxsProperty.cpp \
		..\Library\ofxsPropertyValidation.cpp 
OBJECTS       = tmp64\yadifdeint.obj \
		tmp64\ofxsCore.obj \
		tmp64\ofxsImageEffect.obj \
		tmp64\ofxsInteract.obj \
		tmp64\ofxsLog.obj \
		tmp64\ofxsMultiThread.obj \
		tmp64\ofxsParams.obj \
		tmp64\ofxsProperty.obj \
		tmp64\ofxsPropertyValidation.obj
DIST          = 
QMAKE_TARGET  = Yadif Deinterlace
DESTDIR        = "Yadif Deinterlace.ofx.bundle\Contents\Win64\" #avoid trailing-slash linebreak
TARGET         = "Yadif Deinterlace.dll"
DESTDIR_TARGET = "Yadif Deinterlace.ofx.bundle\Contents\Win64\Yadif Deinterlace.dll"

####### Implicit rules

.SUFFIXES: .c .cpp .cc .cxx

{..\Library}.cpp{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{..\Library}.cc{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{..\Library}.cxx{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{..\Library}.c{tmp64\}.obj::
	$(CC) -c $(CFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{.}.cpp{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{.}.cc{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{.}.cxx{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{.}.c{tmp64\}.obj::
	$(CC) -c $(CFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{tmp64}.cpp{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{tmp64}.cc{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{tmp64}.cxx{tmp64\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

{tmp64}.c{tmp64\}.obj::
	$(CC) -c $(CFLAGS) $(INCPATH) -Fotmp64\ @<<
	$<
<<

####### Build rules

first: all
all: Makefile64 $(DESTDIR) $(DESTDIR_TARGET)

$(DESTDIR):
	if not exist $(DESTDIR) mkdir $(DESTDIR)
	if not exist tmp64 mkdir tmp64

$(DESTDIR_TARGET):  $(OBJECTS) 
	$(LINK) $(LFLAGS) /OUT:$(DESTDIR_TARGET) @<< 
	  $(OBJECTS) $(LIBS)
<<
	mt.exe -nologo -manifest "tmp64\Yadif Deinterlace.intermediate.manifest" -outputresource:$(DESTDIR_TARGET);2
	
	del "Yadif Deinterlace.ofx.bundle\Contents\Win64\Yadif Deinterlace.lib" "Yadif Deinterlace.ofx.bundle\Contents\Win64\Yadif Deinterlace.exp" 
	

####### Compile

tmp64\yadifdeint.obj: yadifdeint.cpp 

tmp64\ofxsCore.obj: ..\Library\ofxsCore.cpp ..\Library\ofxsSupportPrivate.h

tmp64\ofxsImageEffect.obj: ..\Library\ofxsImageEffect.cpp ..\Library\ofxsSupportPrivate.h

tmp64\ofxsInteract.obj: ..\Library\ofxsInteract.cpp ..\Library\ofxsSupportPrivate.h

tmp64\ofxsLog.obj: ..\Library\ofxsLog.cpp 

tmp64\ofxsMultiThread.obj: ..\Library\ofxsMultiThread.cpp ..\Library\ofxsSupportPrivate.h

tmp64\ofxsParams.obj: ..\Library\ofxsParams.cpp ..\Library\ofxsSupportPrivate.h

tmp64\ofxsProperty.obj: ..\Library\ofxsProperty.cpp ..\Library\ofxsSupportPrivate.h

tmp64\ofxsPropertyValidation.obj: ..\Library\ofxsPropertyValidation.cpp ..\Library\ofxsSupportPrivate.h

