#**********************************
# Mosel examples makefile         *
#                                 *
# (c) 2024 Fair Isaac Corporation *
#     author: Y. Colombani, 2001  *
#**********************************
.SUFFIXES: .bim .mos

ALL= ugarray1 ugarray2 ugcb ugcomp ugcomptmp ugdefstream ugexec ugiocb ugiodense ugiosparse ugioscalar ugparam1 ugparam2 ugrun ugsol1 ugsol2 ugxprs1 ugxprs2   burglar4.bim burglar3.bim prime2.bim transport.bim

XPLIBS=-L$(XPRESSDIR)/lib -lxprm_mc -lxprm_rt -lxprs

all: $(ALL)

.c:
	$(CC) -g -I$(XPRESSDIR)/include $(CFLAGS) $(LDFLAGS) $< -o $* $(XPLIBS)

.mos.bim:
	mosel compile -g '$*'

clean:
	rm -f $(ALL) *.o
