# Makefile for gridopt: Landscape Optimization Project
# Copyright (c) 2000 Ralf Seppelt
 

include ../makevars

EXS     = gridopt2 gridopt
LIBS    = -L../smeopt -lsmeopt -g

all: $(EXS) 

# Use this for gnu make
$(EXS): %: %.o ../smeopt/libsmeopt.a
	$(CXX) $@.o -o $@ -I. -lm  -D$(SYSTEM) $(LIBS)  -Wall -v

clean:
	$(RM) *.o *.exe

.c.o:
	$(CC) -c -o $*.o $*.c  -D$(SYSTEM) -g -Wall -v









