Skip to content

Commit e1d9831

Browse files
committed
Give the examples Makefiles a consistent wolfSSL prefix
1 parent 117b793 commit e1d9831

20 files changed

Lines changed: 82 additions & 29 deletions

File tree

SGX_Linux/sgx_t.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Wolfssl_Enclave_C_Flags := $(Flags_Just_For_C) $(Common_C_Cpp_Flags) $(Wolfssl_C
8686
Wolfssl_Enclave_Link_Flags := $(SGX_COMMON_CFLAGS) -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L$(SGX_LIBRARY_PATH) \
8787
-L$(SGX_WOLFSSL_LIB) -lwolfssl.sgx.static.lib \
8888
-Wl,--whole-archive -l$(Trts_Library_Name) -Wl,--no-whole-archive \
89-
-Wl,--start-group -lsgx_tstdc -lsgx_tstdcxx -l$(Crypto_Library_Name) -l$(Service_Library_Name) -Wl,--end-group \
89+
-Wl,--start-group -lsgx_tstdc -lsgx_tcxx -l$(Crypto_Library_Name) -l$(Service_Library_Name) -Wl,--end-group \
9090
-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
9191
-Wl,-pie,-eenclave_entry -Wl,--export-dynamic \
9292
-Wl,--defsym,__ImageBase=0 \

X9.146/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC=gcc
1+
# X9.146 Examples Makefile
22
#if you installed wolfssl to an alternate location use CFLAGS and LIBS to
33
#control your build:
44

can-bus/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
CC=gcc
2-
LIBS=-lwolfssl
3-
CFLAGS=-g -Wno-cpp -Wall -Wextra -Wpedantic -Wdeclaration-after-statement
2+
WOLFSSL_INSTALL_DIR=/usr/local
3+
LIBS=-L$(WOLFSSL_INSTALL_DIR)/lib -lwolfssl
4+
CFLAGS=-g -Wno-cpp -Wall -Wextra -Wpedantic -Wdeclaration-after-statement -I$(WOLFSSL_INSTALL_DIR)/include
45

56
COMMON_OBJS=common.o
67
CLIENT_OBJS=client.o

certgen/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC=gcc
1+
# CertGen Examples Makefile
22
#if you installed wolfssl to an alternate location use CFLAGS and LIBS to
33
#control your build:
44

certmanager/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ openssl ocsp -port 22221 -ndays 365 \
8686
From the `wolfssl-examples/certmanager` directory:
8787

8888
```bash
89-
./certverify_crl_ocsp
89+
./certverify_ocsp
9090
```
9191

9292
### Expected Output

certvfy/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
CC=gcc -g
2-
CFLAGS=-Wall
3-
LIBS= -lwolfssl
2+
WOLFSSL_INSTALL_DIR=/usr/local
3+
CFLAGS=-Wall -I$(WOLFSSL_INSTALL_DIR)/include
4+
LIBS= -L$(WOLFSSL_INSTALL_DIR)/lib -lwolfssl
45

56
all: certvfy certsigvfy sigvfycert
67

crypto/keywrap/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CC=gcc
2+
CFLAGS=-Wall
3+
WOLFSSL_INSTALL_DIR=/usr/local
4+
CFLAGS+=-I$(WOLFSSL_INSTALL_DIR)/include
5+
LIBS=-L$(WOLFSSL_INSTALL_DIR)/lib -lwolfssl -lm
6+
7+
all: keywrap
8+
9+
keywrap: keywrap.o
10+
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
11+
12+
.PHONY: clean all
13+
14+
clean:
15+
rm -f *.o keywrap

ebpf/tls-uprobe-trace/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CC = gcc
22
CLANG = clang
3-
CFLAGS = -O2 -g -Wall
3+
WOLFSSL_INSTALL_DIR = /usr/local
4+
CFLAGS = -O2 -g -Wall -I$(WOLFSSL_INSTALL_DIR)/include
5+
WOLFSSL_LIBS = -L$(WOLFSSL_INSTALL_DIR)/lib -lwolfssl
46

57
# Auto-detect host arch, convert to BPF target name
68
UNAME_M := $(shell uname -m)
@@ -25,10 +27,10 @@ all: $(TARGETS)
2527

2628
# ===== TLS Programs =====
2729
client-tls: client-tls.c
28-
$(CC) $(CFLAGS) $< -o $@ -lwolfssl
30+
$(CC) $(CFLAGS) $< -o $@ $(WOLFSSL_LIBS)
2931

3032
server-tls: server-tls.c
31-
$(CC) $(CFLAGS) $< -o $@ -lwolfssl
33+
$(CC) $(CFLAGS) $< -o $@ $(WOLFSSL_LIBS)
3234

3335
# ===== eBPF Program =====
3436
wolfssl_uprobe.bpf.o: wolfssl_uprobe.bpf.c

embedded/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# TLS Examples Makefile
1+
# Embedded Examples Makefile
22
CC = gcc
33
WOLFSSL_INSTALL_DIR = /usr/local
44
CFLAGS = -Wall -I$(WOLFSSL_INSTALL_DIR)/include
@@ -22,9 +22,7 @@ LIBS+=$(DYN_LIB)
2222
# build targets
2323
SRC=$(wildcard *.c)
2424
TARGETS=$(patsubst %.c, %, $(SRC))
25-
LINUX_SPECIFIC=client-tls-perf \
26-
server-tls-epoll-perf \
27-
server-tls-epoll-threaded
25+
LINUX_SPECIFIC=
2826

2927

3028
# Intel QuickAssist

pk/srp/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC=gcc
2-
WOLFSSL_INSTALL_DIR=/usr/local/lib
2+
WOLFSSL_INSTALL_DIR=/usr/local
33
CFLAGS=-Wall -I$(WOLFSSL_INSTALL_DIR)/include -g
44
#LIBS= -lwolfssl -lm
55
LIBS= -L$(WOLFSSL_INSTALL_DIR)/lib -lwolfssl -lm

0 commit comments

Comments
 (0)