Chapter 5. Complete program listings.
USERLDFLAGS=
#
# Append your objects to the definitions below:
#
OBJECTS=MySpecTclApp.o MyEventProcessor.o
#
# Finally the makefile targets.
#
SpecTcl: $(OBJECTS)
$(CXXLD) -o SpecTcl $(OBJECTS) $(USERLDFLAGS) \
$(LDFLAGS)
clean:
rm -f $(OBJECTS) SpecTcl
depend:
makedepend $(USERCXXFLAGS) *.cpp *.c
help:
echo "make - Build customized SpecTcl"
echo "make clean - Remove objects from previous builds"
echo "make depend - Add dependencies to the Makefile. "
Example 5-10. startspectcl
#!/bin/bash
. /etc/profile # co:profile
. ~/.bashrc
cd ~/experiment/spectcl # co:cd
./SpecTcl <setup.tcl # co:spectclstart
Example 5-11. SpecTcl Setup file setup.tcl
source myspectra.tcl; # co:definitions
sbind -all; # co:bind
.gui.b update; # co:treeupdate
68
Comentários a estes Manuais