-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
32 lines (26 loc) · 927 Bytes
/
Makefile
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
include Makefile.in
include EGADS_Common.mk
EGADS_SUBDIRS = src
EGADS_OBJS := $(addsuffix /*.o, ${EGADS_SUBDIRS})
default:
echo "Building Real EGADS"
@for subdir in $(EGADS_SUBDIRS) ; do \
echo "making $@ in $$subdir"; \
echo; (cd $$subdir && $(MAKE) EGADS_DIR=${EGADS_DIR}) || exit 1; \
done
${CXX} ${SO_LINK_FLAGS} ${EGADS_OBJS} ${EGADS_EXTERN_LIBS} -o ${EGADS_DIR}/lib/libegads.${SO_EXT}
debug:
echo "Building Real EGADS"
@for subdir in $(EGADS_SUBDIRS) ; do \
echo "making $@ in $$subdir"; \
echo; (cd $$subdir && $(MAKE) debug EGADS_DIR=${EGADS_DIR}) || exit 1; \
done
${CXX} ${SO_LINK_FLAGS} ${EGADS_OBJS} ${EGADS_EXTERN_LIBS} -o ${EGADS_DIR}/lib/libegads.${SO_EXT}
interface:
pip install -e .
clean:
${RM} lib/*.a lib/*.so
@for subdir in $(EGADS_SUBDIRS) ; do \
echo "making $@ in $$subdir"; \
echo; (cd $$subdir && $(MAKE) clean EGADS_DIR=${EGADS_DIR}) || exit 1; \
done