mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-10-14 21:23:51 +00:00
Makefile:
- modifications to allow the object files to be in the /obj hierarchy. - rename the object files during the build such that they can reside on a ProDOS partition. An unfortunate consequence of this is the requirement in this file for explicit recipes for any of the renamed object files. libnetdb.rez: - add an rVersion for the final library
This commit is contained in:
parent
6bafc3a9b4
commit
7eb6be5172
@ -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 $<
|
||||
|
||||
|
31
lib/netdb/libnetdb.rez
Executable file
31
lib/netdb/libnetdb.rez
Executable file
@ -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
|
||||
};
|
Loading…
Reference in New Issue
Block a user