1CFLAGS += -std=c99 -D_POSIX_C_SOURCE=200809L
2CFLAGS += -Wpedantic -Wall -Wextra \
3 -Wmissing-prototypes -Wpointer-arith \
4 -Wstrict-prototypes -Wshadow -Wformat-nonliteral
5
6LDLIBS += -ledit -lncurses
7
8example: example.o complete.o
9%.o: %.c complete.h
10 $(CC) $(CPPFLAGS) $(CFLAGS) -c $<