1# makefile for Tcl/Tk example. 2 3# Copyright (c) 1997-2018 by Marc Feeley, All Rights Reserved. 4 5herefromroot = examples/tcltk 6rootfromhere = ../.. 7SUBDIRS = 8 9PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@ 10PACKAGE_NAME = @PACKAGE_NAME@ 11PACKAGE_VERSION = @PACKAGE_VERSION@ 12PACKAGE_STRING = @PACKAGE_STRING@ 13PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 14PACKAGE_TARNAME = @PACKAGE_TARNAME@ 15 16@SET_MAKE@ 17 18srcdir = @srcdir@ 19VPATH = @srcdir@ 20srcdirpfx = @srcdirpfx@ 21 22C_COMPILER = @C_COMPILER_MF@ 23C_PREPROC = @C_PREPROC_MF@ 24FLAGS_OBJ = @FLAGS_OBJ_MF@ 25FLAGS_DYN = @FLAGS_DYN_MF@ 26FLAGS_LIB = @FLAGS_LIB_MF@ 27FLAGS_EXE = @FLAGS_EXE_MF@ 28FLAGS_OPT = @FLAGS_OPT_MF@ 29FLAGS_OPT_RTS = @FLAGS_OPT_RTS_MF@ 30DEFS = @DEFS@ 31LIBS = @LIBS@ 32 33GAMBITLIB_DEFS = @GAMBITLIB_DEFS_MF@ 34LIB_PREFIX = @LIB_PREFIX@ 35LIB_VERSION_SUFFIX = @LIB_VERSION_SUFFIX@ 36LIB_MAJOR_VERSION_SUFFIX = @LIB_MAJOR_VERSION_SUFFIX@ 37 38LIB_EXTENSION = @LIB_EXTENSION@ 39GAMBITLIB = @GAMBITLIB@ 40GAMBITGSCLIB = @GAMBITGSCLIB@ 41GAMBITGSILIB = @GAMBITGSILIB@ 42INSTALL = @INSTALL@ 43INSTALL_DATA = @INSTALL_DATA@ 44INSTALL_LIB = @INSTALL_LIB@ 45INSTALL_PROGRAM = @INSTALL_PROGRAM@ 46LN_S = @LN_S@ 47RANLIB = @RANLIB@ 48AR = @AR@ 49RC = @RC@ 50GIT = @GIT@ 51HG = @HG@ 52 53prefix = @prefix@ 54exec_prefix = @exec_prefix@ 55includedir = @includedir@ 56libdir = @libdir@ 57bindir = @bindir@ 58docdir = @docdir@ 59infodir = @infodir@ 60emacsdir = @emacsdir@ 61libexecdir = @libexecdir@ 62datarootdir = @datarootdir@ 63datadir = @datadir@ 64htmldir = @htmldir@ 65dvidir = @dvidir@ 66pdfdir = @pdfdir@ 67psdir = @psdir@ 68localedir = @localedir@ 69mandir = @mandir@ 70 71.SUFFIXES: .scm .c @obj@ .o1 72 73RCFILES = makefile.in README tcltk.scm "tcltk\#.scm" test.scm \ 74fig16-1.scm fig16-2.scm fig16-3.scm fig16-6.scm fig16-7.scm \ 75fig16-8.scm fig16-9.scm fig16-10.scm fig16-11.scm fig16-12.scm \ 76fig16-13.scm fig16-14.scm fig16-15.scm fig16-16.scm fig16-17.scm fig17-9.scm 77 78GENDISTFILES = 79 80DISTFILES = $(RCFILES) $(GENDISTFILES) 81 82all: 83 84all-pre: 85 86all-post: 87 88examples: test.o1 run 89 90.scm.o1: 91 rm -f $*.o* 92 @SETDLPATH@ $(rootfromhere)/gsc/gsc -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include -warnings -cc-options "@X_CFLAGS@" -ld-options "@X_PRE_LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ -ltcl -ltk -lX11" $(srcdirpfx)$*.scm 93 94run: tcltk.o1 95 @SETDLPATH@ $(rootfromhere)/gsi/gsi -:~~bin=$(srcdirpfx)$(rootfromhere)/bin,~~lib=$(srcdirpfx)$(rootfromhere)/lib,~~include=$(srcdirpfx)$(rootfromhere)/include tcltk -e '(load "test") (main)' 96 97bootstrap-pre: 98 99bootstrap-post: 100 101install-pre: 102 103install-post: all 104 105uninstall-pre: 106 107uninstall-post: 108 109select-gen-for-commit-pre: 110 111select-gen-for-commit-post: 112 113deselect-gen-for-commit-pre: 114 115deselect-gen-for-commit-post: 116 117mostlyclean-pre: 118 119mostlyclean-post: 120 rm -f tcltk.c tcltk@obj@ tcltk.o1 test.c test@obj@ test.o1 121 122clean-pre: mostlyclean-pre 123 124clean-post: mostlyclean-post 125 rm -f *.gcov *.gcno *.gcda 126 127distclean-pre: clean-pre 128 129distclean-post: clean-post 130 131bootclean-pre: distclean-pre 132 133bootclean-post: distclean-post 134 135realclean-pre: bootclean-pre 136 137realclean-post: bootclean-post 138 rm -f makefile 139 140rc-setup-pre: 141 $(RC) add $(RCFILES) 142 143rc-setup-post: 144 145dist-pre dist-devel-pre: 146 mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 147 chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 148 @echo " Copying distribution files:" 149 @for file in $(DISTFILES); do \ 150 echo " $(herefromroot)/$$file"; \ 151 ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \ 152 || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \ 153 done 154 155dist-post dist-devel-post: 156 157all-recursive bootstrap-recursive install-recursive uninstall-recursive select-gen-for-commit-recursive deselect-gen-for-commit-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive: 158 @if test -n "$(SUBDIRS)"; then \ 159 for subdir in ""$(SUBDIRS); do \ 160 target=`echo $@ | sed 's/-recursive//'`; \ 161 echo making $$target in $$subdir; \ 162 (cd $$subdir && $(MAKE) $$target) || exit 1; \ 163 done \ 164 fi 165 166all: all-post 167 168all-post: all-recursive 169 170all-recursive: all-pre 171 172bootstrap: bootstrap-post 173 174bootstrap-post: bootstrap-recursive 175 176bootstrap-recursive: bootstrap-pre 177 178install: install-post 179 180install-post: install-recursive 181 182install-recursive: install-pre 183 184uninstall: uninstall-post 185 186uninstall-post: uninstall-recursive 187 188uninstall-recursive: uninstall-pre 189 190select-gen-for-commit: select-gen-for-commit-post 191 192select-gen-for-commit-post: select-gen-for-commit-recursive 193 194select-gen-for-commit-recursive: select-gen-for-commit-pre 195 196deselect-gen-for-commit: deselect-gen-for-commit-post 197 198deselect-gen-for-commit-post: deselect-gen-for-commit-recursive 199 200deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre 201 202mostlyclean: mostlyclean-post 203 204mostlyclean-post: mostlyclean-recursive 205 206mostlyclean-recursive: mostlyclean-pre 207 208clean: clean-post 209 210clean-post: clean-recursive 211 212clean-recursive: clean-pre 213 214distclean: distclean-post 215 216distclean-post: distclean-recursive 217 218distclean-recursive: distclean-pre 219 220bootclean: bootclean-post 221 222bootclean-post: bootclean-recursive 223 224bootclean-recursive: bootclean-pre 225 226realclean: realclean-post 227 228realclean-post: realclean-recursive 229 230realclean-recursive: realclean-pre 231 232rc-setup: rc-setup-post 233 234rc-setup-post: rc-setup-recursive 235 236rc-setup-recursive: rc-setup-pre 237 238dist: dist-post 239 240dist-post: dist-recursive 241 242dist-recursive: dist-pre 243 244dist-devel: dist-devel-post 245 246dist-devel-post: dist-devel-recursive 247 248dist-devel-recursive: dist-devel-pre 249 250makefile: makefile.in $(rootfromhere)/config.status 251 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status 252 253# Tell versions [3.59,3.63) of GNU make not to export all variables. 254# Otherwise a system limit (for SysV at least) may be exceeded. 255.NOEXPORT: 256