Files
libcoap/examples/Makefile
T

27 lines
406 B
Makefile

SOURCES:= tiny.c
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
CFLAGS:=-g -O2 -Wall -std=c99 -pedantic
DISTDIR?=something
FILES:=Makefile $(SOURCES)
LDFLAGS:=-L.. -lcoap
# add this for Solaris
#LDFLAGS+=-lsocket -lnsl
.PHONY: clean distclean
all: tiny
tiny: tiny.c
$(CC) -o $@ $< $(LDFLAGS)
clean:
@rm -f tiny $(OBJECTS)
distclean: clean
@rm -rf $(DISTDIR)
@rm -f *~
dist:
cp $(FILES) $(DISTDIR)