head     1.1;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


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


desc
@Original snapshot from Ameristar
@



1.1
log
@Initial revision
@
text
@
#
# makefile for amiganet.device
#

INCLUDE	= -i/amiganet
CFLAGS  = -rr -v -d_USEOLDEXEC_ $(INCLUDE) -O -ml -Hram:syms
OBJS 	= libent.o libinit.o global.o dispatch.o devicequery.o type.o stat.o  	\
	  event.o stub.o rdwr.o offline.o task.o config.o board.o getstation.o	\
	  interrupts.o devinit.o startxmit.o checktype.o recv.o getlibbase.o

all:	amiganet.device


# make rules for amiganet.device.  Should blink with no absolute references
amiganet.device: ram:syms $(OBJS) amiganet.device.lnk debug.lib
	@@echo "BLINK must complete with no absolute references!"
	blink batch with amiganet.device.lnk
	-delete \#?.info

libent.o: libent.a
	asm -iINCLUDE: -u libent.a

stub.o: stub.a
	asm -iINCLUDE: stub.a


# build netbuff pragma
netbuff_pragma.h: netbuff.fd
	fd2pragma netbuff.fd netbuff_pragma.h
	copy netbuff_pragma.h include:pragmas/netbuff.h

# build symbol table file - saves on compile time for other files
syms:	amiganet.h functions.h debug.h
	lc -d_USEOLDEXEC_ -rr $(ML) $(INCLUDE) -ph -osyms sym.c

ram:syms: syms
	copy syms ram: clone

# debug printf stub that works with "debug" program; separate compilation due to SAS
# separate rule because optimizer fails with CXERR 99 with -O
dprintf.o: dprintf.c
	lc -rr -v $(INCLUDE) dprintf

debug.lib: dprintf.o
	oml debug.lib r dprintf.o

# cleanup
clean:
	-delete \#?.o
	-delete \#?.info

spotless: clean
	-delete amiganet.device ram:syms syms debug.lib
@
