22
|
1 CXX = cl
|
|
2 CXXFLAGS = /nologo /I"$(JRE_HOME)\include" /I"$(JRE_HOME)\include\win32" \
|
|
3 /I"$(EXIV2_HOME)\include" /I"$(EXIV2_HOME)\build" /EHsc
|
|
4 NDIR = src\name\blackcap\exifwasher\exiv2
|
|
5 BDIR = src\name\blackcap\exifwasher\binaries\windows
|
|
6 LD = link
|
|
7 LDFLAGS = /NOLOGO /DLL /LIBPATH:"$(EXIV2_HOME)\lib" /DEFAULTLIB:exiv2
|
|
8
|
|
9 .PHONY: all checkenv
|
|
10
|
42
|
11 all: mkdirs checkenv $(BDIR)\jni.dll $(BDIR)\exiv2.dll
|
|
12
|
|
13 mkdirs:
|
|
14 @if not exist "$(BDIR)" md "$(BDIR)"
|
22
|
15
|
|
16 checkenv:
|
|
17 @checkenv JRE_HOME EXIV2_HOME
|
|
18
|
|
19 $(NDIR)\native.obj: $(NDIR)\native.cpp
|
|
20 $(CXX) $(CXXFLAGS) /c /Fo:"$@" "$?"
|
|
21
|
|
22 $(BDIR)\jni.dll: $(NDIR)\native.obj
|
|
23 $(LD) $(LDFLAGS) /OUT:"$@" "$?"
|
|
24
|
|
25 $(BDIR)\exiv2.dll: "$(EXIV2_HOME)\bin\exiv2.dll"
|
|
26 copy/y/b $? $@
|