# Copyright (C) 2003, 2006 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Common Public License.

# $Id: Makefile.in 759 2006-07-07 03:07:08Z andreasw $

##########################################################################
#    You can modify this example makefile to fit for your own program.   #
#    Usually, you only need to change the five CHANGEME entries below.   #
##########################################################################

# CHANGEME: This should be the name of your executable
EXE = osdip

# CHANGEME: Here is the name of all object files corresponding to the source
#           code that you wrote in order to define the problem statement


OBJS          = OSDip_Main.o
OBJS         += OSDipInterface.o
OBJS         += OSDipApp.o
OBJS         += OSDipBlockSolver.o
OBJS         += OSDipBlockSolverFactory.o
OBJS         += solvers/OSDipBlockCoinSolver.o
OBJS         += solvers/OSDipBlockSlpSolver.o
OBJS         += solvers/OSDipBlockBearcatSolver.o




# CHANGEME: Additional libraries
ADDLIBS = 



# CHANGEME: Additional flags for compilation (e.g., include flags)
ADDINCFLAGS =  -I${prefix}/include  -I./solvers  -I./



# CHANGEME: Additional libraries
ADDLIBS = 



prefix = ../..

##########################################################################
#  Usually, you don't have to change anything below.  Note that if you   #
#  change certain compiler options, you might have to recompile OS.   #
##########################################################################

# C++ Compiler command, for example g++
CXX = g++

DEFS = -DHAVE_CONFIG_H -DCOIN_ASSERT -D__DECOMP_IP_CBC__ -D__DECOMP_LP_CLP__ -DCOIN_ASSERT -D__DECOMP_IP_CBC__ -D__DECOMP_LP_CLP__

# C++ Compiler options
CXXFLAGS = -O3 -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas    $(DEFS)

CXXFLAGS += `pkg-config --cflags os dip`
 
DARWIN=$(findstring darwin, linux-gnu)
WIN=$(findstring gw, linux-gnu)

# additional C++ Compiler options for linking
CXXLINKFLAGS = 

ifeq ($(DARWIN),darwin)
  CXXLINKFLAGS += -bind_at_load
endif


#ADD LIBRARIES
# Libraries necessary to link
LIBS = `pkg-config --libs os dip` 
#DONE ADDING LIBS


# Necessary Include dirs (we use the CYGPATH_W variables to allow
# compilation with Windows compilers)
INCL =  `$(CYGPATH_W)` $(ADDINCFLAGS)  

# The following is necessary under cygwin, if native compilers are used
CYGPATH_W = echo

all: $(EXE)

.SUFFIXES: .cpp .c .o .obj

$(EXE): $(OBJS)
	bla=;\
	for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
	$(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)

clean:
	rm -rf $(EXE) $(OBJS)

.cpp.o:
	$(CXX) $(CXXFLAGS) $(INCL) -c -o $@ $<


.cpp.obj:
	$(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `$(CYGPATH_W) '$<'`
