3 CFLAGS := -O2 -Wextra -Wall
8 override CFLAGS += -std=gnu99
9 override LDLIBS += -lncurses
15 BINDIR = $(PREFIX)/bin
19 CSOURCES := $(wildcard *.c)
20 COBJECTS := $(CSOURCES:.c=.o)
21 SOURCES := $(sort $(CSOURCES))
22 OBJECTS := $(sort $(COBJECTS))
28 $(CC) -c $(CPPFLAGS) $(CFLAGS) $^ -o $@
31 $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
35 $(RM) -f $(EXE) *.o *~ *.bak *.orig *.rej
39 $(INSTALL) -d $(DESTDIR)$(BINDIR)
40 $(INSTALL) -c $(EXE) $(DESTDIR)$(BINDIR)