annotate Makefile.win @ 44:6999afa6fff3

Update Building instructions; minor build system bug fixes.
author David Barts <davidb@stashtea.com>
date Sun, 03 May 2020 16:15:10 -0700
parents 4076f1bbf21d
children
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
42
4076f1bbf21d Got ant winapp working!
davidb
parents: 22
diff changeset
11 all: mkdirs checkenv $(BDIR)\jni.dll $(BDIR)\exiv2.dll
4076f1bbf21d Got ant winapp working!
davidb
parents: 22
diff changeset
12
4076f1bbf21d Got ant winapp working!
davidb
parents: 22
diff changeset
13 mkdirs:
4076f1bbf21d Got ant winapp working!
davidb
parents: 22
diff changeset
14 @if not exist "$(BDIR)" md "$(BDIR)"
22
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
15
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
16 checkenv:
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
17 @checkenv JRE_HOME EXIV2_HOME
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
18
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
19 $(NDIR)\native.obj: $(NDIR)\native.cpp
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
20 $(CXX) $(CXXFLAGS) /c /Fo:"$@" "$?"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
21
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
22 $(BDIR)\jni.dll: $(NDIR)\native.obj
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
23 $(LD) $(LDFLAGS) /OUT:"$@" "$?"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
24
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
25 $(BDIR)\exiv2.dll: "$(EXIV2_HOME)\bin\exiv2.dll"
cd2ca4727b7f Builds under Windows.
davidb
parents:
diff changeset
26 copy/y/b $? $@