summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 54cdfdb85097a6397a8ac41966cac5d6b52e7f5a (plain) (blame)
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
PREFIX ?= /usr/local
BINDIR ?= /bin

CFLAGS = -Wunused-variable -Wunused-function -Wconversion

ifeq ($(DEBUG),1)
CFLAGS += -Og -g
else
CFLAGS += -O2
endif

all: hexdiff

clean:
	rm -f hexdiff

hexdiff: hexdiff.c

install:
	install -m755 hexdiff -t "$(DESTDIR)$(PREFIX)$(BINDIR)"

uninstall:
	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/hexdiff"

.PHONY: all clean install uninstall