# use the compiler call appropriate for your platform CC = gcc # note that ANSI-C is required to compile donlp2.c you may have # to add appropriate options in CFLAGS for your native cc or you may use # gcc # you may add or alter compiler options below -O3 means full optimization #due to stacksize limitations for large n and n+nlin+nonlin you might be forced # to change o8para.h CFLAGS = -ansi -pedantic -O3 -g -Wall INCLUDE = /usr/local/include LIBRARY = /usr/local/lib BASIS = *.h # combining options INC_DIRS = -I$(INCLUDE) LIB_DIRS = -L. -L$(LIBRARY) -ldonlp -lsres -lm -lstdc++ # end of options DRIVER5 = essex_opt01_modi_obj.o essex_modi_opt01.o DRIVER6 = essex_opt01_modi_obj.o essex_modi_opt01_beta.o .c.o: $(CC) $(CFLAGS) -c $< all: essex_exe_modi_opt01 essex_exe_modi_opt01_beta essex_exe_modi_opt01 : $(DRIVER5) $(CC) $(CFLAGS) $(DRIVER5) -o essex_exe_modi_opt01 $(LIB_DIRS) essex_exe_modi_opt01_beta : $(DRIVER6) $(CC) $(CFLAGS) $(DRIVER6) -o essex_exe_modi_opt01_beta $(LIB_DIRS) clean : rm -f *.o essex_opt01_modi_obj.o : essex_opt01_modi_obj.c $(BASIS) essex_modi_opt01.o: essex_modi_opt01.c $(BASIS) essex_modi_opt01_beta.o: essex_modi_opt01_beta.c $(BASIS)