Skip to content

Commit

Permalink
Makefile rename SRC to SSL, add osx lib
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Sep 20, 2024
1 parent e124982 commit 6af9ecf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions libs/ssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ CFLAGS = -Wall -O3 -std=c11 -m64 -fPIC -pthread -fno-omit-frame-pointer
CFLAGS += -fvisibility=hidden -I. -I${INCLUDES_BASE_DIR}/mbedtls/include -I ../../src
LFLAGS = -L../.. -lhl

SRC = \
UNAME := $(shell uname)
ifeq ($(UNAME),Darwin)
CFLAGS += -framework Security -framework CoreFoundation
endif

SSL = \
${INCLUDES_BASE_DIR}/mbedtls/library/aes.o \
${INCLUDES_BASE_DIR}/mbedtls/library/aesce.o \
${INCLUDES_BASE_DIR}/mbedtls/library/aesni.o \
Expand Down Expand Up @@ -116,11 +121,11 @@ SRC = \

all: ssl.hdll

ssl.hdll: ${SRC}
ssl.hdll: ${SSL}
${CC} ${CFLAGS} -shared -o $@ $^ ${LFLAGS}

%.o: %.c
${CC} ${CFLAGS} -o $@ -c $<

clean:
rm -f ${SRC} *.hdll
rm -f ${SSL} *.hdll

0 comments on commit 6af9ecf

Please sign in to comment.