forked from OpenModelica/OMTLMSimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 820 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
41
42
43
.PHONY: all lib default depend clean
# The following is need for BEAST compatibility
ifeq ($(MAKEFILEHEADHOME),)
UP=$(PWD)
MAKEFILEHEADHOME=$(UP)
BINDIR=$(UP)/bin
else
# This is for BEAST
UP=$(MAKEFILEHEADHOME)/src
BINDIR=$(UP)/../bin/$(ABI)
endif
allplugins=ADAMS Simulink Modelica OpenModelica FMIWrapper
plugins=Modelica OpenModelica FMIWrapper
all default: lib
$(MAKE) -C common all
lib:
# Note: lib will not make the manager!
cd 3rdParty; $(MAKE)
$(MAKE) -C common lib
install: lib
$(MAKE) -C common install
for i in ${plugins}; do \
$(MAKE) -C $$i install; \
done
omtlmlib: lib
$(MAKE) -C common omtlmlib
depend:
$(MAKE) -C common depend
clean:
rm -rf $(BINDIR)/*.dll
$(MAKE) -C common clean
cd 3rdParty; $(MAKE) clean
for i in ${allplugins}; do \
$(MAKE) -C $$i clean; \
done