2019-02-03 04:38:59 +01:00
|
|
|
.POSIX:
|
2020-02-16 16:10:14 +01:00
|
|
|
CC = cc
|
|
|
|
CFLAGS = -std=c99 -Wall -Wextra -Wno-missing-field-initializers -Os
|
|
|
|
CPPFLAGS =
|
|
|
|
LDFLAGS = -ggdb3
|
|
|
|
LDLIBS =
|
|
|
|
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
|
2020-02-16 16:10:14 +01:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ endlessh.c $(LDLIBS)
|
2019-02-03 04:38:59 +01:00
|
|
|
|
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
|