-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (30 loc) · 959 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
44
45
-include config.mk
ifndef MSKHOME
$(error Configuration not properly defined. Please run the './setup.sh' script.)
else ifndef MSKVERSION
$(error Configuration not properly defined. Please run the './setup.sh' script.)
else ifndef PLATFORM
$(error Configuration not properly defined. Please run the './setup.sh' script.)
endif
MSKPATH=$(MSKHOME)/mosek/$(MSKVERSION)/tools/platform/$(PLATFORM)
BUILDPATH=./build/
# Compile all
.PHONY : all
all: CWC_MOSEK GCWF
# Include makefiles for different platforms
# And execute based on the configuration file.
ifeq ($(PLATFORM),osx64x86)
include osx64x86.mk
else ifeq ($(PLATFORM),linux64x86)
include linux64x86.mk
else
$(error No platform is assigned. Stop make.)
endif
# Clean
.PHONY : clean
clean:
-rm -rf $(BUILDPATH)CWC $(BUILDPATH)CWC_Lin\
$(BUILDPATH)CWC.dSYM $(BUILDPATH)CWC_Lin.dSYM\
$(BUILDPATH)LCL $(BUILDPATH)EAV $(BUILDPATH)Grid
clean_MOSEK:
make clean -C $(MSKPATH)/src/fusion_cxx