# # Makefile.c++ # # Instructions: # # 1. % touch Makefile.dep # 2. % make depend # 3. % make # TARGET = tsp # Compiler CC = g++ CFLAGS = -Wall -g # LEAD library # Some of the library files on following list may be deleted if the # corresponding classes are not used by your program. # All libraries are linked as default. See LEDA manual for more details. LEDALIBS = -L/usr/X11R6/lib -L/usr/local/lib -L$(LEDAROOT) -lD3 -lX11 -lm -lg LEDAIFLAGS = -I$(LEDAROOT)/incl # CPLEX library CPLEXIFLAGS = -I/opt/cplex/cplex70/include/ilcplex CPLEXLIBS = -L/opt/cplex/cplex70/lib/ -lcplex -lm -lpthread # Include and Library INCLDIRS = $(CPLEXIFLAGS) $(LEDAIFLAGS) LIBS = $(CPLEXLIBS) $(LEDALIBS) # source files SRCS = tsp.c # object files OBJS = ${SRCS:.c=.o} $(TARGET): $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(OBJS): $(CC) $(CFLAGS) $(INCLDIRS) -c $*.c depend: $(CC) -MM $(SRCS) $(INCLDIRS) > Makefile.dep clean: rm -f $(OBJS) core veryclean: clean rm -f $(TARGET) a.out include Makefile.dep