/[ascend]/trunk/models/johnpye/extfn/Makefile
ViewVC logotype

Diff of /trunk/models/johnpye/extfn/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 209 by johnpye, Tue Jan 24 12:44:32 2006 UTC revision 367 by johnpye, Fri Mar 10 07:44:59 2006 UTC
# Line 4  PACKAGES = extfntest Line 4  PACKAGES = extfntest
4  SO_SUF = .so  SO_SUF = .so
5  SO_PREF = lib  SO_PREF = lib
6    
7  ASCEND_INCDIR = ~/src/ascend/trunk/base/generic/  ASCEND_BASE_REL = ../../..
8    
9    ASCEND_BASE = $(shell cd $(ASCEND_BASE_REL) && pwd)
10    
11    ASCEND_INCDIR = $(ASCEND_BASE)/base/generic
12    
13  LIBS = $(PACKAGES:%=$(SO_PREF)%$(SO_SUF))  LIBS = $(PACKAGES:%=$(SO_PREF)%$(SO_SUF))
14    
# Line 14  makelibs: $(LIBS) Line 18  makelibs: $(LIBS)
18      @echo "Compiled libraries $(LIBS)"      @echo "Compiled libraries $(LIBS)"
19    
20  test: $(LIBS)  test: $(LIBS)
21      PYTHONPATH=~/src/ascend/trunk/pygtk/interface/ python extfntest.py      PYTHONPATH=$(ASCEND_BASE)/pygtk/interface/ python extfntest.py
22    
23  ascend:  ascend:
24      make -j2 -C ~/src/ascend/trunk/pygtk/interface/      make -j2 -C $(ASCEND_BASE)/pygtk/interface/
25    
26  CC = gcc  CC = gcc
27    
28  LD = libtool --mode=link gcc -module -shared -fPIC  LD = libtool --mode=link $(CC) -module -shared
29    
30  LDFLAGS = -lm  LDFLAGS = -lm
31    
32  CPPFLAGS = -I $(ASCEND_INCDIR)  CPPFLAGS = -I$(ASCEND_INCDIR)
33  CFLAGS = -O -c  CFLAGS = -O -c
34    
35  $(SO_PREF)%$(SO_SUF): %.o  $(SO_PREF)%$(SO_SUF): %.o
36      $(LD) -o $@ $^ $(LDFLAGS)      $(LD) -o $@ $^ $(LDFLAGS)
37    
38  %.o: %.c  %.lo: %.c
39      $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^      libtool --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $^
40    
41  clean:  clean:
42      -rm *.o *.so      -rm *.o *.so

Legend:
Removed from v.209  
changed lines
  Added in v.367

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22