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
|
|
11 all: checkenv $(BDIR)\jni.dll $(BDIR)\exiv2.dll
|
|
12
|
|
13 checkenv:
|
|
14 @checkenv JRE_HOME EXIV2_HOME
|
|
15
|
|
16 $(NDIR)\native.obj: $(NDIR)\native.cpp
|
|
17 $(CXX) $(CXXFLAGS) /c /Fo:"$@" "$?"
|
|
18
|
|
19 $(BDIR)\jni.dll: $(NDIR)\native.obj
|
|
20 if not exist "$(BDIR)" md "$(BDIR)"
|
|
21 $(LD) $(LDFLAGS) /OUT:"$@" "$?"
|
|
22
|
|
23 $(BDIR)\exiv2.dll: "$(EXIV2_HOME)\bin\exiv2.dll"
|
|
24 copy/y/b $? $@
|