2024-10-21 03:23:32 +00:00
|
|
|
PREFIX ?= /usr/local
|
2024-06-16 01:07:05 +00:00
|
|
|
WARNINGS = -Wall
|
|
|
|
DEBUG = -ggdb -fno-omit-frame-pointer
|
|
|
|
OPTIMIZE = -O2
|
|
|
|
|
2024-10-21 03:23:32 +00:00
|
|
|
all: passgen
|
|
|
|
|
2024-06-16 01:07:05 +00:00
|
|
|
passgen: Makefile passgen.c
|
2024-10-23 22:48:41 +00:00
|
|
|
$(CC) -o $@ $(WARNINGS) $(DEBUG) $(OPTIMIZE) passgen.c
|
2024-06-16 01:07:05 +00:00
|
|
|
|
|
|
|
clean:
|
2024-10-23 22:48:41 +00:00
|
|
|
rm -f passgen
|
2024-06-16 01:07:05 +00:00
|
|
|
|
2024-10-23 22:48:41 +00:00
|
|
|
install: all
|
|
|
|
install -Dm755 passgen $(DESTDIR)$(PREFIX)/bin/passgen
|
|
|
|
install -Dm644 passgen.1 $(DESTDIR)$(PREFIX)/share/man/man1/passgen.1
|
2024-10-21 03:23:32 +00:00
|
|
|
|
|
|
|
uninstall:
|
2024-10-23 22:48:41 +00:00
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/passgen
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/passgen.1
|
2024-06-16 01:07:05 +00:00
|
|
|
|
|
|
|
run:
|
2024-10-23 22:48:41 +00:00
|
|
|
./passgen
|