1#------------------------------------------------------------------------------- 2# SLIP_LU/Demo/Makefile: compile and run the demos 3#------------------------------------------------------------------------------- 4 5# SLIP_LU: (c) 2019-2020, Chris Lourenco, Jinhao Chen, Erick Moreno-Centeno, 6# Timothy A. Davis, Texas A&M University. All Rights Reserved. See 7# SLIP_LU/License for the license. 8 9#------------------------------------------------------------------------------- 10 11default: all 12 13include ../../SuiteSparse_config/SuiteSparse_config.mk 14 15# uncomment for extra error checking: 16# CFLAGS += -Wall -Wextra -Wpedantic -Werror 17 18# CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O 19I = -I../Include -I../Source -I../../SuiteSparse_config -I../../COLAMD/Include -I../../AMD/Include 20 21# LDFLAGS = -L../../lib 22 23LDLIBS += -lm -lgmp -lmpfr -lcolamd -lamd -lsliplu 24CS = $(LDLIBS) 25 26 27all: lib example example2 SLIPLU 28 - ./example 29 - ./example2 30 - ./SLIPLU 31 32lib: 33 ( cd ../Lib ; $(MAKE) ) 34 35example: lib example.c Makefile 36 $(CC) $(LDFLAGS) $(CF) $(I) -o example example.c $(CS) 37 38example2: lib example2.c Makefile 39 $(CC) $(LDFLAGS) $(CF) $(I) -o example2 example2.c demos.c $(CS) 40 41SLIPLU: lib SLIPLU.c demos.h demos.c Makefile 42 $(CC) $(LDFLAGS) $(CF) $(I) -o SLIPLU SLIPLU.c demos.c $(CS) 43clean: 44 - $(RM) *.o 45 46purge: distclean 47 48distclean: clean 49 - $(RM) -r example example2 example3 example4 example5 SLIPLU *.a *.dSYM *.obj *.dll 50