annotate Makefile.win @ 38:d794ef80f9b0

Remove more deadwood.
author David Barts <n5jrn@me.com>
date Fri, 01 May 2020 11:52:46 -0700
parents cd2ca4727b7f
children 4076f1bbf21d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
1 CXX = cl
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
2 CXXFLAGS = /nologo /I"$(JRE_HOME)\include" /I"$(JRE_HOME)\include\win32" \
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
3 /I"$(EXIV2_HOME)\include" /I"$(EXIV2_HOME)\build" /EHsc
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
4 NDIR = src\name\blackcap\exifwasher\exiv2
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
5 BDIR = src\name\blackcap\exifwasher\binaries\windows
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
6 LD = link
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
7 LDFLAGS = /NOLOGO /DLL /LIBPATH:"$(EXIV2_HOME)\lib" /DEFAULTLIB:exiv2
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
8
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
9 .PHONY: all checkenv
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
10
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
11 all: checkenv $(BDIR)\jni.dll $(BDIR)\exiv2.dll
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
12
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
13 checkenv:
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
14 @checkenv JRE_HOME EXIV2_HOME
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
15
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
16 $(NDIR)\native.obj: $(NDIR)\native.cpp
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
17 $(CXX) $(CXXFLAGS) /c /Fo:"$@" "$?"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
18
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
19 $(BDIR)\jni.dll: $(NDIR)\native.obj
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
20 if not exist "$(BDIR)" md "$(BDIR)"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
21 $(LD) $(LDFLAGS) /OUT:"$@" "$?"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
22
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
23 $(BDIR)\exiv2.dll: "$(EXIV2_HOME)\bin\exiv2.dll"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
24 copy/y/b $? $@