wolfssl-examples/project1/dtls_secured_nonblocking_mu.../Makefile

22 lines
431 B
Makefile

DEPS = ../include/unp.h
CC=gcc
CFLAGS=-Wall -I ../include -DCYASSL_DTLS
OBJ = echoserver.o
#if you are on a sunOS (System V) machine, you'll need to uncomment
#the next line.
#LIBS=-lsocket
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
all: server
server: server-dtls-nonblocking-threaded.c
$(CC) -Wall -DCYASSL_DTLS -o server server-dtls-nonblocking-threaded.c -lcyassl -lpthread
.PHONY: clean
clean:
-rm -f *.o server