forked from libpd/libpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 903 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
# Note: If you are using a Mac with Xcode 4 or later and you run into problems
# related to building for PPC, you will need to set processor
# architecture flags before running make:
# export ARCHFLAGS="-arch i386 -arch x86_64"
# make
# Background: Xcode 4 removed support for PPC, but the Python
# distutils still think they're supposed to build for PPC,
# causing the build to fail with a most unhelpful error message.
# detect platform
UNAME = $(shell uname)
ifeq ($(UNAME), Darwin) # Mac
# fix duplicate symbol error by allowing common blocks, silence some warnings
export CFLAGS = -fcommon \
-Wno-unused-variable -Wno-unused-function -Wno-unused-label
endif
.PHONY: build install clean clobber
build:
python setup.py build
install:
python setup.py install
clean:
python setup.py clean
clobber:
rm -rfv build