forked from inniyah/Pinocchio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (30 loc) · 930 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
37
38
39
40
#!/usr/bin/make -f
dirs = Pinocchio AttachWeights DemoUI
# Define a standard makePerDir command, which goes into
# each dir, and runs make $(makerule)
define makePerDir
for dir in $(dirs); \
do \
cd $$dir && { $(MAKE) $(makerule); cd ..; }; \
done
endef
nullstring :=
all: makerule = $(nullstring)
depend clean distclean cleanall: makerule = distclean
all depend clean:
$(makePerDir)
distclean cleanall:
$(makePerDir)
rm -f *.o */*.o *.a */*.a *~ */*~
SRC_FILES = $(shell find . -maxdepth 3 \
-name '*.c' -o -name '*.cpp' -o -name '*.cc' -o \
-name '*.h' -o -name '*.hpp' -o -name '*.hh')
bcpp:
for FILE in $(SRC_FILES); do \
cp -v "$${FILE}" "$${FILE}~" ; \
bcpp -fnc bcpp.cfg -fi "$${FILE}~" -fo "$${FILE}" ; \
dos2unix "$${FILE}" ; \
done
test:all
LD_LIBRARY_PATH=Pinocchio DemoUI/DemoUI DemoUI/data/test.obj -motion DemoUI/data/walk.txt -algo DQS
.PHONY: all depend clean distclean cleanall bcpp test