-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (38 loc) · 943 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
# Automatically selects the correct makefile for the current platform,
# assumes user is building from source for their own use (won't select static
# or cross-compile makefiles)
ifeq ($(OS),Windows_NT)
UNAME=$(shell uname)
ifneq (,$(findstring MINGW,$(UNAME)))
SYSTEM=msys
else
SYSTEM=mingw
endif
else
UNAME=$(shell uname)
ifneq (,$(findstring Linux,$(UNAME)))
SYSTEM=linux
else
ifneq (,$(findstring Darwin,$(UNAME)))
SYSTEM=macos
else
ifneq (,$(findstring MINGW,$(UNAME)))
SYSTEM=mingw_cross
else
$(warning Not sure which system you are on, assuming Linux)
$(warning (uname says: '$(UNAME)'))
SYSTEM=linux
endif
endif
endif
endif
top:
$(MAKE) -f makefile.$(SYSTEM) all
clean:
$(MAKE) -f makefile.$(SYSTEM) clean
project:
@$(MAKE) -f makefile.project project
upgrade_project:
@$(MAKE) -f makefile.project upgrade_project
import_updates:
@$(MAKE) -f makefile.project import_updates