# $Id: $
#===========================================================================#
# This file is part of the Decomp Solver Framework.                         #
#                                                                           #
# Decomp is distributed under the Common Public License as part of the      #
# COIN-OR repository (http://www.coin-or.org).                              #
#                                                                           #
# Author: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com)       #
#                                                                           #
# Copyright (C) 2002-2011, Lehigh University, Matthew Galati, and Ted Ralphs#
# All Rights Reserved.                                                      #
#===========================================================================#

#===========================================================================#
# library name
LIBKNAP = libKnapPisinger.a

# source files
OBJS_SRC += mcknap.c
OBJS_SRC += combo.c

OBJS     += mcknap.o
OBJS     += combo.o

# include flags
ADDINCFLAGS += 

#===========================================================================#
# directory to the source files
SRCDIR = .


#===========================================================================#
# C compiler, linker
CC = mpicc
AR = ar

# C compiler options
CCFLAGS = -g -O2 -pipe -Wall   -DDIP_BUILD

#===========================================================================#
# includes
INCL =  -I. $(ADDINCFLAGS)

#===========================================================================#
.SUFFIXES: .c .o

$(LIBKNAP): $(OBJS)
	$(AR) -q -s $@ ${OBJS}

clean:
	rm -rf *.o $(LIBKNAP)

.c.o:
	$(CC) $(CCFLAGS) $(INCL) -c $<


