Posted to tcl by jdc at Tue Apr 15 11:29:06 GMT 2008view raw

  1. TCLDIR = /target/staff/decoster/activetcl/8.5.0.0
  2. TCLINCDIR = $(TCLDIR)/include
  3. TCLLIBDIR = $(TCLDIR)/lib
  4. TCLLIB = $(TCLLIBDIR)/libtcl8.5.so
  5.  
  6. all: example.so
  7.  
  8. example.so : example.o
  9. g++ -shared -o example.so example.o $(TCLLIB)
  10.  
  11. example.o : example.c
  12. g++ -fPIC -I$(TCLINCDIR) example.c -c -o example.o