mirror of
https://github.com/skeeto/endlessh.git
synced 2024-11-21 21:23:07 +01:00
4cb4fc6eac
Debian uses CPPFLAGS to pass arguments like -D_FORTIFY_SOURCE=2.
22 lines
498 B
Makefile
22 lines
498 B
Makefile
.POSIX:
|
|
CC = cc
|
|
CFLAGS = -std=c99 -Wall -Wextra -Wno-missing-field-initializers -Os
|
|
CPPFLAGS =
|
|
LDFLAGS = -ggdb3
|
|
LDLIBS =
|
|
PREFIX = /usr/local
|
|
|
|
all: endlessh
|
|
|
|
endlessh: endlessh.c
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -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/
|
|
|
|
clean:
|
|
rm -rf endlessh
|