diff --git a/lib/netdb/Makefile b/lib/netdb/Makefile index 527e85b..8debe3c 100644 --- a/lib/netdb/Makefile +++ b/lib/netdb/Makefile @@ -1,7 +1,7 @@ # # Makefile for netdb # -# $Id: Makefile,v 1.2 1998/01/26 05:49:05 taubert Exp $ +# $Id: Makefile,v 1.3 1998/02/15 19:27:19 gdr-ftp Exp $ # LIB= netdb @@ -12,6 +12,29 @@ SRCS= rcmd.c getnetbyname.c getnetbyaddr.c getnetent.c getprotoname.c \ res_debug.c res_init.c res_mkquery.c res_query.c res_send.c \ herror.c writev.c +# Put object files in /obj hierarchy and replace underscores with periods. +FAKESRC = $(SRCS:s/_/./g) +OBJS = $(OBJ_DIR){$(FAKESRC:b)}.o + OPTIMIZE=79 .INCLUDE: /src/gno/lib/lib.mk + +# We have to give all these explicit rules because we have renamed our +# object files such that they can be placed on a ProDOS volume. +$(OBJ_DIR)inet.addr.o: inet_addr.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)inet.lnaof.o: inet_lnaof.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)inet.makeaddr.o: inet_makeaddr.c;$(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)inet.netof.o: inet_netof.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)inet.network.o: inet_network.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)inet.ntoa.o: inet_ntoa.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)iso.addr.o: iso_addr.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)ns.addr.o: ns_addr.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)ns.ntoa.o: ns_ntoa.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)res.comp.o: res_comp.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)res.debug.o: res_debug.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)res.init.o: res_init.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)res.mkquery.o: res_mkquery.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)res.query.o: res_query.c; $(CC) -o $@ $(CFLAGS) -c $< +$(OBJ_DIR)res.send.o: res_send.c; $(CC) -o $@ $(CFLAGS) -c $< + diff --git a/lib/netdb/libnetdb.rez b/lib/netdb/libnetdb.rez new file mode 100755 index 0000000..2773282 --- /dev/null +++ b/lib/netdb/libnetdb.rez @@ -0,0 +1,31 @@ +/* + * $Id: libnetdb.rez,v 1.1 1998/02/15 19:27:20 gdr-ftp Exp $ + */ + +#define LIB "libnetdb for GNO" +#define PORTED "Ported from 4.4BSD by Derek Taubert.\n" + +#include "Types.rez" +#include "/src/gno/build.tools/builddate.rez" + +/* + * Version + */ +resource rVersion (1, purgeable3) { + { 2, 0, 6, /* Version 2.0.6 */ + release, /* development|alpha|beta|final|release */ + 0 }, /* non-final release number */ + verUS, /* Country */ + LIB, + PORTED + BUILD_DATE +}; + +/* + * Comment + */ +resource rComment (1, purgeable3) { + LIB "\n" + PORTED + BUILD_DATE +};