Update distclean rule in cryptest.nmake
parent
7428fa82ab
commit
dbec62cdb2
|
|
@ -246,13 +246,11 @@ cryptopp.dll cryptopp.lib cryptopp.exp: $(LIB_OBJS) cryptopp.def
|
||||||
$(LD) $(LDFLAGS) /DLL /DEF:cryptopp.def /IGNORE:4102 $(LIB_OBJS) $(LDLIBS) /out:cryptopp.dll
|
$(LD) $(LDFLAGS) /DLL /DEF:cryptopp.def /IGNORE:4102 $(LIB_OBJS) $(LDLIBS) /out:cryptopp.dll
|
||||||
|
|
||||||
clean ::
|
clean ::
|
||||||
$(RM) /F /Q cryptest.exe cryptlib.lib pch.pch pch.obj 2>null
|
$(RM) /F /Q cryptest.exe cryptest.lib cryptest.exp cryptlib.lib pch.pch 2>null
|
||||||
clean ::
|
clean ::
|
||||||
$(RM) /F /Q cryptopp.dll cryptopp.lib cryptopp.exp cryptopp.def 2>null
|
$(RM) /F /Q cryptopp.dll cryptopp.lib cryptopp.exp cryptopp.def 2>null
|
||||||
clean ::
|
clean ::
|
||||||
$(RM) /F /Q $(LIB_OBJS) $(ASM_OBJS) 2>null
|
$(RM) /F /Q pch.obj $(LIB_OBJS) $(ASM_OBJS) $(TEST_OBJS) *.pdb 2>null
|
||||||
clean ::
|
|
||||||
$(RM) /F /Q $(TEST_OBJS) *.pdb 2>null
|
|
||||||
|
|
||||||
distclean :: clean
|
distclean :: clean
|
||||||
!IF EXIST ($(USERNAME).sdf)
|
!IF EXIST ($(USERNAME).sdf)
|
||||||
|
|
|
||||||
4
test.cpp
4
test.cpp
|
|
@ -491,7 +491,6 @@ void SetArgvPathHint(const char* argv0, std::string& pathHint)
|
||||||
pathHint = getexecname();
|
pathHint = getexecname();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(UNIX_PATH_FAMILY)
|
|
||||||
#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 700)
|
#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 700)
|
||||||
char* resolved = realpath (pathHint.c_str(), NULLPTR);
|
char* resolved = realpath (pathHint.c_str(), NULLPTR);
|
||||||
if (resolved != NULLPTR)
|
if (resolved != NULLPTR)
|
||||||
|
|
@ -499,7 +498,7 @@ void SetArgvPathHint(const char* argv0, std::string& pathHint)
|
||||||
pathHint = resolved;
|
pathHint = resolved;
|
||||||
std::free(resolved);
|
std::free(resolved);
|
||||||
}
|
}
|
||||||
# else
|
#elif defined(UNIX_PATH_FAMILY)
|
||||||
std::string resolved(path_max, (char)0);
|
std::string resolved(path_max, (char)0);
|
||||||
char* r = realpath (pathHint.c_str(), &resolved[0]);
|
char* r = realpath (pathHint.c_str(), &resolved[0]);
|
||||||
if (r != NULLPTR)
|
if (r != NULLPTR)
|
||||||
|
|
@ -509,6 +508,7 @@ void SetArgvPathHint(const char* argv0, std::string& pathHint)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(UNIX_PATH_FAMILY)
|
||||||
// Is it possible for realpath to fail?
|
// Is it possible for realpath to fail?
|
||||||
struct stat buf; int x;
|
struct stat buf; int x;
|
||||||
x = lstat(pathHint.c_str(), &buf);
|
x = lstat(pathHint.c_str(), &buf);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue