diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-17 21:46:49 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-17 21:48:24 +0100 |
| commit | 6dd4caf947f2997698ebf7354172a6476ad0bf25 (patch) | |
| tree | bcdd557656119dc028234d67396930c124ee0735 /http/pp/Makefile | |
| parent | 506d1adfccbb494be598e08f8d45aaae641eb6d2 (diff) | |
adds pp sources
Diffstat (limited to 'http/pp/Makefile')
| -rw-r--r-- | http/pp/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/http/pp/Makefile b/http/pp/Makefile new file mode 100644 index 0000000..afc122f --- /dev/null +++ b/http/pp/Makefile @@ -0,0 +1,29 @@ +CC = cc +LD = ${CC} + +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man + +CFLAGS = -Wall -Wextra -pedantic + +pp: pp.o +pp.o: pp.c + +.c.o: + $(CC) $(CPPFLAGS) $< $(CFLAGS) -c -o $@ +.o: + $(LD) $< $(LDFLAGS) -o $@ + +clean: + rm -rf pp *.o + +install: pp pp.1 + mkdir -p $(DESTDIR)$(PREFIX)/bin + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cp pp $(DESTDIR)$(PREFIX)/bin/pp + cp pp.1 $(DESTDIR)$(MANPREFIX)/man1/ + chmod 755 $(DESTDIR)$(PREFIX)/bin/pp + +uninstall: + rm $(DESTDIR)$(PREFIX)/bin/pp + rm $(DESTDIR)$(MANPREFIX)/man1/pp.1 |
