#Makefile for serial

#include ../../buildprefix


ALL = serial
SOURCES = serial.c
HEADERS =
OBJECTS = serial.b
#ifdef X
OPTS = -V -vx -O
#else X
OPTS = -V -O
#endif X
INCLUDES =
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

serial: $(OBJECTS)
	cc68 -r $(OPTS) -o serial $(OBJECTS) $(LIBRARIES)

clean:
	rm -f *.BAK *.CKP $(OBJECTS) $(ALL)

tags: $(HEADERS) $(SOURCES)
	ctags $(HEADERS) $(SOURCES)

install:
#ifdef X
	netinstall -p -x "$(ALL)" /usr/sun/xVboot
#else X
	netinstall -p "$(ALL)" /usr/sun/Vboot
#endif X




