-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
37 lines (30 loc) · 949 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
33
34
35
36
include Makefile.in
include TMR_Common.mk
TMR_SUBDIRS = src \
src/interfaces \
src/topology
TMR_OBJS := $(addsuffix /*.o, ${TMR_SUBDIRS})
default:
echo "Building Real TMR"
@for subdir in $(TMR_SUBDIRS) ; do \
echo "making $@ in $$subdir"; \
echo; (cd $$subdir && $(MAKE) TMR_DIR=${TMR_DIR}) || exit 1; \
done
${CXX} ${SO_LINK_FLAGS} ${TMR_OBJS} ${TMR_EXTERN_LIBS} -o ${TMR_DIR}/lib/libtmr.${SO_EXT}
debug:
echo "Building Real TMR"
@for subdir in $(TMR_SUBDIRS) ; do \
echo "making $@ in $$subdir"; \
echo; (cd $$subdir && $(MAKE) debug TMR_DIR=${TMR_DIR}) || exit 1; \
done
${CXX} ${SO_LINK_FLAGS} ${TMR_OBJS} ${TMR_EXTERN_LIBS} -o ${TMR_DIR}/lib/libtmr.${SO_EXT}
interface:
pip install -e .
clean:
${RM} lib/*.a lib/*.so
@for subdir in $(TMR_SUBDIRS) ; do \
echo "making $@ in $$subdir"; \
echo; (cd $$subdir && $(MAKE) clean TMR_DIR=${TMR_DIR}) || exit 1; \
done
${RM} tmr/*.so
${RM} tmr/*.cpp