Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 400 Bytes

Makefile.org

File metadata and controls

23 lines (17 loc) · 400 Bytes

CFLAGS += -std=c99 -Wall -Wextra -Werror -O2 -I.

DIRS = example SRC = coap.c coap_dump.c coap_parse.c example/resources.c example/main.c OBJ = $(SRC:%.c=%.o) DEPS = $(SRC:%.c=%.d) EXEC = coap

all: $(EXEC)

-include $(DEPS)

$(EXEC): $(OBJ) @$(CC) $(CFLAGS) -o $@ $^

%.o: %.c %.d @$(CC) -c $(CFLAGS) -o $@ $<

%.d: %.c @$(CC) -MM $(CFLAGS) $&lt; > $@

clean: @$(RM) $(EXEC) $(OBJ) $(DEPS)