endlessh/Makefile

21 lines
470 B
Makefile
Raw Normal View History

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