52 lines
1.1 KiB
Makefile
Executable File
52 lines
1.1 KiB
Makefile
Executable File
#####################################################################
|
|
#
|
|
# Created by MIDE 17:06:54 07/30/02
|
|
#
|
|
#####################################################################
|
|
|
|
#CROSS = rsdk-linux-
|
|
OUTDIR = .
|
|
OUTLIBDIR = .
|
|
OUTNAME = libcrypto.a
|
|
#CC = $(CROSS_COMPILE)gcc
|
|
#AS = $(CROSS_COMPILE)as
|
|
#AR = $(CROSS_COMPILE)ar
|
|
#LD = $(CROSS_COMPILE)ld
|
|
RM = rm
|
|
#STRIP = $(CROSS_COMPILE)strip
|
|
TOOLLDFLAGS = -n
|
|
#OPT = -G 0
|
|
TEXT =
|
|
INCLUDES = -I./crypto/include -I./crypto/include/openssl -I./
|
|
WARNING_FLAG = -Wall
|
|
|
|
CFLAGS += $(WARNING_FLAG) -Os $(OPT) \
|
|
-DOPENSSL_FIPS -D__linux__ -DRSDK_BUILT -DOPENSSL_NO_SPEED -DOPENSSL_THREADS -D_REENTRANT \
|
|
-DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DTERMIO \
|
|
-fomit-frame-pointer \
|
|
$(INCLUDES)
|
|
|
|
ifeq ($(BIG_ENDIAN),y)
|
|
CFLAGS += -DB_ENDIAN
|
|
else
|
|
CFLAGS += -DL_ENDIAN
|
|
endif
|
|
|
|
ifeq ($(SLINK),1)
|
|
CFLAGS += -ffunction-sections -fdata-sections
|
|
LDFLAGS += --static -Wl,--gc-sections
|
|
endif
|
|
|
|
CRT =
|
|
|
|
LIBS =
|
|
|
|
all: $(OUTLIBDIR)/$(OUTNAME)
|
|
|
|
include Files.mk
|
|
|
|
$(OUTLIBDIR)/$(OUTNAME) : $(OBJFILES)
|
|
$(AR) rcs $(OUTLIBDIR)/$(OUTNAME) $(OBJFILES)
|
|
|
|
compile : $(OBJFILES)
|