# Generated automatically from Makefile.in by configure.
#
#   This file is part of CONCORDE
#
#   (c) Copyright 1995--1999 by David Applegate, Robert Bixby,
#   Vasek Chvatal, and William Cook
#
#   Permission is granted for academic research use.  For other uses,
#   contact the authors for licensing options.
#
#   Use at your own risk.  We make no guarantees about the
#   correctness or usefulness of this code.
#


SHELL = /bin/sh
SRCROOT = ..
BLDROOT = ..
CCINCDIR=$(SRCROOT)/INCLUDE

srcdir = .

CC = gcc
CFLAGS = -fPIC -O2 -g  -I$(BLDROOT)/INCLUDE -I$(CCINCDIR)
LDFLAGS = -fPIC -O2 -g 
LIBFLAGS = -lm 
RANLIB = ranlib
LPSOLVER_LIB = /remote-home/share/worm/wormICML2024Code/DIFUSCO-main/data/pyconcorde/data/qsopt.a

OBJ_SUFFIX = o
o = $(OBJ_SUFFIX)

THISLIB=combs.a
LIBSRCS=block.c dngreedy.c
ALLSRCS=co_main.c  $(LIBSRCS)

LIBS=$(BLDROOT)/UTIL/util.a

all: $(THISLIB)

everything: all combtest

combtest: co_main.$o $(THISLIB) $(LIBS)
	$(CC) $(LDFLAGS) -o $@ co_main.$o $(THISLIB) $(LIBS) $(LPSOLVER_LIB) $(LIBFLAGS)

clean:
	-rm -f *.$o $(THISLIB) combtest

OBJS=$(LIBSRCS:.c=.o)

$(THISLIB): $(OBJS)
	$(AR) $(ARFLAGS) $(THISLIB) $(OBJS)
	$(RANLIB) $(THISLIB)

.PHONY: $(BLDROOT)/concorde.a
$(BLDROOT)/concorde.a: $(OBJS)
	$(AR) $(ARFLAGS) $(BLDROOT)/concorde.a $(OBJS)
	$(RANLIB) $(BLDROOT)/concorde.a

include ../INCLUDE/Makefile.common

# DO NOT DELETE THIS LINE -- make depend depends on it.

I=$(CCINCDIR)
I2=$(BLDROOT)/INCLUDE

block.$o:    block.c    $(I)/machdefs.h $(I2)/config.h  $(I)/util.h     \
        $(I)/combs.h    
co_main.$o:  co_main.c  $(I)/machdefs.h $(I2)/config.h  $(I)/util.h     \
        $(I)/combs.h    
dngreedy.$o: dngreedy.c $(I)/machdefs.h $(I2)/config.h  $(I)/util.h     \
        $(I)/combs.h    
