#sccs	"@(#)smgr:Makefile	1.2"

include $(MAKEINC)/Makepre.h

#ID = id.o

OBJ = main.o sm_cron.o sm_msg.o sm_icons.o sm_action.o sm_mess.o

DEPENDLIST = main.c \
	sm_action.c \
	sm_cron.c \
	sm_icons.c \
	sm_mess.c \
	sm_msg.c 

all: Makeincludes smgr

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

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

smgr: $(OBJ) $(ID)
	$(CC) -o smgr $(OBJ) $(ID)
#	strip smgr

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

tag:	
	ctags *.c smgr.h

clean:
	rm -f *.o 

clobber: clean
	rm -f smgr

#id.c: smgr.sl
#	mkslid > id.c

populate:
	getunit

include Makeincludes
include $(MAKEINC)/Makepost.h

