## Makefile for Microsoft Visual C++ (Windows 9x, NT). ## ampltabl.dll is for table handlers to be imported ## automatically at the start of AMPL's execution. ## It can also provide user-defined functions. ## Table handlers can also appear in shared libraries ## (DLLs) read with AMPL's "load" and "reload" commands. # $S = ampl/solvers directory S = ../solvers CC = cl CFLAGS = -I$S -Ot1 # For DEC Alpha processors, use # CFLAGS = -QAieee -I$S -Ot1 .c.obj: $(CC) -c $(CFLAGS) $*.c all: simpbit.dll fullbit.dll ## ampltabl.def is set to make "ampltabl.dll"; ignore ## warnings about its "/OUT:AMPLTABL.dll directive". simpbit.dll: simpbit.obj ampltabl.def link -dll -def:ampltabl.def -out:simpbit.dll simpbit.obj del simpbit.exp del simpbit.lib fullbit.dll: fullbit.obj ampltabl.def link -dll -def:ampltabl.def -out:fullbit.dll fullbit.obj del fullbit.exp del fullbit.lib ampltabl.dll: amplodbc.obj ampltabl.def link -dll -def:ampltabl.def -out:ampltabl.dll amplodbc.obj odbc32.lib advapi32.lib del ampltabl.exp del ampltabl.lib clean: deltree /Y *.obj *.dll