CC_ADD = -g BUILDBINS = conf distrib entry flag fmtamt format interest ndate phone\ select sslock SCRIPTBINS = catdb confirm confirm-sort exchange report shared shared1\ splitdb ssunlock totals # doshared OBJ_entry = cbi.o conflib.o currlib.o deconst.o entry.o lock.o ul.o OBJ_conf = conf.o conflib.o OBJ_flag = deconst.o flag.o OBJ_select = deconst.o select.o OBJ_format = conflib.o currlib.o deconst.o format.o OBJ_fmtamt = conflib.o currlib.o fmtamt.o OBJ_sslock = lock.o sslock.o LIBS_interest = -lm ALLBINS = $(BUILDBINS) $(SCRIPTBINS) INSTDIR = ../bin INSTABS != (cd $(INSTDIR); pwd) INSTBINS = $(ALLBINS:C;^;$(INSTDIR)/;) .MAIN: $(INSTBINS) .for i in $(BUILDBINS) $(INSTDIR)/$i: $i install -c $i $(INSTDIR)/$i .endfor .for i in $(SCRIPTBINS) $(INSTDIR)/$i: $i install -c $i $(INSTDIR)/$i $i: $i.sh sed -e 's;<@>BINDIR<#>;$(INSTABS);' < $i.sh > $i CLEANFILES += $i .endfor INSTALLBIN = .include