endlessh/Makefile

22 lines
498 B
Makefile
Raw Permalink Normal View History

2019-02-03 04:38:59 +01:00
.POSIX:
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
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ endlessh.c $(LDLIBS)
2019-02-03 04:38:59 +01: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