gtsam/colamd/Makefile

42 lines
818 B
Makefile
Raw Normal View History

2009-08-22 06:23:24 +08:00
# Makefile to compile the unit test library, will end up in $(LIBDIR)
.PHONY: all install clean
all: libcolamd.a
CC ?= gcc
CXX ?= g++
2009-08-22 06:23:24 +08:00
CXXFLAGS += -O2
CXXFLAGS += -fPIC
sources = $(shell ls *.c)
library = libcolamd.a
#Note: hack was added to ensure that flags are acutally used for compilation
# This should probably be fixed, but will work for 64 bit machines now
$(library):
$(CXX) $(CXXFLAGS) -c -o colamd.o colamd.c
$(CXX) $(CXXFLAGS) -c -DDLONG -o colamd_l.o colamd.c
$(CXX) $(CXXFLAGS) -c -o colamd_global.o colamd_global.c
ar crsv $@ colamd.o colamd_l.o colamd_global.o
2009-08-22 06:23:24 +08:00
ranlib $(library)
clean:
rm -f *.o *.*~ $(library)
check:
echo 'no check for colamd'
distdir:
# Richard: added the following dependencies so that recursive make works:
2009-08-22 06:23:24 +08:00
install: all
distclean: clean
check: all