#Buildfile for query

#include ../../buildprefix

 
SOURCES = describe.c lookup.c qconfig.c qethernet.c qkernel.c query.c
HEADERS = search.h qkernel.h
OBJECTS =  describe.b lookup.b qconfig.b qethernet.b qkernel.b query.b 
#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

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