CFLAGS  =   -O
CCFLAGS =   +e2 -O
CLIB    =   -lc
MAKEDEP =   ../../bin/domakedep

.SUFFIXES: .C

.C.o:
	CC -c $(CCFLAGS) $<

OFILES  =   SunFileType.o \
	    SunSystem.o sunsystem.o \
	    SunOsPttyConnection.o sunptty.o \
	    sunstacktrace.o \
	    sunsockets.o \
	    dynlink.o

all:    sunos.o

sunos.o:  $(OFILES)
	ld -X -r -o sunos.o $(OFILES) $(WLIB)

#--------------------------------------------------------------------------------

depend:
	$(MAKEDEP) *.[chC] > deps

clean:
	rm -f core $(OFILES) *..c errs

clobber:    clean
	rm -f sunos.o

touch:
	$(MAKE) -t

include deps

