Last change
on this file since 20500 was 20500, checked in by Mathieu Morlighem, 9 years ago |
merged trunk-jpl and trunk for revision 20497
|
File size:
684 bytes
|
Line | |
---|
1 | #Adaptation of Triangle makefile to compile only the triangle.c file,
|
---|
2 | #into a standalone library that can then be used to compile mex modules
|
---|
3 |
|
---|
4 | include ./configure.make
|
---|
5 |
|
---|
6 | ifeq "$(origin CC)" "undefined"
|
---|
7 | CC = cc
|
---|
8 | endif
|
---|
9 |
|
---|
10 | ifeq "$(origin AR)" "undefined"
|
---|
11 | AR = ar
|
---|
12 | endif
|
---|
13 |
|
---|
14 | ifeq "$(origin RANLIB)" "undefined"
|
---|
15 | RANLIB = ranlib
|
---|
16 | endif
|
---|
17 |
|
---|
18 | TRILIBDEFS = -DTRILIBRARY
|
---|
19 |
|
---|
20 | all: triangle.$(LIB_EXT)
|
---|
21 |
|
---|
22 | OBJECTS=triangle.$(OBJ_EXT)
|
---|
23 |
|
---|
24 | triangle.$(LIB_EXT): $(OBJECTS)
|
---|
25 | $(AR) cr triangle.$(LIB_EXT) $(OBJECTS)
|
---|
26 | $(RANLIB) triangle.$(LIB_EXT)
|
---|
27 |
|
---|
28 | triangle.$(OBJ_EXT): triangle.c triangle.h
|
---|
29 | $(CXX) $(CXXSWITCHES) $(TRILIBDEFS) -c triangle.c
|
---|
30 |
|
---|
31 | clean:
|
---|
32 | rm -rf *.$(LIB_EXT) *.$(OBJ_EXT) *.LIB *.LST *.$(OBJ_EXT)bj *.BAK
|
---|
Note:
See
TracBrowser
for help on using the repository browser.