#Buildfile

#include ../../buildprefix

 
SOURCES = tail.c
HEADERS = 
OBJECTS =  tail
#ifdef X
OPTS = -O -V -vx
#else X
OPTS = -O -V
#endif X
INCLUDES = -I../../libc/include 
LIBRARIES =  
.SUFFIXES: .b .ls .s .c
# normal compile of a module
.c.b:
	cc68 $(OPTS) $(INCLUDES) -c $*.c 

# how to make an assembly file (Not deleting it or assembling it)
.c.s:
	cc68 $(OPTS) $(INCLUDES) -S $*.c

# how to make an assembly listing
.c.ls:
	cc68 $(OPTS) $(INCLUDES) -c -L $*.c

tail: tail.c
	cc68 -r $(OPTS) $(INCLUDES) -o tail tail.c
 
 
install: tail
#ifdef X
	netinstall -x tail /usr/sun/xVboot
#else X
	netinstall tail /usr/sun/Vboot
#endif X
 
clean:
	rm -f *.BAK *.CKP .emacs_* $(OBJECTS) tail
 
cleanbak:
	rm -f *.BAK *.CKP .emacs_*
 
tags: $(HEADERS) $(SOURCES)
	ctags -tw $(HEADERS) $(SOURCES)
 
lint:
	lint -hbxac $(HEADERS) $(SOURCES)
 
sources:
	co $(HEADERS) $(SOURCES) buildfile
 
rcs:
	ci -f $(HEADERS) $(SOURCES) buildfile
 
