CFLAGS  =   -O 
CCFLAGS =   +e2
WLIB    =   -lsuntool -lsunwindow -lpixrect
CLIB    =   -lc
MAKEDEP =   ../../bin/domakedep

.SUFFIXES: .C

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

# window system independent files

OFILES  =   SunBitmap.o sunbitmap.o \
	    SunFont.o sunfont.o \
	    SunWindowPort.o sunwindow.o \
	    SunClipboard.o \
	    SunWindowSystem.o

all:    sun.o

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

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

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

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

clobber:    clean
	rm -f sun.o

touch:
	$(MAKE) -t

include deps

