mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-28 19:13:28 +00:00
Require unix-utils in path for windows make
This commit is contained in:
parent
d72704b0d5
commit
5d46cca09a
@ -18,6 +18,9 @@ Changes
|
|||||||
"minimize" others (eg use stddef.h if only size_t is needed).
|
"minimize" others (eg use stddef.h if only size_t is needed).
|
||||||
* Change #include lines in test files to use double quotes instead of angle
|
* Change #include lines in test files to use double quotes instead of angle
|
||||||
brackets for uniformity with the rest of the code.
|
brackets for uniformity with the rest of the code.
|
||||||
|
* Building with 'make' on windows now requires Unix utilities in the PATH
|
||||||
|
as well as a Unix shell. This enables more features such as the 'check'
|
||||||
|
target.
|
||||||
|
|
||||||
= mbed TLS 1.3.10 released 2015-02-09
|
= mbed TLS 1.3.10 released 2015-02-09
|
||||||
Security
|
Security
|
||||||
|
@ -35,6 +35,12 @@ In order to run the tests, enter::
|
|||||||
|
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
If you're building on windows using mingw, msys, or some similar environment, you should define the WINDOWS variable (and possibly the CC variable too), eg::
|
||||||
|
|
||||||
|
make CC=gcc WINDOWS=1
|
||||||
|
|
||||||
|
You need to make sure the usual Unix utilities such as `ln` and `rm` are in your PATH and that make has access to a Unix shell.
|
||||||
|
|
||||||
Depending on your platform, you might run into some issues. Please check the Makefiles in *library/*, *programs/* and *tests/* for options to manually add or remove for specific platforms. You can also check `the mbed TLS Knowledge Base <https://polarssl.org/kb>`_ for articles on your platform or issue.
|
Depending on your platform, you might run into some issues. Please check the Makefiles in *library/*, *programs/* and *tests/* for options to manually add or remove for specific platforms. You can also check `the mbed TLS Knowledge Base <https://polarssl.org/kb>`_ for articles on your platform or issue.
|
||||||
|
|
||||||
In case you find that you need to do something else as well, please let us know what, so we can add it to the KB.
|
In case you find that you need to do something else as well, please let us know what, so we can add it to the KB.
|
||||||
|
@ -77,11 +77,7 @@ shared: libpolarssl.so
|
|||||||
|
|
||||||
libpolarssl.a: libmbedtls.a
|
libpolarssl.a: libmbedtls.a
|
||||||
echo " LN $@ -> $?"
|
echo " LN $@ -> $?"
|
||||||
ifndef WINDOWS
|
|
||||||
ln -sf $? $@
|
ln -sf $? $@
|
||||||
else
|
|
||||||
copy /y /b $? $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
libmbedtls.a: $(OBJS)
|
libmbedtls.a: $(OBJS)
|
||||||
echo " AR $@"
|
echo " AR $@"
|
||||||
@ -91,11 +87,7 @@ libmbedtls.a: $(OBJS)
|
|||||||
|
|
||||||
libpolarssl.so: libmbedtls.so
|
libpolarssl.so: libmbedtls.so
|
||||||
echo " LN $@ -> $?"
|
echo " LN $@ -> $?"
|
||||||
ifndef WINDOWS
|
|
||||||
ln -sf $? $@
|
ln -sf $? $@
|
||||||
else
|
|
||||||
copy /y /b $? $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
libmbedtls.${DLEXT}: $(OBJS)
|
libmbedtls.${DLEXT}: $(OBJS)
|
||||||
echo " LD $@"
|
echo " LD $@"
|
||||||
@ -118,9 +110,4 @@ libmbedtls.dll: $(OBJS)
|
|||||||
$(CC) $(CFLAGS) $(OFLAGS) -c $<
|
$(CC) $(CFLAGS) $(OFLAGS) -c $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifndef WINDOWS
|
|
||||||
rm -f *.o libpolarssl.* libmbedtls.*
|
rm -f *.o libpolarssl.* libmbedtls.*
|
||||||
endif
|
|
||||||
ifdef WINDOWS
|
|
||||||
del /Q /F *.o libpolarssl.* libmbedtls.*
|
|
||||||
endif
|
|
||||||
|
@ -242,12 +242,7 @@ x509/cert_req: x509/cert_req.c ../library/libmbedtls.a
|
|||||||
$(CC) $(CFLAGS) $(OFLAGS) x509/cert_req.c $(LDFLAGS) -o $@
|
$(CC) $(CFLAGS) $(OFLAGS) x509/cert_req.c $(LDFLAGS) -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifndef WINDOWS
|
|
||||||
rm -f $(APPS)
|
rm -f $(APPS)
|
||||||
endif
|
|
||||||
ifdef WINDOWS
|
|
||||||
del /S /Q /F *.o *.exe
|
|
||||||
endif
|
|
||||||
|
|
||||||
list:
|
list:
|
||||||
echo $(APPS)
|
echo $(APPS)
|
||||||
|
@ -402,15 +402,9 @@ test_suite_version: test_suite_version.c $(DEP)
|
|||||||
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
|
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifndef WINDOWS
|
|
||||||
rm -f $(APPS) *.c
|
rm -f $(APPS) *.c
|
||||||
endif
|
|
||||||
ifdef WINDOWS
|
|
||||||
del /Q /F *.c *.exe
|
|
||||||
endif
|
|
||||||
|
|
||||||
check: $(APPS)
|
check: $(APPS)
|
||||||
ifndef WINDOWS
|
|
||||||
echo "Running checks (Success if all tests PASSED)"
|
echo "Running checks (Success if all tests PASSED)"
|
||||||
RETURN=0; \
|
RETURN=0; \
|
||||||
for i in $(APPS); \
|
for i in $(APPS); \
|
||||||
@ -427,4 +421,3 @@ ifndef WINDOWS
|
|||||||
echo ""; \
|
echo ""; \
|
||||||
done; \
|
done; \
|
||||||
if [ "$$RETURN" -eq 1 ]; then exit 1; fi
|
if [ "$$RETURN" -eq 1 ]; then exit 1; fi
|
||||||
endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user