##
## Minimal nmake file to build the coco test suit and demo program.
##
## NOTE: Since Microsoft has not shipped a compliant C99 compiler, we
## force the compiler to treat the source code as C++. We strive to
## make this work, but it may be better to switch to a standards
## compliant compiler such as GCC or the Intel C compiler.
##
LD = link.exe
#CFLAGS = /nologo /Z7 /TP /Ox /D_CRT_SECURE_NO_WARNINGS /Dsnprintf=_snprintf
CFLAGS = -g /nologo /Z7 /Ox /D_CRT_SECURE_NO_WARNINGS /Dsnprintf=_snprintf
LDFLAGS = /nologo
TARGETS = example_experiment

########################################################################
## Toplevel targets
all: $(TARGETS)

clean:
	del /F $(TARGETS) *.obj

########################################################################
## Programs

example_bbob.exe: example_bbob.obj coco.obj
	$(LD) $(LDFLAGS) -out:$@ $**

example_biobj.exe: example_biobj.obj coco.obj
	$(LD) $(LDFLAGS) -out:$@ $**

example_toy.exe: example_toy.obj coco.obj
	$(LD) $(LDFLAGS) -out:$@ $**

########################################################################
## Additional dependencies

example_experiment.o: coco.h