File: Makefile

package info (click to toggle)
pyepl 1.1.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,120 kB
  • sloc: cpp: 7,986; python: 6,026; makefile: 360; ansic: 132
file content (79 lines) | stat: -rw-r--r-- 1,761 bytes parent folder | download | duplicates (4)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# PyEPL: hardware/vr/Makefile
#
# Copyright (C) 2003-2005 Michael J. Kahana
# Authors: Ian Schleifer, Per Sederberg, Aaron Geller, Josh Jacobs
# URL: http://memory.psych.upenn.edu/programming/pyepl
#
# Distributed under the terms of the GNU Lesser General Public License
# (LGPL). See the license.txt that came with this file.

all: avatar.so environment.so 

include ../../../Makefile.common

PLATFORM = $(shell uname)

clean:
	rm -fr *.o *.so pyODE-0.35cvs-2

ifeq ($(PLATFORM), Linux)

ODE_CFLAGS = $(shell ode-config --cflags)
ODE_LDFLAGS = $(shell ode-config --libs)

avatar.so: avatar.o
	gcc -shared avatar.o -o avatar.so $(ODE_LDFLAGS)

avatar.o: avatar.c
	gcc -c -fPIC -I$(INCLUDEPY) $(ODE_CFLAGS) avatar.c

avatar.c: avatar.pyx
	pyrexc avatar.pyx

eyes.so: eyes.o
	gcc -shared eyes.o -o eyes.so

eyes.o: eyes.c
	gcc -c -fPIC -I$(INCLUDEPY) eyes.c

eyes.c: eyes.pyx
	pyrexc eyes.pyx

environment.so: environment.o
	gcc -shared environment.o -o environment.so

environment.o: environment.c
	gcc -c -fPIC -I$(INCLUDEPY) environment.c

environment.c: environment.pyx
	pyrexc environment.pyx

endif

ifeq ($(PLATFORM), Darwin)

avatar.so: avatar.o
	gcc -bundle -flat_namespace -undefined suppress avatar.o -lode -L/opt/local/lib -o avatar.so

avatar.o: avatar.c
	gcc -fPIC -c avatar.c -I$(INCLUDEPY)
avatar.c: avatar.pyx
	pyrexc avatar.pyx

eyes.so: eyes.o
	gcc -bundle -flat_namespace -undefined suppress eyes.o -o eyes.so

eyes.o: eyes.c
	gcc -fPIC -c eyes.c -I$(INCLUDEPY)
eyes.c: eyes.pyx
	pyrexc eyes.pyx

environment.so: environment.o
	gcc -bundle -flat_namespace -undefined suppress environment.o -o environment.so

environment.o: environment.c
	gcc -fPIC -c environment.c -I$(INCLUDEPY)
environment.c: environment.pyx
	pyrexc environment.pyx

endif