remove line-end witespace noise
[rofl0r-hexedit0r.git] / Makefile
blob08517d6ac7a4ac63c4aafc705829f0f460193d6f
1 # Use config.mak to override any of the following variables.
2 # Do not make changes here.
4 prefix = /usr/local
5 bindir = $(prefix)/bin
6 mandir = $(prefix)/share/man
8 SRCS := $(sort $(wildcard *.c))
9 OBJS := $(SRCS:.c=.o)
11 CFLAGS += -Wall -D_GNU_SOURCE -pipe
13 -include config.mak
15 all: hexedit
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
21 clean:
22 rm -f hexedit
23 rm -f $(OBJS)
25 hexedit: $(OBJS)
26 $(CC) $(LDFLAGS) $(OBJS) -o hexedit -lncurses
28 %.o: %.c hexedit.h
29 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
31 .PHONY: all clean install