#sccs	"@(#)uts/kern/lwind:Makefile	1.4"

#	Convergent Technologies - System V - May 1983

include $(MAKEINC)/Makepre.h

include ../cf/Makeflags

ID = id.o
WINSRC	= wd.c wdsub.c wfont.c wdkbd.c wdmouse.c ansi.c \
	rastex.s wrastop.c layer.c layer2.c icons.c
WINOBJ	= wd.o wdsub.o wfont.o wdkbd.o wdmouse.o ansi.o \
	rastex.o wrastop.o layer.o layer2.o icons.o

DEPENDLIST = wd.c wdsub.c wfont.c wdkbd.c wdmouse.c ansi.c \
	wrastop.c layer.c layer2.c icons.c

all:	Makeincludes wind.o

wind.o:	$(WINOBJ) $(ID)
	$(LD) -r -o wind.o $(WINOBJ) $(ID)

rastex.o:	rastex.s
	$(CPP) -Dmc68k -Dm68k -Dm68 -DKERNEL -Dmini   rastex.s > ..tmp.s
	$(CC)  -c ..tmp.s
	mv ..tmp.o rastex.o
	rm -f ..tmp.*

Makeincludes: $(DEPENDLIST)
	$(INCCMD) $(DEPENDLIST) | $(SORT) | $(FILTER) > Makeincludes
	$(MAKE)

includes: $(DEPENDLIST)
	$(INCCMD) $(DEPENDLIST) | $(SORT) | $(FILTER) > Makeincludes


lint:	$(FILES)
	lint -p $(CFLAGS) $(FILES)

install:
	$(INSTALL) -i$(EXITFLAG) wind.o $(INSDIR) $(PROTOFILE)


clean:
	rm -f *.o  id.c

clobber:	clean

FRC:

id.c: ../../uts.sl
	mkslid > id.c

populate:
	getunit

include Makeincludes
include $(MAKEINC)/Makepost.h
