diff options
Diffstat (limited to 'net-www/bozohttpd/files/bozohttpd-20040218.Makefile')
-rw-r--r-- | net-www/bozohttpd/files/bozohttpd-20040218.Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-www/bozohttpd/files/bozohttpd-20040218.Makefile b/net-www/bozohttpd/files/bozohttpd-20040218.Makefile new file mode 100644 index 000000000000..709eed603034 --- /dev/null +++ b/net-www/bozohttpd/files/bozohttpd-20040218.Makefile @@ -0,0 +1,33 @@ +ifndef MANDIR + MANDIR = share/man/man8 +endif +ifndef PREFIX + PREFIX = /usr/local +endif +ifndef CC + CC = gcc +endif +ifndef INSTALL + INSTALL = /bin/install +endif + +SRCS = bozohttpd.c +OBJ = bozohttpd + +all: bozohttpd + +bozohttpd: + $(CC) $(CFLAGS) -o $(OBJ) $(SRCS) -lssl -lcrypto + +clean: + rm -f $(OBJ) + rm -f *~ + +install:: bozohttpd + $(INSTALL) -s -m 755 $(OBJ) $(PREFIX)/bin + $(INSTALL) -d $(PREFIX)/$(MANDIR) + $(INSTALL) -m 644 $(OBJ).8 $(PREFIX)/$(MANDIR) + +uninstall:: + -rm -f $(PREFIX)/bin/$(OBJ) + -rm -f $(PREFIX)/$(MANDIR)/$(OBJ).8 |