Makefile 763 B

12345678910111213141516171819202122232425262728
  1. #-------------------------------------------------------------------------------
  2. # Makefile for the LDL library
  3. #-------------------------------------------------------------------------------
  4. default: all
  5. include ../../ecos.mk
  6. INCLUDES = -I../SuiteSparse_config -Iinclude
  7. C = $(CC) $(CFLAGS) $(INCLUDES)
  8. all: libldl.a
  9. #-------------------------------------------------------------------------------
  10. # the ldl library:
  11. #-------------------------------------------------------------------------------
  12. libldl.a: src/ldl.c include/ldl.h ../../include/glblopts.h ../../include/ecos.h
  13. $(C) -c src/ldl.c -o ldl.o
  14. $(C) -DLDL_LONG -c src/ldl.c -o ldll.o
  15. $(ARCHIVE) libldl.a ldl.o ldll.o
  16. - $(RANLIB) libldl.a
  17. purge:
  18. - $(RM) libldl.a
  19. clean:
  20. - $(RM) $(CLEAN)