-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.autotools
34 lines (28 loc) · 1.07 KB
/
Makefile.autotools
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
######################################################################
## Here specify the location of the IBAMR source and the location
## where IBAMR has been built.
IBAMR_SRC_DIR = /path/to/IBAMR_SRC_DIR
IBAMR_BUILD_DIR = /path/to/IBAMR_BUILD_DIR
######################################################################
## Include variables specific to the particular IBAMR build.
include $(IBAMR_BUILD_DIR)/config/make.inc
## Needed for Xcode to capture compiler errors and warnings.
ifdef XCODE_VERSION_ACTUAL
CXXFLAGS += -fno-color-diagnostics
endif
######################################################################
## Build the application.
##
## NOTE: The following assumes that all .cpp files in the present
## directory are used to build the executable.
SRC = $(wildcard *.cpp)
CPPFLAGS += -MD -MP
PDIM = 3
OBJS3D = $(SRC:%.cpp=%.o) $(IBAMR_LIB_3D) $(IBTK_LIB_3D)
main3d: $(OBJS3D)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS3D) $(LDFLAGS) $(LIBS) -DNDIM=$(PDIM) -o $@
clean:
$(RM) main3d
$(RM) *.o *.lo *.objs *.ii *.int.c *.d
$(RM) -r .libs
-include $(SRC:%.cpp=%.d)