-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
64 lines (48 loc) · 1.16 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
##############################################################################
# Generic definitions for: Native Programs + Hosted Python
#
ifeq ($(PREFIX),)
ifeq ($(HOME),)
PREFIX:=$(USERPROFILE)
else
PREFIX=$(HOME)
endif
endif
ifeq ($(INST_BIN),)
INST_BIN=$(PREFIX)/bin/$(N_ARCH)
endif
ifeq ($(N_ARCH),)
N_ARCH=$(shell uname -s).$(shell uname -p)
endif
ifeq ($(DAS2C_INCDIR),)
DAS2C_INCDIR=$(PREFIX)/include
endif
ifeq ($(DAS2C_LIBDIR),)
DAS2C_LIBDIR=$(PREFIX)/lib/$(N_ARCH)
endif
ifeq ($(INST_SHARE),)
INST_SHARE=$(PREFIX)/share
endif
ifeq ($(INST_DOC),)
INST_DOC=$(INST_SHARE)/doc
endif
ifeq ($(PYVER),)
PYVER:=$(shell python3 -c "import sys; print('.'.join( sys.version.split()[0].split('.')[:2] ))")
endif
ifeq ($(H_ARCH),)
H_ARCH:=python$(PYVER)
endif
ifeq ($(INST_HOST_BIN),)
INST_HOST_BIN=$(PREFIX)/bin/$(H_ARCH)
endif
ifeq ($(INST_HOST_LIB),)
INST_HOST_LIB=$(PREFIX)/lib/$(H_ARCH)
endif
ifeq ($(INST_EXT_LIB),)
INST_EXT_LIB=$(PREFIX)/lib/$(N_ARCH)/$(H_ARCH)
endif
BUILD_DIR:=build.$(N_ARCH)
##############################################################################
# Native Platform specific include
UNAME = $(shell uname)
include buildfiles/$(UNAME).mak