Debian Codegraph @

src/ecos/external/ldl/Makefile

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