@@ -387,12 +387,14 @@ tests/pkcs_1_oaep_test.o tests/pkcs_1_pss_test.o tests/pkcs_1_test.o tests/prng_
387387tests/rotate_test.o tests/rsa_test.o tests/store_test.o tests/test.o
388388
389389# The following headers will be installed by "make install"
390- HEADERS =src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
390+ HEADERS_PUB =src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
391391src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \
392392src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \
393393src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \
394394src/headers/tomcrypt_prng.h
395395
396+ HEADERS =$(HEADERS_PUB ) src/headers/tomcrypt_private.h
397+
396398# These are the rules to make certain object files.
397399src/ciphers/aes/aes.o : src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
398400src/ciphers/twofish/twofish.o : src/ciphers/twofish/twofish.c src/ciphers/twofish/twofish_tab.c
@@ -436,7 +438,7 @@ INSTALL_OPTS ?= -m 644
436438 install -p -d $(DESTDIR )$(INCPATH )
437439 install -p -d $(DESTDIR )$(LIBPATH )
438440 $(INSTALL_CMD ) -p $(INSTALL_OPTS ) $(LIBNAME ) $(DESTDIR )$(LIBPATH ) /$(LIBNAME )
439- install -p -m 644 $(HEADERS ) $(DESTDIR )$(INCPATH )
441+ install -p -m 644 $(HEADERS_PUB ) $(DESTDIR )$(INCPATH )
440442
441443$(DESTDIR )$(BINPATH ) :
442444 install -p -d $(DESTDIR )$(BINPATH )
@@ -454,7 +456,7 @@ install_test: $(call print-help,install_test,Installs the self-test binary) test
454456install_hooks : $(call print-help,install_hooks,Installs the git hooks)
455457 for s in ` ls hooks/` ; do ln -s ../../hooks/$$ s .git/hooks/$$ s; done
456458
457- HEADER_FILES =$(notdir $(HEADERS ) )
459+ HEADER_FILES =$(notdir $(HEADERS_PUB ) )
458460.common_uninstall :
459461 $(UNINSTALL_CMD ) $(DESTDIR )$(LIBPATH ) /$(LIBNAME )
460462 rm $(HEADER_FILES:%=$(DESTDIR )$(INCPATH ) /% )
0 commit comments