view Makefile.win @ 31:3b0546fa0d74

Add documentation in alternative formats to HTML.
author David Barts <davidb@stashtea.com>
date Sat, 18 Apr 2020 09:08:23 -0700
parents cd2ca4727b7f
children 4076f1bbf21d
line wrap: on
line source

CXX = cl
CXXFLAGS = /nologo /I"$(JRE_HOME)\include" /I"$(JRE_HOME)\include\win32" \
    /I"$(EXIV2_HOME)\include" /I"$(EXIV2_HOME)\build" /EHsc
NDIR = src\name\blackcap\exifwasher\exiv2
BDIR = src\name\blackcap\exifwasher\binaries\windows
LD = link
LDFLAGS = /NOLOGO /DLL /LIBPATH:"$(EXIV2_HOME)\lib" /DEFAULTLIB:exiv2

.PHONY: all checkenv

all: checkenv $(BDIR)\jni.dll $(BDIR)\exiv2.dll

checkenv:
	@checkenv JRE_HOME EXIV2_HOME

$(NDIR)\native.obj: $(NDIR)\native.cpp
	$(CXX) $(CXXFLAGS) /c /Fo:"$@" "$?"

$(BDIR)\jni.dll: $(NDIR)\native.obj
	if not exist "$(BDIR)" md "$(BDIR)"
	$(LD) $(LDFLAGS) /OUT:"$@" "$?"

$(BDIR)\exiv2.dll: "$(EXIV2_HOME)\bin\exiv2.dll"
	copy/y/b $? $@