head     1.2;
branch   ;
access   ;
symbols  ;
locks    dlarson:1.2; strict;
comment  @# @;


1.2
date     91.08.02.09.13.31;  author dlarson;  state Exp;
branches ;
next     1.1;

1.1
date     91.06.05.12.50.14;  author dlarson;  state Exp;
branches ;
next     ;


desc
@Bolt UDP driver makefile
@


1.2
log
@First Alpha?
@
text
@BUGMSG = 1    #kprintf debuging messages
PARANOID = 0  #kprintf verbose debugging messages
DEBUG = -dBUGMSG=$(BUGMSG) -dPARANOID=$(PARANOID)
H = //h/
DRIVER = /
INCLUDES = -iv:include -inetinc: -i$(H)

SRCS  =  libent.asm libinit.c rpacket.c init.c node.c get.c put.c rms.c
OBJS  =  libent.o   libinit.o rpacket.o init.o node.o get.o put.o rms.o

bolt-udp.library : $(H)SDN_pragmas.h $(OBJS) $(DRIVER)bolt-driver.fd
    @@blink with <<
    FROM $(OBJS)
    LIB lib:debug.lib lib:lcr.lib lib:amiga.lib
    LIBPREFIX @@UDP
    LIBFD $(DRIVER)bolt-driver.fd
    SMALLCODE
    SMALLDATA
    VERBOSE
    ADDSYM
    BATCH
    TO $@@
    MAP bolt-udp.library.map HSFLX
    SWIDTH 20 PLAIN
<

doc:
	autodoc $(SRCS) >bolt-udp.doc
bump:
	bumprev 1 bolt-udp.library_rev
release:
#	copy net-udp.library to somewhere

bolt-udp.h: bolt-udp_protos.h $(H)bolt.h $(H)SDN_pragmas.h
	touch bolt-udp.h

libent.o: libent.asm net-udp.library_rev.i
	casm -A libent.asm -Cqvy -Iv:include -Olibent.o

libinit.o: libinit.c custom.h net-udp.library_rev.h
	lc $(INCLUDES) -O -v -cfsuwq -mls -olibinit.o libinit

#custom.o: custom.c custom.h
#	lc $(INCLUDES) -O -v -cfsuwq -mls -ocustom.o custom


#
#because stupid SAS lc automatically appends ".c" to all files to be compiled
#i am forced to create stupid ".c" file which consists of only one #include
#in order to get a pre-compiled header.  Boy does it speed things up!
#
#note that all files needing something from the pre-compiled header also
#include an #include from that header and that the header contains an
#include sandwich which prevents it from being included twice (or re-compiled)
#
#net-udp.pre: net-udp.h net-udp.c
#	lc $(INCLUDES) -ph -onet-udp.pre net-udp

.c.o:
   lc $(INCLUDES) $(DEBUG) -rr -O -v -cfsuwq -mls $*
#   lc $(INCLUDES) -Hnet-udp.pre -dDEBUG=$(DEBUG) -rr -O  -v -cfsuwq -ms $*

put.o : put.c bolt-udp.h #net-udp.pre  #contains a reference to global data

get.o : get.c bolt-udp.h #net-udp.pre

rms.o: rms.c bolt-udp.h

rpacket.o : rpacket.c bolt-udp.h #net-udp.pre

init.o : init.c bolt-udp.h #net-udp.pre #contains a reference to global data

node.o : node.c bolt-udp.h #net-udp.pre

$(H)SDN_pragmas.h : $(DRIVER)bolt-driver.fd
    fd2pragma $(DRIVER)bolt-driver.fd $(H)SDN_pragmas.h
@


1.1
log
@Initial revision
@
text
@d1 3
d6 1
d8 2
a9 2
SRCS  =  rpacket.c init.c node.c get.c put.c
OBJS  =  rpacket.o init.o node.o get.o put.o
d11 1
a11 1
NET-net-udp.library : $(H)SDN_pragmas.h $(OBJS) $(DRIVER)NET-driver.fd
d13 4
a16 6
    FROM LIB:libent.o
         LIB:libinit.o
         $(OBJS)
    LIB lib:lcr.lib lib:debug.lib lib:amiga.lib
    LIBPREFIX @@net-udp
    LIBFD $(DRIVER)NET-driver.fd
d23 1
a23 1
    MAP NET-net-udp.library.map HSFLX
d27 32
d60 2
a61 7
   @@lc $*

.a.o:
   @@asm $(AFLAGS) $*

doc:
	autodoc $(SRCS) >NET-net-udp.doc
d63 1
a63 1
net-udp.h: net-udp_protos.h
d65 7
a71 7
put.o : put.c net-udp.h

get.o : get.c net-udp.h

rpacket.o : rpacket.c net-udp.h

init.o : init.c net-udp.h
d73 1
a73 1
node.o : node.c net-udp.h
d75 2
a76 2
$(H)SDN_pragmas.h : $(DRIVER)NET-driver.fd
    fd2pragma $(DRIVER)NET-driver.fd $(H)SDN_pragmas.h
@
