passgen/Makefile

25 lines
520 B
Makefile
Raw Normal View History

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-21 03:23:32 +00:00
$(CC) -o $@ $(WARNINGS) $(DEBUG) $(OPTIMIZE) passgen.c
2024-06-16 01:07:05 +00:00
clean:
2024-10-21 03:23:32 +00:00
rm -f passgen
2024-06-16 01:07:05 +00:00
install:
2024-10-21 03:23:32 +00:00
install -Dm755 passgen $(DESTDIR)$(PREFIX)/bin/passgen
install -Dm644 passgen.1 $(DESTDIR)$(PREFIX)/share/man/man1/passgen.1
uninstall:
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-21 03:23:32 +00:00
./passgen