forked from rofl0r/hexedit0r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (31 loc) · 748 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Use config.mak to override any of the following variables.
# Do not make changes here.
.POSIX:
prefix = /usr/local
bindir = $(prefix)/bin
mandir = $(prefix)/share/man
OBJS = display.o \
file.o \
hexedit.o \
interact.o \
mark.o \
misc.o \
page.o \
search.o
CFLAGS = -Wall -D_GNU_SOURCE -pipe
include config.mak
all: hexedit
$(OBJS): hexedit.h
install: hexedit hexedit.1
install -D -m 755 hexedit $(DESTDIR)$(bindir)/hexedit
install -D -m 644 hexedit.1 $(DESTDIR)$(mandir)/man1/hexedit.1
clean:
rm -f hexedit
rm -f $(OBJS)
hexedit: $(OBJS)
$(CC) $(LDFLAGS) -o hexedit $(OBJS) -lncurses
.SUFFIXES:
.SUFFIXES: .o .c
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
.PHONY: all clean install