summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/Makefile
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-08-17 09:30:19 +0000
committerdes <des@FreeBSD.org>1998-08-17 09:30:19 +0000
commitb31588089070ef6d8f786c0bd15e56303eedd7d8 (patch)
tree97e93e4e1d1747208148ebef971d2118462d48f9 /lib/libfetch/Makefile
parent277f8e55a3a42d8efbc3bd38b2ce29003597bc62 (diff)
downloadFreeBSD-src-b31588089070ef6d8f786c0bd15e56303eedd7d8.zip
FreeBSD-src-b31588089070ef6d8f786c0bd15e56303eedd7d8.tar.gz
Commit a bunch of patches that have been accumulating:
- Fix the README to reflect the new status of the ftp code. - Change tons of 'if (xxx < 0)' to 'if (xxx == -1)' - Add two new interface functions - Fix the Makefile so it actually works (yay!) Now the manpage is lagging even further behind... :( Next on the todo list is to clean up the http code.
Diffstat (limited to 'lib/libfetch/Makefile')
-rw-r--r--lib/libfetch/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile
index ec41775..91bbe1d 100644
--- a/lib/libfetch/Makefile
+++ b/lib/libfetch/Makefile
@@ -1,5 +1,5 @@
LIB= fetch
-CFLAGS+= -I${.CURDIR} -Wall
+CFLAGS+= -I${.CURDIR} -Wall -pedantic -DNDEBUG
SRCS= fetch.c ftp.c http.c file.c
MAN3= fetch.3
CLEANFILES+= ftperr.c httperr.c
@@ -11,8 +11,9 @@ beforeinstall:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/fetch.h \
${DESTDIR}/usr/include
-ftperr.c: ftp.errors
- @echo "struct ftperr {" \ >> ${.TARGET}
+ftp.c: ftperr.c
+ftperr.c: ftp.errors
+ @echo "struct ftperr {" \ > ${.TARGET}
@echo " const int num;" \ >> ${.TARGET}
@echo " const char *string;" \ >> ${.TARGET}
@echo "};" \ >> ${.TARGET}
@@ -26,8 +27,9 @@ ftperr.c: ftp.errors
@echo " { -1, \"Unknown FTP error\" }" >> ${.TARGET}
@echo "};" >> ${.TARGET}
-httperr.c: http.errors
- @echo "struct httperr {" \ >> ${.TARGET}
+http.c: httperr.c
+httperr.c: http.errors
+ @echo "struct httperr {" \ > ${.TARGET}
@echo " const int num;" \ >> ${.TARGET}
@echo " const char *string;" \ >> ${.TARGET}
@echo "};" \ >> ${.TARGET}
OpenPOWER on IntegriCloud