35 lines
911 B
Makefile
35 lines
911 B
Makefile
CC=gcc
|
|
#if you installed wolfssl to an alternate location use CFLAGS and LIBS to
|
|
#control your build:
|
|
|
|
#EXAMPLE: set WOLF_INSTALL_DIR to point to your install location like so:
|
|
|
|
# WOLF_INSTALL_DIR=/Users/kalebhimes/work/testDir/wolf-install-dir-for-testing
|
|
|
|
#END EXAMPLE
|
|
|
|
WOLF_INSTALL_DIR=/usr/local
|
|
CFLAGS=-I$(WOLF_INSTALL_DIR)/include -Wall
|
|
LIBS=-L$(WOLF_INSTALL_DIR)/lib -lwolfssl
|
|
|
|
|
|
all:certgen_example csr_example csr_w_ed25519_example csr_sign
|
|
|
|
certgen_example:certgen_example.o
|
|
$(CC) -o $@ $^ $(CFLAGS) $(CPPFLAGS) $(LIBS)
|
|
|
|
csr_example:csr_example.o
|
|
$(CC) -o $@ $^ $(CFLAGS) $(CPPFLAGS) $(LIBS)
|
|
|
|
csr_w_ed25519_example:csr_w_ed25519_example.o
|
|
$(CC) -o $@ $^ $(CFLAGS) $(CPPFLAGS) $(LIBS)
|
|
|
|
csr_sign:csr_sign.o
|
|
$(CC) -o $@ $^ $(CFLAGS) $(CPPFLAGS) $(LIBS)
|
|
|
|
.PHONY: clean all
|
|
|
|
clean:
|
|
rm -f *.o certgen_example csr_example csr_w_ed25519_example csr_sign
|
|
rm -f newCert.*
|