1 # Use config.mak to override any of the following variables.
2 # Do not make changes here.
6 mandir = $(prefix)/share
/man
8 SRCS
:= $(sort $(wildcard *.c
))
11 CFLAGS
+= -Wall
-D_GNU_SOURCE
-pipe
17 install: hexedit hexedit
.1
18 install -D
-m
755 hexedit
$(DESTDIR
)$(bindir)/hexedit
19 install -D
-m
644 hexedit
.1 $(DESTDIR
)$(mandir)/man1
/hexedit
.1
26 $(CC
) $(LDFLAGS
) $(OBJS
) -o hexedit
-lncurses
29 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
31 .PHONY
: all clean install