~ubuntu-branches/ubuntu/trusty/pyrex/trusty-proposed

« back to all changes in this revision

Viewing changes to Demos/callback/Makefile.nodistutils

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-01-03 20:56:08 UTC
  • mto: (2.1.3 dapper) (4.1.1 lenny) (1.1.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060103205608-4i29xv9avi33du20
Tags: upstream-0.9.3.1
ImportĀ upstreamĀ versionĀ 0.9.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PYHOME = $(HOME)/pkg/python/version
2
 
PYINCLUDE = \
3
 
        -I$(PYHOME)/include/python2.2 \
4
 
        -I$(PYHOME)/$(ARCH)/include/python2.2
5
 
 
6
 
%.c:    %.pyx
7
 
        ../../bin/pyrexc $<
8
 
 
9
 
%.o:    %.c
10
 
        gcc -c -fPIC $(PYINCLUDE) $<
11
 
 
12
 
%.so:   %.o
13
 
        gcc -shared $< -lm -o $@
14
 
 
15
 
all:    cheese.so
16
 
 
17
 
clean:
18
 
        @echo Cleaning Demos/callback
19
 
        @rm -f *.c *.o *.so *~ core core.*