Artifact 0d3b835065df690fd4b1fc473a1ad6921f079b51:
- File
kitdll/buildsrc/kitdll-0.0/Makefile.in
— part of check-in
[8fde0c7fbf]
at
2010-09-30 05:35:48
on branch trunk
— Fixed test driver to call initialization routine -- changed to tclsh.
Updated to support determing encoding from environment
Removed debugging printfs/puts (user: rkeene, size: 1288) [annotate] [blame] [check-ins using]
0000: 43 43 20 3d 20 40 43 43 40 0a 43 46 4c 41 47 53 CC = @CC@.CFLAGS 0010: 20 3d 20 40 43 46 4c 41 47 53 40 20 40 53 48 4f = @CFLAGS@ @SHO 0020: 42 4a 46 4c 41 47 53 40 20 2d 57 61 6c 6c 0a 43 BJFLAGS@ -Wall.C 0030: 50 50 46 4c 41 47 53 20 3d 20 40 43 50 50 46 4c PPFLAGS = @CPPFL 0040: 41 47 53 40 20 40 44 45 46 53 40 20 2d 44 4b 49 AGS@ @DEFS@ -DKI 0050: 54 44 4c 4c 5f 4d 41 4b 45 5f 4c 4f 41 44 41 42 TDLL_MAKE_LOADAB 0060: 4c 45 3d 31 0a 4c 44 46 4c 41 47 53 20 3d 20 40 LE=1.LDFLAGS = @ 0070: 4c 44 46 4c 41 47 53 40 0a 53 48 4f 42 4a 4c 44 LDFLAGS@.SHOBJLD 0080: 46 4c 41 47 53 20 3d 20 40 53 48 4f 42 4a 4c 44 FLAGS = @SHOBJLD 0090: 46 4c 41 47 53 40 0a 4c 49 42 53 20 3d 20 40 4c FLAGS@.LIBS = @L 00a0: 49 42 53 40 0a 53 54 41 54 49 43 4c 49 42 53 20 IBS@.STATICLIBS 00b0: 3d 20 40 54 43 4c 5f 4c 49 42 5f 53 50 45 43 40 = @TCL_LIB_SPEC@ 00c0: 20 2e 2e 2f 2e 2e 2f 2e 2e 2f 74 63 6c 76 66 73 ../../../tclvfs 00d0: 2f 69 6e 73 74 2f 6c 69 62 2f 76 66 73 31 2e 33 /inst/lib/vfs1.3 00e0: 2f 6c 69 62 76 66 73 31 2e 33 2e 61 0a 0a 23 20 /libvfs1.3.a..# 00f0: 44 65 66 61 75 6c 74 20 74 61 72 67 65 74 0a 61 Default target.a 0100: 6c 6c 3a 20 6c 69 62 74 63 6c 2e 40 53 48 4f 42 ll: libtcl.@SHOB 0110: 4a 45 58 54 40 0a 0a 23 20 42 75 69 6c 64 20 74 JEXT@..# Build t 0120: 61 72 67 65 74 73 0a 23 23 20 56 46 53 20 42 75 argets.## VFS Bu 0130: 69 6c 64 0a 76 66 73 5f 6b 69 74 64 6c 6c 5f 64 ild.vfs_kitdll_d 0140: 61 74 61 5f 74 63 6c 2e 6f 3a 20 76 66 73 5f 6b ata_tcl.o: vfs_k 0150: 69 74 64 6c 6c 5f 64 61 74 61 5f 74 63 6c 2e 63 itdll_data_tcl.c 0160: 0a 76 66 73 5f 6b 69 74 64 6c 6c 5f 64 61 74 61 .vfs_kitdll_data 0170: 5f 74 63 6c 2e 63 3a 20 64 69 72 32 63 2e 74 63 _tcl.c: dir2c.tc 0180: 6c 20 73 74 61 72 70 61 63 6b 2e 76 66 73 20 76 l starpack.vfs v 0190: 66 73 5f 6b 69 74 64 6c 6c 5f 64 61 74 61 2e 63 fs_kitdll_data.c 01a0: 0a 09 2e 2f 64 69 72 32 63 2e 74 63 6c 20 74 63 .../dir2c.tcl tc 01b0: 6c 20 73 74 61 72 70 61 63 6b 2e 76 66 73 20 3e l starpack.vfs > 01c0: 20 76 66 73 5f 6b 69 74 64 6c 6c 5f 64 61 74 61 vfs_kitdll_data 01d0: 5f 74 63 6c 2e 63 0a 0a 23 23 20 54 63 6c 6b 69 _tcl.c..## Tclki 01e0: 74 20 42 75 69 6c 64 0a 6b 69 74 49 6e 69 74 2e t Build.kitInit. 01f0: 6f 3a 20 6b 69 74 49 6e 69 74 2e 63 20 76 66 73 o: kitInit.c vfs 0200: 5f 6b 69 74 64 6c 6c 2e 74 63 6c 2e 68 0a 76 66 _kitdll.tcl.h.vf 0210: 73 5f 6b 69 74 64 6c 6c 2e 74 63 6c 2e 68 3a 20 s_kitdll.tcl.h: 0220: 76 66 73 5f 6b 69 74 64 6c 6c 2e 74 63 6c 0a 09 vfs_kitdll.tcl.. 0230: 2e 2f 73 74 72 69 6e 67 69 66 79 2e 74 63 6c 20 ./stringify.tcl 0240: 76 66 73 5f 6b 69 74 64 6c 6c 2e 74 63 6c 20 3e vfs_kitdll.tcl > 0250: 20 76 66 73 5f 6b 69 74 64 6c 6c 2e 74 63 6c 2e vfs_kitdll.tcl. 0260: 68 0a 0a 23 23 20 45 78 74 65 6e 73 69 6f 6e 73 h..## Extensions 0270: 0a 72 65 63 68 61 6e 2e 6f 3a 20 72 65 63 68 61 .rechan.o: recha 0280: 6e 2e 63 0a 70 77 62 2e 6f 3a 20 70 77 62 2e 63 n.c.pwb.o: pwb.c 0290: 0a 0a 23 23 20 44 4c 4c 20 42 75 69 6c 64 0a 6c ..## DLL Build.l 02a0: 69 62 74 63 6c 2e 40 53 48 4f 42 4a 45 58 54 40 ibtcl.@SHOBJEXT@ 02b0: 3a 20 76 66 73 5f 6b 69 74 64 6c 6c 5f 64 61 74 : vfs_kitdll_dat 02c0: 61 5f 74 63 6c 2e 6f 20 6b 69 74 49 6e 69 74 2e a_tcl.o kitInit. 02d0: 6f 20 72 65 63 68 61 6e 2e 6f 20 70 77 62 2e 6f o rechan.o pwb.o 02e0: 0a 09 24 28 43 43 29 20 24 28 43 50 50 46 4c 41 ..$(CC) $(CPPFLA 02f0: 47 53 29 20 24 28 43 46 4c 41 47 53 29 20 2d 6f GS) $(CFLAGS) -o 0300: 20 6c 69 62 74 63 6c 2e 73 6f 20 76 66 73 5f 6b libtcl.so vfs_k 0310: 69 74 64 6c 6c 5f 64 61 74 61 5f 74 63 6c 2e 6f itdll_data_tcl.o 0320: 20 6b 69 74 49 6e 69 74 2e 6f 20 72 65 63 68 61 kitInit.o recha 0330: 6e 2e 6f 20 70 77 62 2e 6f 20 24 28 4c 44 46 4c n.o pwb.o $(LDFL 0340: 41 47 53 29 20 24 28 53 48 4f 42 4a 4c 44 46 4c AGS) $(SHOBJLDFL 0350: 41 47 53 29 20 2d 57 6c 2c 2d 2d 77 68 6f 6c 65 AGS) -Wl,--whole 0360: 2d 61 72 63 68 69 76 65 20 24 28 53 54 41 54 49 -archive $(STATI 0370: 43 4c 49 42 53 29 20 2d 57 6c 2c 2d 2d 6e 6f 2d CLIBS) -Wl,--no- 0380: 77 68 6f 6c 65 2d 61 72 63 68 69 76 65 20 24 28 whole-archive $( 0390: 4c 49 42 53 29 0a 0a 23 20 54 65 73 74 20 64 72 LIBS)..# Test dr 03a0: 69 76 65 72 0a 74 65 73 74 2e 6f 3a 20 74 65 73 iver.test.o: tes 03b0: 74 2e 63 0a 74 65 73 74 3a 20 74 65 73 74 2e 6f t.c.test: test.o 03c0: 0a 09 24 28 43 43 29 20 24 28 43 50 50 46 4c 41 ..$(CC) $(CPPFLA 03d0: 47 53 29 20 24 28 43 46 4c 41 47 53 29 20 2d 6f GS) $(CFLAGS) -o 03e0: 20 74 65 73 74 20 74 65 73 74 2e 6f 20 2d 4c 2e test test.o -L. 03f0: 20 2d 6c 74 63 6c 20 2d 57 6c 2c 2d 52 2c 60 70 -ltcl -Wl,-R,`p 0400: 77 64 60 0a 0a 23 20 43 6c 65 61 6e 75 70 20 72 wd`..# Cleanup r 0410: 6f 75 74 65 69 6e 65 73 0a 63 6c 65 61 6e 3a 0a outeines.clean:. 0420: 09 72 6d 20 2d 66 20 6c 69 62 74 63 6c 2e 73 6f .rm -f libtcl.so 0430: 0a 09 72 6d 20 2d 66 20 72 65 63 68 61 6e 2e 6f ..rm -f rechan.o 0440: 20 6b 69 74 49 6e 69 74 2e 6f 0a 09 72 6d 20 2d kitInit.o..rm - 0450: 66 20 76 66 73 5f 6b 69 74 64 6c 6c 5f 64 61 74 f vfs_kitdll_dat 0460: 61 5f 74 63 6c 2e 63 20 76 66 73 5f 6b 69 74 64 a_tcl.c vfs_kitd 0470: 6c 6c 5f 64 61 74 61 5f 74 63 6c 2e 6f 0a 09 72 ll_data_tcl.o..r 0480: 6d 20 2d 66 20 76 66 73 5f 6b 69 74 64 6c 6c 2e m -f vfs_kitdll. 0490: 74 63 6c 2e 68 0a 09 72 6d 20 2d 66 20 74 65 73 tcl.h..rm -f tes 04a0: 74 2e 6f 20 74 65 73 74 0a 0a 64 69 73 74 63 6c t.o test..distcl 04b0: 65 61 6e 3a 20 63 6c 65 61 6e 0a 09 72 6d 20 2d ean: clean..rm - 04c0: 66 20 63 6f 6e 66 69 67 2e 73 74 61 74 75 73 20 f config.status 04d0: 63 6f 6e 66 69 67 2e 6c 6f 67 0a 09 72 6d 20 2d config.log..rm - 04e0: 66 20 4d 61 6b 65 66 69 6c 65 0a 0a 2e 50 48 4f f Makefile...PHO 04f0: 4e 59 3a 20 61 6c 6c 20 63 6c 65 61 6e 20 64 69 NY: all clean di 0500: 73 74 63 6c 65 61 6e 0a stclean.