wolfssl-examples/project1/unsecure/Makefile

21 lines
375 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-udp.c
$(CC) -Wall -o server server-udp.c -I ../include -lcyassl
.PHONY: clean
clean:
-rm -f *.o server