Hi all,

I am trying to port OpenSSL into EFI and I created a EFI makefile based
on the file information in ms/nt.mak However when I try to run my
makefile using the "nmake -a openssl.mak" command I get the following
error:

makefile(20) : fatal error U1001: syntax error : illegal character '{'
in macro
Stop.

I do not see any "{" in my makefile. I am using the EFI Toolkit 2.0.0.1
library. Here is the makefile I am using to build it, any idea what is
happening?


------------------------------------------------------------------------
----------------------------------------

#
# Include sdk.env environment
#

!include $(SDK_INSTALL_DIR)\build\$(SDK_BUILD_ENV)\sdk.env

#
# Set the base output name
#

BASE_NAME = openssl_port

#
# Globals needed by master.mak
#

TARGET_LIB = $(BASE_NAME)
SOURCE_DIR = $(PROJECT_ROOT)\THIRD_PARTY\$(BASE_NAME)
BUILD_DIR =
$(PROJECT_ROOT)\Build\$(SDK_BUILD_ENV)\THIRD_PARTY\$(BASE_NAME)

#
# Additional compiler flags
#

C_FLAGS = /D __STDC__ $(C_FLAGS)

#
# Include paths
#

!include $(SDK_INSTALL_DIR)\include\$(EFI_INC_DIR)\makefile.hdr
INC = -I $(SDK_INSTALL_DIR)\include\$(EFI_INC_DIR) \
      -I $(SDK_INSTALL_DIR)\include\$(EFI_INC_DIR)\$(PROCESSOR) $(INC) \
      -I $(SDK_INSTALL_DIR)\include \
      -I $(SDK_INSTALL_DIR)\include\bsd\sys

!include $(SDK_INSTALL_DIR)\include\bsd\makefile.hdr
INC = -I $(SDK_INSTALL_DIR)\include\bsd $(INC)

#!include $(SOURCE_DIR)\makefile.hdr
INC = -I . $(INC)
INC = -I .\openssl $(INC)

#
# Default targets
#

all : dirs $(OBJECTS)

#
# Library object files
#

OBJECTS = $(OBJECTS)\
        $(BUILD_DIR)\cryptlib.obj\
        $(BUILD_DIR)\mem.obj $(BUILD_DIR)\mem_clr.obj 
         [blahblah]

#
# Source file dependencies
#

$(BUILD_DIR)\cryptlib.obj        : $(*B).c $(INC_DEPS)
$(BUILD_DIR)\mem.obj        : $(*B).c $(INC_DEPS)
[blahblah]

#
# Handoff to Master.Mak
#

!include $(SDK_INSTALL_DIR)\build\master.mak

--------------------------------------------------------------------


Regards,
Sourjo

Reply via email to