#sccs	"@(#)wmgr:Makefile	1.1"
include $(MAKEINC)/Makepre.h

OBJ = main.o wmgr.o sizepos.o prtscrn.o util.o sysinf.o

DEPENDLIST = main.c \
	prtscrn.c \
	sizepos.c \
	sysinf.c \
	util.c \
	wmgr.c 

all: Makeincludes wmgr

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

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

wmgr: $(OBJ) id.o
	$(LD) $(SHAREDLIB) -o wmgr  $(OBJ) id.o
	strip wmgr

install: 
	$(INSTALL) -i$(EXITFLAG) wmgr $(INSDIR) $(PROTOFILE)

clean: 
	rm -f *.o

clobber: clean 
	rm -f wmgr

id.c: wmgr.sl
	mkslid > id.c

populate:
	getunit

include Makeincludes
include $(MAKEINC)/Makepost.h
