
TOPDIR =..
include $(TOPDIR)/Makeconf
include $(TOPDIR)/Makerule

LIBS 	+=  -L $(TOPDIR)/libaca/ -laca

OBJECTS	=  main.o\
	   util.o\
	   procdata.o\
	   procutil.o\
	   proccols.o\
	   procsort.o\
	   layout.o\
	   fill_list.o\
	   profile.o\
	   menu.o\
	   kimwins.o

INSTALL_FILES	= kim

all: $(PROGRAMS) 

$(PROGRAMS): $(OBJECTS) 
	$(RM) -f $(PROGRAMS)
	$(LINK) $(OBJECTS) $(LIBS)

clean:
	$(RM) -f *~ $(PROGRAMS) $(OBJECTS) core

install:
	@echo Install bin: $(bindir)
	$(INSTALL) -d $(bindir)
	@for file in $(INSTALL_FILES); do \
                test -f $(bindir)/$$file \
                || $(INSTALL) -m $(BIN_MODE) $$file $(bindir); \
        done

uninstall:
	@echo Uninstall bin: $(bindir)
	@for file in $(INSTALL_FILES); do \
                $(RM) $(bindir)/$$file; \
	done
