include ../../etc/config

all: cofima difima ancoma

recompile:
	rm -f cofimaexe.$(SYSTEM) difimaexe.$(SYSTEM) ancomaexe.$(SYSTEM) $(OBJS)
	make all

depend:

clean:
	../../etc/keep cofima cofima.c Makefile


cofima: cofimaexe.$(SYSTEM)
	../../etc/establish cofima
	cp cofima ../..

difima: difimaexe.$(SYSTEM)
	../../etc/establish difima
	cp difima ../..

ancoma: ancomaexe.$(SYSTEM)
	../../etc/establish ancoma
	cp ancoma ../..

cofimaexe.$(SYSTEM): cofima.c
	$(CC) -o $@ $(CFLAGS) -DVERSION=\"$(VERSION)\" -DLIBDIR=\"`../../etc/abspath ../..`\" cofima.c -lm

difimaexe.$(SYSTEM): cofimaexe.$(SYSTEM)
	rm -f $@; ln -s cofimaexe.$(SYSTEM) $@

ancomaexe.$(SYSTEM): cofimaexe.$(SYSTEM)
	rm -f $@; ln -s cofimaexe.$(SYSTEM) $@

