summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: dd5ad4447eedc1b620a00e2e7c6ffd2c5de7e45b (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
CFLAGS = -Wunused-variable -Wunused-function -Wconversion

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

all: debruijn

debruijn: main.c
	$(CC) -o $@ $< $(CFLAGS)

cleanall: clean

clean:
	rm -f debruijn

install:
	install -m 755 debruijn -t "$(DESTDIR)$(PREFIX)$(BINDIR)"

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

.PHONY: all cleanall clean install uninstall