Skip to content

Commit b632bb5

Browse files
committed
Cleanup build
1 parent e6189cc commit b632bb5

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

dtls-mcast/Makefile

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
11
# DTLS Multicast Examples Makefile
22
CC = gcc
33

4-
# Path to wolfSSL source directory (adjust as needed)
5-
WOLFSSL_DIR = ../../wolfssl
6-
7-
CFLAGS = -Wall -Wextra -I$(WOLFSSL_DIR) -I$(WOLFSSL_DIR)/wolfssl
8-
LIBS = $(WOLFSSL_DIR)/src/.libs/libwolfssl.a -lm -lpthread
9-
10-
# option variables
11-
DEBUG_FLAGS = -g3 -DDEBUG -O0
12-
OPTIMIZE = -Os
13-
14-
# Options - uncomment DEBUG_FLAGS for debugging
15-
#CFLAGS+=$(DEBUG_FLAGS)
16-
CFLAGS+=$(OPTIMIZE)
17-
184
# build targets
195
TARGETS = mcast-peer
206

21-
.PHONY: clean all debug
22-
237
all: $(TARGETS)
248

25-
debug: CFLAGS+=$(DEBUG_FLAGS)
26-
debug: all
27-
289
mcast-peer: mcast-peer.c
29-
$(CC) -o $@ $< $(CFLAGS) $(LIBS)
10+
$(CC) -o $@ $< -L/usr/local/lib -lwolfssl
3011

3112
clean:
3213
rm -f $(TARGETS)

0 commit comments

Comments
 (0)