2019-02-03 04:38:59 +01:00
|
|
|
.POSIX:
|
|
|
|
CC = cc
|
|
|
|
CFLAGS = -std=c99 -Wall -Wextra -Wno-missing-field-initializers -Os
|
|
|
|
LDFLAGS = -ggdb3
|
|
|
|
LDLIBS =
|
2019-04-12 22:13:35 +02:00
|
|
|
PREFIX = /usr/local
|
2019-02-03 04:38:59 +01:00
|
|
|
|
2019-03-26 17:45:00 +01:00
|
|
|
all: endlessh
|
|
|
|
|
2019-02-03 04:38:59 +01:00
|
|
|
endlessh: endlessh.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ endlessh.c $(LDLIBS)
|
|
|
|
|
2019-04-12 22:13:35 +02:00
|
|
|
install: endlessh
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
|
|
install -m 755 endlessh $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man1
|
|
|
|
install -m 644 endlessh.1 $(DESTDIR)$(PREFIX)/share/man/man1/
|
|
|
|
|
2019-02-03 04:38:59 +01:00
|
|
|
clean:
|
|
|
|
rm -rf endlessh
|