All,Forgive me post some confuse here hope to get some help for better understanding.
I am trying to compile the OpenSSL src in the VS 2012. Everything walked through well. But just have some confused which is
- running the commands
nmake -f ms\ntdll.makandnmake -f ms\ntdll.mak install.
In my understanding . -f means refer to a makefile.
install means a target.
- What is the target of makefile?
My understanding is just a set of dos command to be executed. I can see code in the ntdll.mak.
install: all
$(MKDIR) "$(INSTALLTOP)"
$(MKDIR) "$(INSTALLTOP)\bin"
$(MKDIR) "$(INSTALLTOP)\include"
$(MKDIR) "$(INSTALLTOP)\include\openssl"
$(MKDIR) "$(INSTALLTOP)\lib"
$(CP) "$(INCO_D)\*.[ch]" "$(INSTALLTOP)\include\openssl"
$(CP) "$(BIN_D)\$(E_EXE).exe $(INSTALLTOP)\bin"
$(MKDIR) "$(OPENSSLDIR)"
$(CP) apps\openssl.cnf "$(OPENSSLDIR)"
$(CP) "$(O_SSL)" "$(INSTALLTOP)\bin"
$(CP) "$(O_CRYPTO)" "$(INSTALLTOP)\bin"
$(CP) "$(L_SSL)" "$(INSTALLTOP)\lib"
$(CP) "$(L_CRYPTO)" "$(INSTALLTOP)\lib"
$(MKDIR) "$(INSTALLTOP)\lib\engines"
$(CP) "$(E_SHLIB)" "$(INSTALLTOP)\lib\engines"
test: $(T_EXE)
cd $(BIN_D)
..\ms\test
- why run
nmaketwice? my understanding previous one is just build. second one is build for a installation package likemsietc. Thanks.