1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
169
  
170
  
171
  
172
  
173
  
174
  
175
  
176
  
177
  
178
  
179
  
180
  
181
  
182
  
183
  
184
  
185
  
186
  
187
  
188
  
189
  
190
  
191
  
192
  
193
  
194
  
195
  
196
  
197
  
198
  
199
  
200
  
201
  
202
  
203
  
204
  
205
  
206
  
207
  
208
  
209
  
210
  
211
  
212
  
213
  
214
  
215
  
216
  
217
  
218
  
219
  
220
  
221
  
222
  
223
  
224
  
225
  
226
  
227
  
228
  
229
  
230
  
231
  
232
  
233
  
234
  
235
  
236
  
237
  
238
  
239
  
240
  
241
  
242
  
243
  
244
  
245
  
246
  
247
  
248
  
249
  
250
  
251
  
252
  
253
  
254
  
255
  
256
  
257
  
258
  
259
  
260
  
261
  
262
  
263
  
264
  
265
  
266
  
267
  
268
  
269
  
270
  
271
  
272
  
273
  
274
  
275
  
276
  
277
  
278
  
279
  
280
  
281
  
282
  
283
  
284
  
285
  
286
  
287
  
288
  
289
  
290
  
291
  
292
  
293
  
294
  
295
  
296
  
297
  
298
  
299
  
300
  
301
  
302
  
303
  
304
  
305
  
306
  
307
  
308
  
309
  
310
  
311
  
312
  
313
  
314
  
315
  
316
  
317
  
318
  
319
  
320
  
321
  
322
  
323
  
324
  
325
  
326
  
327
  
328
  
329
  
330
  
331
  
332
  
333
  
334
  
335
  
336
  
337
  
338
  
339
  
340
  
341
  
342
  
343
  
344
  
345
  
346
  
347
  
348
  
349
  
350
  
351
  
352
  
353
  
354
  
355
  
356
  
357
  
358
  
359
  
360
  
361
  
362
  
363
  
364
  
365
  
366
  
367
  
368
  
369
  
370
  
371
  
372
  
373
  
374
  
375
  
376
  
377
  
378
  
379
  
380
  
381
  
382
  
383
  
384
  
385
  
386
  
387
  
388
  
389
  
390
  
391
  
392
  
393
  
394
  
395
  
396
  
397
  
398
  
399
  
400
  
401
  
402
  
403
  
404
  
405
  
406
  
407
  
408
  
409
  
410
  
411
  
412
  
413
  
414
  
415
  
416
  
417
  
418
  
419
  
420
  
421
  
422
  
423
  
424
  
425
  
426
  
427
  
428
  
429
  
430
  
431
  
432
  
433
  
434
  
435
  
436
  
437
  
438
  
439
  
440
  
441
  
442
  
443
  
444
  
445
  
446
  
447
  
448
  
449
  
450
  
451
  
452
  
453
  
454
  
455
  
456
  
457
  
458
  
459
  
460
  
461
  
462
  
463
  
464
  
465
  
466
  
467
  
468
  
469
  
470
  
471
  
472
  
473
  
474
  
475
  
476
  
477
  
478
  
479
  
480
  
481
  
482
  
483
  
484
  
485
  
486
  
487
  
488
  
489
  
490
  
491
  
492
  
493
  
494
  
495
  
496
  
497
  
498
  
499
  
500
  
501
  
502
  
503
  
504
  
505
  
506
  
507
  
508
  
509
  
510
  
511
  
512
  
513
  
514
  
515
  
516
  
517
  
518
  
519
  
520
  
521
  
522
  
523
  
524
  
525
  
526
  
527
  
528
  
529
  
530
  
531
  
532
  
533
  
534
  
535
  
536
  
537
  
538
  
539
  
540
  
541
  
542
  
543
  
544
  
545
  
546
  
547
  
548
  
549
  
550
  
551
  
552
  
553
  
554
  
555
  
556
  
557
  
558
  
559
  
560
  
561
  
562
  
563
  
564
  
565
  
566
  
567
  
568
  
569
  
570
  
571
  
572
  
573
  
574
  
575
  
576
  
577
  
578
  
579
  
580
  
581
  
582
  
583
  
584
  
585
  
586
  
587
  
588
  
589
  
590
  
591
  
592
  
593
  
594
  
595
  
596
  
597
  
598
  
599
  
600
  
601
  
602
  
603
  
604
  
605
  
606
  
607
  
608
  
609
  
610
  
611
  
612
  
613
  
614
  
615
  
616
  
617
  
618
  
619
  
620
  
621
  
622
  
623
  
624
  
625
  
626
  
627
  
628
  
629
  
630
  
631
  
632
  
633
  
634
  
635
  
636
  
637
  
638
  
639
  
640
  
641
  
642
  
643
  
644
  
645
  
646
  
647
  
648
  
649
  
650
  
651
  
652
  
653
  
654
  
655
  
656
  
657
  
658
  
659
  
660
  
661
  
662
  
663
  
664
  
665
  
666
  
667
  
668
  
669
  
670
  
671
  
672
  
673
  
674
  
675
  
676
  
677
  
678
  
679
  
680
  
681
  
682
  
683
  
684
  
685
  
686
  
687
  
688
  
689
  
690
  
691
  
692
  
693
  
694
  
695
  
696
  
697
  
698
  
699
  
700
  
701
  
702
  
703
  
704
  
705
  
706
  
707
  
708
  
709
  
710
  
711
  
712
  
713
  
714
  
715
  
716
  
717
  
718
  
719
  
720
  
721
  
722
  
723
  
724
  
725
  
726
  
727
  
728
  
729
  
730
  
731
  
732
  
733
  
734
  
735
  
736
  
737
  
738
  
739
  
740
  
741
  
742
  
743
  
744
  
745
  
746
  
747
  
748
  
749
  
750
  
751
  
752
  
753
  
754
  
755
  
756
  
757
  
758
  
759
  
760
  
761
  
762
  
763
  
764
  
765
  
766
  
767
  
768
  
769
  
770
  
771
  
772
  
773
  
774
  
775
  
776
  
777
  
778
  
779
  
780
  
781
  
782
  
783
  
784
  
785
  
786
  
787
  
788
  
789
  
790
  
791
  
792
  
793
  
794
  
795
  
796
  
797
  
798
  
799
  
800
  
801
  
802
  
803
  
804
  
805
  
806
  
807
  
808
  
809
  
810
  
811
  
812
  
813
  
814
  
815
  
816
  
817
  
818
  
819
  
820
  
821
  
822
  
823
  
824
  
825
  
826
  
827
  
828
  
829
  
830
  
831
  
832
  
833
  
834
  
835
  
836
  
837
  
838
  
839
  
840
  
841
  
842
  
843
  
844
  
845
  
846
  
847
  
848
  
849
  
850
  
851
  
852
  
853
  
854
  
855
  
856
  
857
  
858
  
859
  
860
  
861
  
862
  
863
  
864
  
865
  
866
  
867
  
868
  
869
  
870
  
871
  
872
  
873
  
874
  
875
  
876
  
877
  
878
  
879
  
880
  
881
  
882
  
883
  
884
  
885
  
886
  
887
  
888
  
889
  
890
  
891
  
892
  
893
  
894
  
895
  
896
  
897
  
898
  
899
  
900
  
901
  
902
  
903
  
904
  
905
  
906
  
907
  
908
  
909
  
910
  
911
  
912
  
913
  
914
  
915
  
916
  
917
  
918
  
919
  
920
  
921
  
922
  
923
  
924
  
925
  
926
  
927
  
928
  
929
  
930
  
931
  
932
  
933
  
934
  
935
  
936
  
937
  
938
  
939
  
940
  
941
  
942
  
943
  
944
  
945
  
946
  
947
  
948
  
949
  
950
  
951
  
952
  
953
  
954
  
955
  
956
  
957
  
958
  
959
  
960
  
961
  
962
  
963
  
964
  
965
  
966
  
967
  
968
  
969
  
970
  
971
  
972
  
973
  
974
  
975
  
976
  
977
  
978
  
979
  
980
  
981
  
982
  
983
  
984
  
985
  
986
  
987
  
988
  
989
  
990
  
991
  
992
  
993
  
994
  
995
  
996
  
997
  
998
  
999
  
1000
  
1001
  
1002
  
1003
  
1004
  
1005
  
1006
  
1007
  
1008
  
1009
  
1010
  
1011
  
1012
  
1013
  
1014
  
1015
  
1016
  
1017
  
1018
  
1019
  
1020
  
1021
  
1022
  
1023
  
1024
  
1025
  
1026
  
1027
  
1028
  
1029
  
1030
  
1031
  
1032
  
1033
  
1034
  
1035
  
1036
  
1037
  
1038
  
1039
  
1040
  
1041
  
1042
  
1043
  
1044
  
1045
  
1046
  
1047
  
1048
  
1049
  
1050
  
1051
  
1052
  
1053
  
1054
  
1055
  
1056
  
1057
  
1058
  
1059
  
1060
  
1061
  
1062
  
1063
  
1064
  
1065
  
1066
  
1067
  
1068
  
1069
  
1070
  
1071
  
1072
  
1073
  
1074
  
1075
  
1076
  
1077
  
1078
  
1079
  
1080
  
1081
  
1082
  
1083
  
1084
  
1085
  
1086
  
1087
  
1088
  
1089
  
1090
  
1091
  
1092
  
1093
  
1094
  
1095
  
1096
  
1097
  
1098
  
1099
  
1100
  
1101
  
1102
  
1103
  
1104
  
1105
  
1106
  
1107
  
1108
  
1109
  
1110
  
1111
  
1112
  
1113
  
1114
  
1115
  
1116
  
1117
  
1118
  
1119
  
1120
  
1121
  
1122
  
1123
  
1124
  
1125
  
1126
  
1127
  
1128
  
1129
  
1130
  
1131
  
1132
  
1133
  
1134
  
1135
  
1136
  
1137
  
1138
  
1139
  
1140
  
1141
  
1142
  
1143
  
1144
  
1145
  
1146
  
1147
  
1148
  
1149
  
1150
  
1151
  
1152
  
1153
  
1154
  
1155
  
1156
  
1157
  
1158
  
1159
  
1160
  
1161
  
1162
  
1163
  
1164
  
1165
  
1166
  
1167
  
1168
  
1169
  
1170
  
1171
  
1172
  
1173
  
1174
  
1175
  
1176
  
1177
  
1178
  
1179
  
1180
  
1181
  
1182
  
1183
  
1184
  
1185
  
1186
  
1187
  
1188
  
1189
  
1190
  
1191
  
1192
  
1193
  
1194
  
1195
  
1196
  
1197
  
1198
  
1199
  
1200
  
1201
  
1202
  
1203
  
1204
  
1205
  
1206
  
1207
  
1208
  
1209
  
1210
  
1211
  
1212
  
1213
  
1214
  
1215
  
1216
  
1217
  
1218
  
1219
  
1220
  
1221
  
1222
  
1223
  
1224
  
1225
  
1226
  
1227
  
1228
  
1229
  
1230
  
1231
  
1232
  
1233
  
1234
  
1235
  
1236
  
1237
  
1238
  
1239
  
1240
  
1241
  
1242
  
1243
  
1244
  
1245
  
1246
  
1247
  
1248
  
1249
  
1250
  
1251
  
1252
  
1253
  
1254
  
1255
  
1256
  
1257
  
1258
  
1259
  
1260
  
1261
  
1262
  
1263
  
1264
  
1265
  
1266
  
1267
  
1268
  
1269
  
1270
  
1271
  
1272
  
1273
  
1274
  
1275
  
1276
  
1277
  
1278
  
1279
  
1280
  
1281
  
1282
  
1283
  
1284
  
1285
  
1286
  
1287
  
1288
  
1289
  
1290
  
1291
  
1292
  
1293
  
1294
  
1295
  
1296
  
1297
  
1298
  
1299
  
1300
  
1301
  
1302
  
1303
  
1304
  
1305
  
1306
  
1307
  
1308
  
1309
  
1310
  
1311
  
1312
  
1313
  
1314
  
1315
  
1316
  
1317
  
1318
  
1319
  
1320
  
1321
  
1322
  
1323
  
1324
  
1325
  
1326
  
1327
  
1328
  
1329
  
1330
  
1331
  
1332
  
1333
  
1334
  
1335
  
1336
  
1337
  
1338
  
1339
  
1340
  
1341
  
1342
  
1343
  
1344
  
1345
  
1346
  
1347
  
1348
  
1349
  
1350
  
1351
  
1352
  
1353
  
1354
  
1355
  
1356
  
1357
  
1358
  
1359
  
1360
  
1361
  
1362
  
1363
  
1364
  
1365
  
1366
  
1367
  
1368
  
1369
  
1370
  
1371
  
1372
  
1373
  
1374
  
1375
  
1376
  
1377
  
1378
  
1379
  
1380
  
1381
  
1382
  
1383
  
1384
  
1385
  
1386
  
1387
  
1388
  
1389
  
1390
  
1391
  
1392
  
1393
  
1394
  
1395
  
1396
  
1397
  
1398
  
1399
  
1400
  
1401
  
1402
  
1403
  
1404
  
1405
  
1406
  
1407
  
1408
  
1409
  
1410
  
1411
  
1412
  
1413
  
1414
  
1415
  
1416
  
1417
  
1418
  
1419
  
1420
  
1421
  
1422
  
1423
  
1424
  
1425
  
1426
  
1427
  
1428
  
1429
  
1430
  
1431
  
1432
  
1433
  
1434
  
1435
  
1436
  
1437
  
1438
  
1439
  
1440
  
1441
  
1442
  
1443
  
1444
  
1445
  
1446
  
1447
  
1448
  
1449
  
1450
  
1451
  
1452
  
1453
  
1454
  
1455
  
1456
  
1457
  
1458
  
1459
  
1460
  
1461
  
1462
  
1463
  
1464
  
1465
  
1466
  
1467
  
1468
  
1469
  
1470
  
1471
  
1472
  
1473
  
1474
  
1475
  
1476
  
1477
  
1478
  
1479
  
1480
  
1481
  
1482
  
1483
  
1484
  
1485
  
1486
  
1487
  
1488
  
1489
  
1490
  
1491
  
1492
  
1493
  
1494
  
1495
  
1496
  
1497
  
# 
# $Id: Makefile.in,v 1.483 2010/05/29 23:56:18 mast Exp $ 
# 
 
# This line is needed on some machines. 
@SET_MAKE@ 
 
# Pike embed target, either libpike.so or libpike.a. 
PIKE_LIB=@PIKE_LIB@ 
 
# Don't change this line.  Define EXTRALIBS before this line if you 
# wish to add any libraries. 
LIBS=@LIBS@ $(EXTRALIBS) 
 
# This is normall the install program in the source directory 
INSTALL=@INSTALL@ 
 
SRCDIR=@srcdir@ 
VPATH=@srcdir@ 
 
# These are used while compiling 
LIBDIR_SRC = @LIBDIR@ 
TMP_BINDIR = @BINDIR@ 
TMP_BUILDDIR = @BUILDDIR@ 
TMP_LIBDIR = $(TMP_BUILDDIR)/lib 
 
# This is used during autodoc extraction. 
DOCDIR = @DOCDIR@ 
 
# These are used during binary exports and installation. 
MANDIR_SRC = @MANDIR@ 
DOCDIR_SRC = @DOCDIR@ 
BASEDIR = @BASEDIR@ 
PACKAGINGDIR = $(SRCDIR)/../packaging 
 
# These are used by the files generated by fixdepends.sh 
PIKE_SRC_DIR=$(SRCDIR) 
BUILD_BASE= 
 
# 
# RPM and package builders, listen up, because this is your only 
# documentation! This variable is prepended to the install path. 
# Please note that Pike will not work until moved into the proper 
# place.  -Hubbe 
#  
buildroot= 
 
prefix = @prefix@ 
exec_prefix = @exec_prefix@ 
bindir = @bindir@ 
lib_prefix = @libdir@/pike 
data_prefix = @datadir@ 
share_prefix = $(data_prefix)/pike 
man_prefix = @mandir@ 
include_prefix = @includedir@/pike 
 
# Arguments for test_pike.pike used by the verify targets. 
# TESTARGS = -F -a 
 
# Arguments for install.pike used by the install targets. 
INSTALLARGS = --new-style 
 
# 
# use bison please, yacc isn't good enough. 
# 
YACC=@YACC@ 
YFLAGS=-d -v 
 
# 
# This may be -pg 
# 
PROFIL=@PROFIL@ 
 
# 
# OS dependant flags 
# 
OSFLAGS=@OSFLAGS@ 
 
# 
#Enable warnings from the compiler, if wanted. 
# 
WARN=@WARN@ 
 
#add extra defines here 
DEFINES=@CPPFLAGS@ -DPIKE_CORE 
 
# -O should work with all compilers 
OPTIMIZE=@OPTIMIZE@ 
 
# interpret.o can't have -fomit-frame-pointer 
INTERPRET_DEOPTIMIZE=@INTERPRET_DEOPTIMIZE@ 
 
# Set to a flag for parallelizing make, e.g. -j2. It's given to make 
# at the level where it's most effective. 
MAKE_PARALLEL= 
 
# Preprocessor flags. 
PREFLAGS=-DPIKE_SRC_ROOT="$(BASEDIR)" -I. -I$(SRCDIR) $(DEFINES) 
OTHERFLAGS=@CFLAGS@ $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL) 
NOOPTFLAGS=@CFLAGS@ @CPPFLAGS@ $(OSFLAGS) $(WARN) $(PROFIL) 
CFLAGS=$(PREFLAGS) $(OTHERFLAGS) 
 
SMARTLINK=@SMARTLINK@ 
REALCC=@REALCC@ 
CC=@CC@ 
CPP=@CPP@ 
GDB=gdb 
 
CANDLE=@CANDLE@ -nologo 
LIGHT=@LIGHT@ -nologo 
RCEXE=@RCEXE@ 
 
FALLBACK_CC=@FALLBACK_CC@ 
 
AR=@AR@ 
 
LD=@LD@ 
LINKFORSHARED=@LINKFORSHARED@ 
LDFLAGS=@LDFLAGS@ $(LINKFORSHARED) $(EXTRALDFLAGS) 
LDSHARED=@LDSHARED@ 
 
DEFAULT_RUNPIKE=$(TMP_BUILDDIR)/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS) 
USE_TPIKE=$(TMP_BUILDDIR)/precompile.sh 
USE_PIKE=pike $(PIKEOPTS) 
RUNPIKE=$(@RUNPIKE@) 
RUNTPIKE=$(@RUNTPIKE@) 
PIKE_MODULE_RELOC=@PIKE_MODULE_RELOC@ 
 
# Set to an appropriate invocation of valgrind (or similar) 
VALGRIND=@VALGRIND@ 
VALGRINDARGS=@VALGRINDARGS@ 
 
MAKE_FLAGS= 
 
# Add alloca.o if you don't have alloca() on your machine. 
# 
CORE_OBJ= \ 
 language.o \ 
 security.o \ 
 bignum.o \ 
 pike_cpulib.o \ 
 interpret.o \ 
 constants.o \ 
 cpp.o \ 
 fdlib.o \ 
 cyclic.o \ 
 array.o \ 
 backend.o \ 
 callback.o \ 
 encode.o \ 
 docode.o \ 
 dynamic_buffer.o \ 
 dynamic_load.o \ 
 error.o \ 
 fd_control.o \ 
 fsort.o \ 
 gc.o \ 
 hashtable.o \ 
 lex.o \ 
 multiset.o \ 
 signal_handler.o \ 
 pike_search.o \ 
 pike_types.o \ 
 pike_embed.o \ 
 mapping.o \ 
 pike_memory.o \ 
 module_support.o \ 
 pikecode.o \ 
 object.o \ 
 opcodes.o \ 
 operators.o \ 
 pike_float.o \ 
 port.o \ 
 program.o \ 
 rbtree.o \ 
 rusage.o \ 
 sscanf.o \ 
 stralloc.o \ 
 stuff.o \ 
 threads.o \ 
 version.o \ 
 queue.o \ 
 builtin.o \ 
 iterators.o \ 
 facetgroup.o \ 
 svalue.o \ 
 las.o \ 
 builtin_functions.o \ 
 peep.o @DLOPEN_O@ @EXTRA_OBJS@ 
 
OBJ=$(CORE_OBJ) @MODULE_O@ 
 
MODULE_REQUIREMENTS= \ 
  headerfiles-stamp \ 
  machine.h \ 
  global.h \ 
  precompile.sh-stamp \ 
  modules/static_module_makefile \ 
  modules/dynamic_module_makefile \ 
  propagated_variables \ 
  $(SRCDIR)/language.h \ 
  $(SRCDIR)/interpret_protos.h \ 
  lib @EXTRA_MODULE_REQUIREMENTS@ 
 
SRC_TARGETS= \ 
 $(SRCDIR)/language.c \ 
 $(SRCDIR)/language.h \ 
 $(SRCDIR)/interpret_protos.h \ 
 $(SRCDIR)/interpret_functions_fixed.h \ 
 $(SRCDIR)/peep_engine.c \ 
 $(SRCDIR)/case_info.h \ 
 $(SRCDIR)/whitespace.h \ 
 $(SRCDIR)/treeopt.h @PMOD_TARGETS@ 
 
 
# 
# User callable targets 
# 
 
# Update the dumped modules, but only if dump_modules has been used earlier. 
all: module_objects post_module_objects pike-complete-stamp tools 
        @if [ -f dumpversion ]; then \ 
          echo "$(MAKE) $(MAKE_FLAGS) dump_modules"; \ 
          $(MAKE) $(MAKE_FLAGS) dump_modules; \ 
        else :; fi 
        @if [ "`find . -name '*.fail' -print`" = "" ]; then :; else \ 
          echo; \ 
          echo "Pike compiled and linked ok, but the following file(s) "; \ 
          echo "failed to compile with full optimization.";\ 
          echo "This may affect performance negatively."; \ 
          find . -name '*.fail' -print | sed -e 's/\.fail$$//' -e 's/^/ /'; \ 
          echo; \ 
        fi 
 
doc: documentation 
 
documentation: onepage.xml traditional.xml modref.xml 
        cd $(DOCDIR) && $(MAKE) $(MAKE_FLAGS) PIKE="$(RUNPIKE)" \ 
          BUILDDIR="$(TMP_BUILDDIR)" $(DOCTARGET) 
 
# Creation of bundles/include/pike/. 
 
headerfiles-stamp: bundles/include/pike machine.h global.h $(SRC_TARGETS) force 
        @$(MAKE) $(MAKE_FLAGS) headerfiles_low HEADERS="machine.h" HEADERSOURCE="`pwd`" 
        @$(MAKE) $(MAKE_FLAGS) headerfiles_low HEADERS="`cd $(SRCDIR) && echo *.h`" HEADERSOURCE="$(SRCDIR)" 
        @test -f headerfiles-stamp || echo foo > headerfiles-stamp 
 
headerfiles_low: force 
        @for f in $(HEADERS); do \ 
          if [ -h "bundles/include/pike/$$f" ]; then continue; fi; \ 
          if cmp "$(HEADERSOURCE)/$$f" "bundles/include/pike/$$f" >/dev/null 2>&1 ; then continue; fi; \ 
          rm -f bundles/include/pike/$$f 2>/dev/null; \ 
          echo "Creating bundles/include/pike/$$f"; \ 
          if ln -s "$(HEADERSOURCE)/$$f" "bundles/include/pike/$$f" && \ 
             ls -L "bundles/include/pike/$$f" >/dev/null 2>&1; then :; else \ 
            echo "Symlink failed."; \ 
            cp "$(HEADERSOURCE)/$$f" "bundles/include/pike/$$f" || exit 1; \ 
          fi; \ 
          echo foo > headerfiles-stamp; \ 
        done 
 
bundles/include/pike: bundles/include 
        test -d bundles/include/pike/. || mkdir bundles/include/pike 
 
bundles/include: bundles 
        test -d bundles/include/. || mkdir bundles/include 
 
bundles: 
        test -d bundles/. || mkdir bundles 
 
compiler-warnings : clean 
        @echo Summarizing compiler warnings. 
        @echo 
        @if $(MAKE) $(MAKE_FLAGS) all 2>compiler-warnings ; then \ 
          echo; \ 
          echo 'Compilation warning summary:'; \ 
          echo '----------------------------'; \ 
        else \ 
          echo; \ 
          echo 'Compilation warning and error summary:'; \ 
          echo '--------------------------------------'; \ 
        fi 
        @echo 
        @cat compiler-warnings 
        @echo 
        @echo 'End of summary' 
        @echo '--------------' 
 
# 
# We assume that Pike.framework will be used as an embedded framework within an application bundle. 
# if you want to install the framework in a standard location, like /Library/Frameworks, you will 
# need to use install_name_tool to change the location. don't blame me, blame dyld. 
# 
framework: OCPikeInterpreter.o $(OBJ) modules/linker_options @STATIC_POST_MODULES_LINKOPTS@ 
        @echo "Linking Pike.framework";\ 
        gcc -o Pike OCPikeInterpreter.o $(OBJ) `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` -framework Cocoa -dynamiclib -Wl,-single_module \ 
          -undefined dynamic_lookup -mmacosx-version-min=10.4 -current_version 7.7 -install_name @executable_path/../Frameworks/Pike.framework/Pike \ 
          -isysroot /Developer/SDKs/MacOSX10.4u.sdk  
        ls -l Pike 
        if test -x Pike.framework ; then rm -rf Pike.framework; fi 
        mkdir Pike.framework 
        mkdir Pike.framework/Versions 
        mkdir Pike.framework/Versions/7.7 
        mkdir Pike.framework/Versions/7.7/Headers 
        mkdir Pike.framework/Versions/7.7/Resources      
        mkdir Pike.framework/Versions/7.7/Resources/lib 
        mv Pike Pike.framework/Versions/7.7 
        cd Pike.framework/Versions && ln -s 7.7 Current 
        cd Pike.framework && ln -s Versions/Current/Resources Resources && ln -s Versions/Current/Headers Headers && \ 
                ln -s Versions/Current/Pike Pike 
        cp $(SRCDIR)/*.h Pike.framework/Versions/7.7/Headers 
        cp *.h Pike.framework/Versions/7.7/Headers 
        cp $(PACKAGINGDIR)/macosx/framework_Info.plist Pike.framework/Versions/7.7/Resources/Info.plist 
        MACHINE=`uname -m | tr " " "_"` && mkdir Pike.framework/Versions/7.7/Resources/$$MACHINE && cp -rf lib/* Pike.framework/Versions/7.7/Resources/$$MACHINE 
        cp -rf $(SRCDIR)/../lib/* Pike.framework/Versions/7.7/Resources/lib 
        cp master.pike Pike.framework/Versions/7.7/Resources/lib 
        cd Pike.framework && find . -type f -name '*.in' -exec rm -f {} \; 
        cd Pike.framework && find . -type d -name CVS -prune -exec rm -rf {} \; 
 
libpike.so: $(OBJ) modules/linker_options @STATIC_POST_MODULES_LINKOPTS@ 
        @echo "Linking libpike.so";\ 
        if $(TMP_BINDIR)/smartlink "$(LDSHARED)" $(LDFLAGS) -o libpike.@SO@ \ 
          $(OBJ) `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` \ 
          $(LIBS); then \ 
          if test "@SO@" != so ; then mv "module.@SO@" module.so ; \ 
          else :; fi ;\ 
        else \ 
          echo "Linking failed:" >&2; \ 
          echo $(TMP_BINDIR)/smartlink "$(LDSHARED)" $(LDFLAGS) -o libpike.@SO@ \ 
            $(OBJ) `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` \ 
            $(LIBS) >&2 ;\ 
          exit 1; \ 
        fi 
 
# FIXME: Static linked version; this doesn't work yet! 
#        Since we need to split linker_options into archives and options. 
libpike.a: $(OBJ) modules/linker_options @STATIC_POST_MODULES_LINKOPTS@ 
        -rm -f libpike.a 
        $(AR) cq libpike.a $(OBJ) 
        -@RANLIB@ libpike.a 
 
# tpike is only used when dynamic modules aren't. It's a pike with no 
# post modules linked in which is used during building of the post 
# modules. 
tpike-real: main.o $(CORE_OBJ) tmodule.o modules/linker_options 
        -@rm -f tpike tpike.exe 
        $(LD) $(LDFLAGS) main.o $(CORE_OBJ) tmodule.o \ 
          `cat modules/linker_options` \ 
          $(LIBS) -o tpike 
 
# Only want tpike to exist for use with $(RUNPIKE) in the modules. We 
# don't want to require it actually being up-to-date. 
tpike: master-stamp 
        $(MAKE) $(MAKE_FLAGS) $(MAKE_PARALLEL) tpike-real 
 
# If we build without dynamic modules then tpike is built first with 
# all modules under modules/ linked into it, then tpike is used for 
# post_modules source targets, and then pike is linked with both 
# modules/ and post_modules/. 
# 
# If we build with dynamic modules then pike is built first with the 
# few always-static modules under modules/, then the dynamic modules 
# under modules/ are built, then pike is used for post_modules source 
# targets, and then all modules under post_modules/ are built 
# dynamically. 
# 
# This means that a post_module can't be always-static and can't add 
# stuff to the pike linkage using LINKER_OPTIONS. 
# 
# @LDSHARED_BASE_REQS@ expands to pike.lib if dynamic DLL modules are 
# used on NT. 
pike pike.lib: main.o $(OBJ) master-stamp pike.syms modules/linker_options @STATIC_POST_MODULES_LINKOPTS@ @PIKE_ICON_RES@ 
        -@if [ -f pike.old.exe ] ; then rm -f pike.old.exe || : ; else : ; fi 
        -@if [ -f pike.old ] ; then rm -f pike.old || : ; else : ; fi 
        -@if [ -f pike.exe ] ; then mv pike.exe pike.old.exe || : ; else : ; fi 
        -@if [ -f pike ] ; then mv pike pike.old || : ; else : ; fi 
#       $(LD) $(LDFLAGS) main.o @DLOPEN_O@ -o pike 
        $(LD) $(LDFLAGS) main.o $(OBJ) \ 
          `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` \ 
          $(LIBS) @PIKE_ICON_RES@ -o pike 
        @MT_FIX_PIKE_EXE@ 
# The dumped modules are removed whenever Pike is relinked since some 
# of the bytecode methods (e.g. ia32) stores absolute addresses to 
# global structs. That should probably be fixed in them so that dumped 
# modules aren't link order dependent. 
        @if [ -f dumpversion ]; then \ 
          echo "$(MAKE) $(MAKE_FLAGS) delete_dumped_modules"; \ 
          $(MAKE) $(MAKE_FLAGS) delete_dumped_modules; \ 
        else :; fi 
 
# gcov 
gcov:  
        @for f in `cd "$(SRCDIR)" && find . -type f -name '*.c' -print`; do \ 
          if test -f `echo $$f | sed -e 's/\.$$/.bb/'`; then \ 
            for gf in `gcov $$f | sed -e 's/Creating \(.*\)\.gcov.*/\1.gcov/p' -ed`; do \ 
              echo "Generating $$f-$$gf."; \ 
              test -f "$$f-$$gf" && rm -f "$$f-$$gf"; \ 
              mv "$$gf" "$$f-$$gf"; \ 
            done; \ 
          else \ 
            :; \ 
          fi; \ 
        done 
        @echo 
        @echo "Summary:" 
        @for f in `find . -name '*.gcov' -print`; do \ 
          grep '######' $$f | \ 
          grep -v fatal | \ 
          grep -v -i inline | \ 
          grep -v PIKE_MODULE_EXIT | \ 
          egrep -v '######[     ]*{$$' | \ 
          egrep -v '######[     ]*}$$' | \ 
          wc -l | sed -e "s|^|$$f:|" -e 's/:[   ]*/:/' | \ 
          grep -v ':0'; \ 
        done | sort -n -t: -k2 
 
# purify 
pure: $(OBJ) master-stamp module_objects 
        -@mv pike pike.old 2>/dev/null || true 
        $(SMARTLINK) purify -max-threads=128 -thread_stack_change=8192 -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(REALCC) $(LDFLAGS) $(OBJ) `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` $(LIBS) -o pike 
 
# purecov 
cover: $(OBJ) master-stamp module_objects 
        -@mv pike pike.old 2>/dev/null || true 
        $(SMARTLINK) purecov purify -max-threads=128 -thread_stack_change=8192 -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(REALCC) $(LDFLAGS) $(OBJ) `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` $(LIBS) -o pike 
 
# quantify 
quant: $(OBJ) master-stamp module_objects 
        -@mv pike pike.old 2>/dev/null || true 
        $(SMARTLINK) quantify $(REALCC) $(LDFLAGS) $(OBJ) `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` $(LIBS) -o pike 
 
splint: 
        splint $(PREFLAGS) -warnposix +charintliteral -realcompare -boolops -predboolint $(FILE) 
 
atom: pike-complete-stamp 
        atom pike -tool atom -env threads -g -v `find lib/modules -type f -name '*.so' -print | sed -e 's/^/-incobj /g'` 
        mv pike pike.pre-atom 
        mv pike.third.threads pike 
        @echo Make sure you have '.' in your LD_LIBRARY_PATH. 
 
pixie: pike-complete-stamp 
        atom pike -tool pixie -env threads -g -v `find lib/modules -type f -name '*.so' -print | sed -e 's/^/-incobj /g'` 
        mv pike pike.pre-pixie 
        mv pike.pixie.threads pixie 
        @echo Make sure you have '.' in your LD_LIBRARY_PATH. 
 
tools: hilfe rsif 
 
hilfe: $(TMP_BINDIR)/hilfe Makefile 
        @echo "Creating hilfe..."; \ 
        ( sed -e 's!/usr/bin/env pike!$(bindir)/pike!' \ 
          <$(TMP_BINDIR)/hilfe >./hilfe && chmod 755 ./hilfe) || exit 1 ; 
 
rsif: $(TMP_BINDIR)/rsif Makefile 
        @echo "Creating rsif..."; \ 
        ( sed -e 's!pike!$(bindir)/pike!' <$(TMP_BINDIR)/rsif \ 
          >./rsif && chmod 755 ./rsif) || exit 1 ; 
 
dump_modules: pike-complete-stamp master-stamp 
        -rm dumpmodule.log 
        args="$(DUMPARGS)"; \ 
        args=$${args:-"--log-file --update-only=dumpversion --report-failed"}; \ 
        $(RUNPIKE) -x dump $$args \ 
        --recursive --target-dir=lib "$(LIBDIR_SRC)/modules" 
 
force_dump_modules: 
        -rm dumpversion 2>/dev/null 
        $(MAKE) $(MAKE_FLAGS) dump_modules 
 
delete_dumped_modules: 
        -find lib -type f -name \*.o | xargs rm -f 
 
undump_modules: delete_dumped_modules 
        -rm dumpversion 2>/dev/null 
 
.SUFFIXES: 
.SUFFIXES: .c .h .o .m .mmod .cmod .symlist .pp .pph .protos .h_src .wxs .wixobj .msi .msm 
 
.c.pp: 
        $(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \ 
          -DPMOD_PROTO=PMOD_PROTO "$<" >"$@" 
 
.c.protos: precompile.sh-stamp 
        ./precompile.sh --cache fake_dynamic_load.pike >"$@" --cpp --protos \ 
          $(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \ 
            -DPMOD_PROTO=PMOD_PROTO -DPIKE_PRECOMPILER=1 "$<" || \ 
          { rm "$@"; exit 1; } 
 
.h.pph: 
        $(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \ 
          -DPMOD_PROTO=PMOD_PROTO "$<" >"$@" 
 
 
# Several optimizers have problems with interpret.c 
# First try compiling with optimization and if that doesn't work, without. 
# GCC dumps core on some files @ OSF1 
# This kluge should work around that... 
# Extra kludge added: interpret.o gets special flags (deoptimization) 
.c.o: 
        @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \ 
        rm -f $@.fail >/dev/null 2>&1; \ 
        if test "x$@" = "xinterpret.o"; then EXTRAFLAGS="$(INTERPRET_DEOPTIMIZE)"; else EXTRAFLAGS=; fi; \ 
        if $(CC) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \ 
          status=$$?; \ 
          if test x"@noopt_retry@" = xyes ; then \ 
            echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ 
            echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@" >$@.fail ;\ 
            if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \ 
              status=$$?; \ 
              echo "Compilation command was:" >&2;\ 
              echo "$(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@" >&2 ;\ 
              exit $$status; \ 
            fi; \ 
          else \ 
            echo "Compilation command was:" >&2;\ 
            echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@" >&2 ;\ 
            exit $$status; \ 
          fi; \ 
        fi 
 
.m.o: 
        @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \ 
        rm -f $@.fail >/dev/null 2>&1; \ 
        if test "x$@" = "xinterpret.o"; then EXTRAFLAGS="$(INTERPRET_DEOPTIMIZE)"; else EXTRAFLAGS=; fi; \ 
        if $(CC) $(CFLAGS) $$EXTRAFLAGS -fobjc-exceptions -c $< -o $@ ; then : ; else \ 
          status=$$?; \ 
          if test x"@noopt_retry@" = xyes ; then \ 
            echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ 
            echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -fobjc-exceptions -c $< -o $@" >$@.fail ;\ 
            if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \ 
              status=$$?; \ 
              echo "Compilation command was:" >&2;\ 
              echo "$(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -fobjc-exceptions -c $< -o $@" >&2 ;\ 
              exit $$status; \ 
            fi; \ 
          else \ 
            echo "Compilation command was:" >&2;\ 
            echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -fobjc-exceptions -c $< -o $@" >&2 ;\ 
            exit $$status; \ 
          fi; \ 
        fi 
 
# 
# Please note that this must be accompanied by a dependency rule as 
# The .c file will not be created in the SOURCE directory otherwise. 
# -Hubbe 
# 
.cmod.c: precompile.sh-stamp $(TMP_BINDIR)/precompile.pike 
        ./precompile.sh --cache precompile.pike >"$@" "$<" || { rm "$@"; exit 1; } 
 
# The same applies to this. 
.symlist.c: precompile.sh-stamp $(SRCDIR)/mklibpike.pike 
        ./precompile.sh --cache $(SRCDIR)/mklibpike.pike -I. -I "$(SRCDIR)" -S "$<" -o "$@" || { rm "$@"; exit 1; } 
 
# This rule is used for some header files that are generated from the 
# source, to avoid excessive rebuilding when the source change in ways 
# that doesn't affect the header. 
# 
# It can cause a .h target to be out-of-date repeatedly, but since it 
# runs fast that's not an issue. This technique only works well in 
# make's that stat the target again after the rule has run and 
# recalculate the dependencies from that. Most make's seems to behave 
# like that. 
.h_src.h: 
        @if test -f "$@"; then \ 
          test -f "$@.nolines" || \ 
            sed -e '/^[ \t]*$$/d;/^[ \t]*#[ \t]*line.*$$/d' < "$@" > "$@.nolines" && \ 
          sed -e '/^[ \t]*$$/d;/^[ \t]*#[ \t]*line.*$$/d' < "$<" > "$<.nolines" && \ 
          cmp -s "$<.nolines" "$@.nolines"; \ 
        else \ 
          false; \ 
        fi || ( \ 
          rm -f "$@.nolines" 2>/dev/null; \ 
          echo "cp $< $@"; \ 
          cp "$<" "$@"; \ 
        ) 
 
.wxs.wixobj: 
        @if test -f "$@"; then rm -f "$@"; else :; fi # Paranoia 
        $(CANDLE) "$<" -out "$@" || { rm -f "$@"; exit 1; } 
 
.wixobj.msm: 
        @test -d cab_cache || mkdir cab_cache 
        @if test -f "$@"; then rm -f "$@"; else :; fi # Paranoia 
        $(LIGHT) "$<" -cc cab_cache -o "$@" || { rm -f "$@"; exit 1; } 
 
.wixobj.msi: 
        @test -d cab_cache || mkdir cab_cache 
        @if test -f "$@"; then rm -f "$@"; else :; fi # Paranoia 
        $(LIGHT) "$<" -cc cab_cache -o "$@" || { rm -f "$@"; exit 1; } 
 
Pike_banner.bmp: $(SRCDIR)/make_banner.pike $(SRCDIR)/../refdoc/src_images/pike_logo.gif 
        $(RUNPIKE) $(SRCDIR)/make_banner.pike $(SRCDIR)/../refdoc/src_images/pike_logo.gif >Pike_banner.bmp || rm Pike_banner.bmp 
 
UpFldrBtn.ibd: $(PACKAGINGDIR)/windows/UpFldrBtn.ibd 
        cp "$<" "$@" 
 
NewFldrBtn.ibd: $(PACKAGINGDIR)/windows/NewFldrBtn.ibd 
        cp "$<" "$@" 
 
PikeWin32Installer.vbs: $(PACKAGINGDIR)/windows/installer.vbs 
        @if [ -f "$@" ] && cmp "$<" "$@" >/dev/null; then \ 
          echo "PikeWin32Installer.vbs is up to date."; \ 
        else \ 
          echo cp '"'"$<"'"' '"'"$@"'"'; \ 
          cp "$<" "$@"; \ 
        fi 
 
Pike_module.msm: PikeWin32Installer.vbs 
 
Pike_module.wxs: pike-complete-stamp $(TMP_BINDIR)/install.pike Makefile 
        @no_autodoc="--no-autodoc"; \ 
        if [ -f autodoc.xml ]; then no_autodoc=""; fi; \ 
        $(RUNPIKE) $(TMP_BINDIR)/install.pike --wix-module $$no_autodoc \ 
        @INSTALL_EXPORT_ARGS@ \ 
        exec_prefix="$(bindir)" lib_prefix="$(lib_prefix)" \ 
        TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ 
        SRCDIR="$(SRCDIR)" prefix="$(prefix)" DOCDIR_SRC="$(DOCDIR_SRC)" \ 
        MANDIR_SRC="$(MANDIR_SRC)" \ 
        BASEDIR="$(BASEDIR)" man_prefix="$(man_prefix)" \ 
        cflags="@DYNAMIC_MODULE_FLAGS@" ldflags="" \ 
        pike_name=$(pike_name) PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" 
 
Pike.wxs: $(TMP_BINDIR)/install.pike Makefile 
        @no_autodoc="--no-autodoc"; \ 
        if [ -f autodoc.xml ]; then no_autodoc=""; fi; \ 
        $(RUNPIKE) $(TMP_BINDIR)/install.pike --wix $$no_autodoc \ 
        @INSTALL_EXPORT_ARGS@ \ 
        exec_prefix="$(bindir)" lib_prefix="$(lib_prefix)" \ 
        TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ 
        SRCDIR="$(SRCDIR)" prefix="$(prefix)" DOCDIR_SRC="$(DOCDIR_SRC)" \ 
        MANDIR_SRC="$(MANDIR_SRC)" \ 
        BASEDIR="$(BASEDIR)" man_prefix="$(man_prefix)" \ 
        cflags="@DYNAMIC_MODULE_FLAGS@" ldflags="" \ 
        pike_name=$(pike_name) PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" 
 
Pike.msi: Pike.wixobj Pike_ui.wixobj Pike_module.msm Pike_banner.bmp UpFldrBtn.ibd NewFldrBtn.ibd 
        @test -d cab_cache || mkdir cab_cache 
        @if test -f Pike.msi; then rm Pike.msi; else :; fi # Paranoia 
        $(LIGHT) Pike.wixobj Pike_ui.wixobj -o Pike.msi -cc cab_cache 
 
wix: Pike.msi 
 
wix_export: Pike.msi 
        VER=`$(RUNPIKE) --dumpversion` ;\ 
        cp Pike.msi $(BASEDIR)/Pike-v$(VER)-win32.msi ;\ 
        cp config.info $(BASEDIR)/Pike-v$(VER)-win32.info 
 
force : 
        @: 
 
pike.ico: $(PACKAGINGDIR)/windows/pike.ico 
        cp "$<" $@ 
 
pike_icon.res: pike.ico 
        echo 'pike ICON pike.ico' > pike_icon.rc 
        $(RCEXE) /fo $@ pike_icon.rc 
 
# install 
install: pike-complete-stamp tools 
        @$(RUNPIKE) $(TMP_BINDIR)/install.pike \ 
        exec_prefix="$(bindir)" lib_prefix="$(lib_prefix)" \ 
        include_prefix="$(include_prefix)" \ 
        TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ 
        SRCDIR="$(SRCDIR)" prefix="$(prefix)" DOCDIR_SRC="$(DOCDIR_SRC)" \ 
        MANDIR_SRC="$(MANDIR_SRC)" \ 
        man_prefix="$(man_prefix)" pike_name=$(pike_name) \ 
        fakeroot="$(buildroot)" PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" \ 
        cflags="@DYNAMIC_MODULE_FLAGS@" ldflags="" \ 
        $(INSTALLARGS) 
 
install_interactive: pike-complete-stamp tools 
        @$(RUNPIKE) $(TMP_BINDIR)/install.pike --interactive \ 
        exec_prefix="$(bindir)"  prefix=$(prefix) \ 
        TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ 
        SRCDIR="$(SRCDIR)" DOCDIR_SRC="$(DOCDIR_SRC)" \ 
        MANDIR_SRC="$(MANDIR_SRC)" \ 
        cflags="@DYNAMIC_MODULE_FLAGS@" ldflags="" \ 
        fakeroot="$(buildroot)" PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" 
 
# tidy up a bit 
tidy: 
        -rm -f a.out a.out.* *.fail *.pp *.protos core y.output y.tab.c y.tab.h 
        -rm -f core core.* *.o *.obj *.i *.i~ dynloadtest* cfl.* 
        -rm -f conftest.* hdrlist.h a.out.exe 
        -rm testsuite testsuite.tmp testsuite_test.pike testsuite_test_dir.pmod 
        -rm -f *.wixobj *.wxs Pike_banner.bmp UpFldrBtn.ibd NewFldrBtn.ibd PikeWin32Installer.vbs 
        -rm -f pike.ico pike_icon.rc pike_icon.res 
        -find lib -type f -name \*.o -o -name \*.obj | xargs rm -f 
 
# make clean 
clean_here: tidy doc_clean 
        -( cd tlib; find . -name testsuite | xargs rm ) 
        -( cd extra_tests; find . -name testsuite | xargs rm ) 
        -rm -f confdefs.h 
        -rm -rf test-install test-pike tpike tpike.* *.pdb 
        -rm -f TAGS tags yacc.acts yacc.debug yacc.tmp *.debug.log a.out pike.tmp 
        -rm -f hilfe rsif master.pike compiler-warnings dumpmodule.log 
        -rm -f interpreter_debug.h lexer?.h 
        -rm -f import-stamp master-stamp headerfiles-stamp 
        -rm -f static-modules-stamp dynamic-modules-stamp post-modules-stamp 
        -rm -f post-module-pike-stamp pike-complete-stamp 
        -rm -rf lib/modules/* 
#       -rm -f lib/master.pike 
 
clean: clean_here 
        -( cd modules; $(MAKE) $(MAKE_FLAGS) clean ) 
        -( cd post_modules; $(MAKE) $(MAKE_FLAGS) clean ) 
 
clean_pike: 
        -rm -f pike pike.lib pike.exe pike.exe.manifest pike.exp 
 
# Clean up everything that needs to go if the configure args change. 
config_change_clean: clean clean_pike 
 
# make _really_ clean 
spotless: clean_here clean_pike 
        -( cd modules; $(MAKE) $(MAKE_FLAGS) spotless ) 
        -( cd post_modules; $(MAKE) $(MAKE_FLAGS) spotless ) 
        -(cd $(SRCDIR); find . -type f -name '*.h.in' -print) | \ 
          sed -e 's/\.in$$//' | xargs rm -f 
        -rm -f Makefile config.* make_variables specs pike.syms 
        -rm -f .pure stamp-h 
        -rm -f lexical.c mon.out *.ln 
        -rm -f pike pike.exe pike.old pike.old.exe l.outa* num_files_to_install 
        -rm -f *.msm *.msi 
        -rm -f precompile.sh precompile.sh-stamp smartlink 
        -rm -rf tlib extra_tests lib precompile 
 
distclean: spotless 
 
cvsclean: distclean 
        ( for d in `cd $(SRCDIR) && find . -type d -print`; do \ 
            if test -f "$(SRCDIR)/$$d/.cvsignore" ; then \ 
              (cd "$$d" && rm -f `cat "$(SRCDIR)/$$d/.cvsignore"`); \ 
              (cd "$(SRCDIR)/$$d" && rm -f `cat "$(SRCDIR)/$$d/.cvsignore"`); \ 
            else :; fi; \ 
          done) 
 
# create tags 
tags: 
        ctags *.c 
 
TAGS: 
        etags -t *.h *.c 
 
# verify / debug 
testsuites: 
        $(MAKE) $(MAKE_FLAGS) testsuite 
        ( cd modules && $(MAKE) $(MAKE_FLAGS) testsuites ) 
        ( cd post_modules && $(MAKE) $(MAKE_FLAGS) testsuites ) 
        ( cd $(TMP_BUILDDIR) && $(TMP_BINDIR)/mklibtests.sh \ 
          --srcdir=$(LIBDIR_SRC) \ 
          --destdir=tlib --bindir=$(TMP_BINDIR) ) 
        if test -d "$(BASEDIR)/extra_tests" ; then \ 
          (cd "$(TMP_BUILDDIR)" && $(TMP_BINDIR)/mklibtests.sh \ 
           --srcdir="$(BASEDIR)/extra_tests" \ 
           --destdir=extra_tests --bindir=$(TMP_BINDIR) ) ; fi; 
 
just_verify: testsuites master-stamp 
        if test "x$(TESTARGS)" = x ; then args="-F -a -v" ; \ 
        else args="$(TESTARGS)" ; fi; \ 
        $(RUNPIKE) -x test_pike $$args 
 
valgrind_just_verify: testsuites master-stamp 
        if test "x$(TESTARGS)" = x ; then args="-a -v" ; \ 
        else args="$(TESTARGS)" ; fi; \ 
        $(VALGRIND) $(VALGRINDARGS) $(RUNPIKE) -x test_pike --subproc-start="$(VALGRIND) $(VALGRINDARGS)" $$args 
 
# Testsuite for dynamic loading debugging 
test_dlopen: dynloadtest.sh 
        sh ./dynloadtest.sh 
 
dynloadtest.sh: $(SRCDIR)/test_dynamic_loading.in 
        m4 "$(SRCDIR)/test_dynamic_loading.in" >"$@" 
 
dynloadtest.c: dynamic_load.c 
 
dynloadtest: dynloadtest.o @EXTRA_OBJS@ fdlib.o port.o 
        $(LD) $(LDFLAGS) dynloadtest.o @EXTRA_OBJS@ fdlib.o port.o $(LIBS) -o dynloadtest 
 
 
tinstall: master-stamp 
        -rm -rf test-install 
        $(RUNPIKE) $(TMP_BINDIR)/install.pike \ 
          `test -f autodoc.xml || echo --no-autodoc` \ 
          lib_prefix="$(lib_prefix)" \ 
          TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ 
          SRCDIR="$(SRCDIR)" DOCDIR_SRC="$(DOCDIR_SRC)" \ 
          MANDIR_SRC="$(MANDIR_SRC)" \ 
          man_prefix="$(man_prefix)" fakeroot="$(buildroot)" \ 
          PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" pike_name="test-pike" \ 
          cflags="@DYNAMIC_MODULE_FLAGS@" ldflags="" \ 
          prefix="./test-install" $(INSTALLARGS) 
 
just-tinstall: master-stamp 
        $(RUNPIKE) $(TMP_BINDIR)/install.pike \ 
          `test -f autodoc.xml || echo --no-autodoc` \ 
          lib_prefix="$(lib_prefix)" \ 
          TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ 
          SRCDIR="$(SRCDIR)" DOCDIR_SRC="$(DOCDIR_SRC)" \ 
          MANDIR_SRC="$(MANDIR_SRC)" \ 
          man_prefix="$(man_prefix)" fakeroot="$(buildroot)" \ 
          PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" pike_name="test-pike" \ 
          cflags="@DYNAMIC_MODULE_FLAGS@" ldflags="" \ 
          prefix="./test-install" $(INSTALLARGS) 
 
 
verify: testsuites tinstall 
        PIKE_MODULE_PATH=""; PIKE_INCLUDE_PATH=""; \ 
        if test "$(TESTARGS)" = "" ; then args="-F -a -v" ; else \ 
          args="$(TESTARGS)" ; fi; \ 
        if test -f ./test-pike ; then \ 
          ./test-pike -DNOT_INSTALLED $(PIKEOPTS) -x test_pike $$args ; \ 
        else \ 
          if test -f some-sprsh-test ; then \ 
            sprsh `pwd`/test-install/pike/*/bin/pike.exe -DNOT_INSTALLED $(PIKEOPTS) -x test_pike $$args ; \ 
          else \ 
            `pwd`/test-install/pike/*/bin/pike.exe -DNOT_INSTALLED $(PIKEOPTS) -x test_pike $$args ; \ 
          fi \ 
        fi 
 
valgrind_verify: testsuites tinstall 
        PIKE_MODULE_PATH=""; PIKE_INCLUDE_PATH=""; \ 
        if test "$(TESTARGS)" = "" ; then args="-a -v" ; else \ 
          args="$(TESTARGS)" ; fi; \ 
        if test -f ./test-pike ; then \ 
          $(VALGRIND) $(VALGRINDARGS) ./test-pike -DNOT_INSTALLED $(PIKEOPTS) -x test_pike --subproc-start="$(VALGRIND) $(VALGRINDARGS)" $$args ; \ 
        else \ 
          sprsh `pwd`/test-install/pike/*/bin/pike.exe -DNOT_INSTALLED $(PIKEOPTS) -x test_pike $$args ; \ 
        fi 
 
bench: tinstall 
        if test -f ./test-pike ; then \ 
          ./test-pike -DNOT_INSTALLED $(PIKEOPTS) -x benchmark; \ 
        else \ 
          if test -f some-sprsh-test ; then \ 
            sprsh `pwd`/test-install/pike/*/bin/pike.exe -DNOT_INSTALLED $(PIKEOPTS) -x benchmark ; \ 
          else \ 
            `pwd`/test-install/pike/*/bin/pike.exe -DNOT_INSTALLED $(PIKEOPTS) -x benchmark ; \ 
          fi \ 
        fi 
 
verify_installed: testsuites master-stamp 
        if test "$(TESTARGS)" = "" ; then args="-F -a -v" ; else \ 
          args="$(TESTARGS)" ; fi; \ 
        $(bindir)/pike $(PIKEOPTS) -x test_pike $$args 
 
check: verify 
 
sure: verify 
 
# verify / debug verbose 
verbose_verify: testsuites master-stamp 
        if test "$(TESTARGS)" = "" ; then args="-F -a" ; else args="$(TESTARGS)" ; fi; \ 
        $(RUNPIKE) -x test_pike -v -v $$args 
 
# verify & debug VERBOSE 
gdb_verify: testsuites master-stamp 
        @echo >.gdbinit handle SIGFPE nostop noprint pass 
        @echo >>.gdbinit handle SIGUSR1 nostop noprint pass 
        @echo >>.gdbinit handle SIGUSR2 nostop noprint pass 
        @echo >>.gdbinit handle SIGLWP nostop noprint pass 
        @if kill -l | grep SIGRTMIN >/dev/null ; then \ 
          echo >>.gdbinit handle SIG32 nostop noprint pass ;\ 
        else :; fi 
        @echo >>.gdbinit break debug_fatal 
        @echo >>.gdbinit break pike_gdb_breakpoint 
        @if test "$(TESTARGS)" = "" ; then args="-a -v -v" ; else \ 
          args="$(TESTARGS)" ; fi;  \ 
        echo >>.gdbinit set args \ 
          -m`echo "$(TMP_BUILDDIR)/master.pike" | ./posix_to_native.sh` \ 
          $(PIKEOPTS) -x test_pike --no-watchdog $$args 
        $(GDB) $(TMP_BUILDDIR)/pike 
        @rm .gdbinit 
 
gdb_hilfe: master.pike 
        @echo >.gdbinit handle SIGFPE nostop noprint pass 
        @echo >>.gdbinit handle SIGUSR1 nostop noprint pass 
        @echo >>.gdbinit handle SIGUSR2 nostop noprint pass 
        @echo >>.gdbinit handle SIGLWP nostop noprint pass 
        @if kill -l | grep SIGRTMIN >/dev/null ; then \ 
          echo >>.gdbinit handle SIG32 nostop noprint pass ;\ 
        else :; fi 
        @echo >>.gdbinit break debug_fatal 
        @echo >>.gdbinit break pike_gdb_breakpoint 
        @echo >>.gdbinit set args -m$(TMP_BUILDDIR)/master.pike $$ARGS 
        $(GDB) $(TMP_BUILDDIR)/pike 
        @rm .gdbinit 
 
# fast test 
fast_verify_testsuite: testsuite 
        PIKE_MODULE_PATH=""; PIKE_INCLUDE_PATH=""; \ 
        if test "$(TESTARGS)" = "" ; then args="-F -a" ; \ 
        else args="$(TESTARGS)" ; fi; \ 
        if test -f ./test-pike ; then \ 
          ./test-pike -DNOT_INSTALLED $(PIKEOPTS) -x test_pike $$args ; \ 
        else \ 
          sprsh `pwd`/test-install/pike/*/bin/pike.exe -DNOT_INSTALLED \ 
            $(PIKEOPTS) -x test_pike $$args ; \ 
        fi 
 
# run hilfe, for interactive testing 
run_hilfe: master.pike 
        $(RUNPIKE) $(ARGS) 
 
valgrind_hilfe: master.pike 
        $(VALGRIND) $(VALGRINDARGS) $(RUNPIKE) $(ARGS) 
 
feature_list: 
        $(RUNPIKE) --features 
 
run_bench: 
        $(RUNPIKE) $(ARGS) -x benchmark $(BENCHARGS) 
 
lib: Makefile 
        @for d in lib lib/modules lib/include; do \ 
          if [ -d $$d/. ]; then : ; else \ 
            echo "Creating $$d/."; \ 
            (mkdir $$d && chmod u+rwx $$d) || exit 1; \ 
          fi ; \ 
        done 
        @echo "Done." 
        -@touch ./lib 2>/dev/null || (touch lib/.broken_gnu_touch && rm lib/.broken_gnu_touch) 
 
$(SRCDIR)/type_checker.c: type_checker-stamp 
$(SRCDIR)/type_checker.h: type_checker-stamp 
type_checker-stamp: $(SRCDIR)/type_checker.in $(SRCDIR)/make_type_checker.pike 
        $(RUNPIKE) $(SRCDIR)/make_type_checker.pike "$<" && touch "$@" 
 
master.pike: $(LIBDIR_SRC)/master.pike.in Makefile 
        @if test "x$(PIKE_MODULE_RELOC)" = "x"; \ 
          then u=s,x,x,; \ 
          else u='s/^#undef PIKE_MODULE_RELOC/#define PIKE_MODULE_RELOC 1/'; \ 
        fi; \ 
        LC_ALL=C; export LC_ALL; \ 
        cmd="sed -e 's!#lib_prefix#!`echo '$(TMP_LIBDIR)' | ./posix_to_native.sh`!' \ 
          -e 's!#share_prefix#!`echo '$(LIBDIR_SRC)' | ./posix_to_native.sh`!' \ 
          -e 's!#include_prefix#!`echo '$(TMP_BUILDDIR)/bundles/include/pike' | ./posix_to_native.sh`!' \ 
          -e '$$u'"; \ 
        echo "$$cmd <$(LIBDIR_SRC)/master.pike.in >master.pike"; \ 
        eval $$cmd <$(LIBDIR_SRC)/master.pike.in >master.pike || { rm "master.pike"; exit 1; } 
 
# Want master.pike up-to-date, but yet there's no dependency on the 
# that file. Works like the .h_src.h target. 
master-stamp: master.pike 
        @test -f master-stamp || echo foo > master-stamp 
 
# 
# Documentation related stuff. 
# 
 
onepage.xml: autodoc.xml $(DOCDIR)/structure/onepage.xml 
        (cd "$(DOCDIR)" && \ 
          $(RUNPIKE) -x assemble_autodoc structure/onepage.xml \ 
            $(TMP_BUILDDIR)/autodoc.xml) >onepage.xml || { rm "$@"; exit 1; } 
 
traditional.xml: autodoc.xml $(DOCDIR)/structure/traditional.xml 
        ( cd "$(DOCDIR)" && \ 
          $(RUNPIKE) -x assemble_autodoc structure/traditional.xml \ 
            $(TMP_BUILDDIR)/autodoc.xml) >traditional.xml || { rm "$@"; exit 1; } 
 
modref.xml: autodoc.xml $(DOCDIR)/structure/modref.xml 
        (cd "$(DOCDIR)" && \ 
          $(RUNPIKE) -x assemble_autodoc structure/modref.xml \ 
            $(TMP_BUILDDIR)/autodoc.xml) >modref.xml || { rm "$@"; exit 1; } 
 
autodoc.xml: pike-complete-stamp doc_build/src doc_build/lib doc_build/images images1 images2 force 
        $(RUNPIKE) -x extract_autodoc -q --srcdir=$(SRCDIR) \ 
          --imgsrc=$(DOCDIR)/src_images --builddir=doc_build/src \ 
          --imgdir=doc_build/images 
        $(RUNPIKE) -x extract_autodoc -q --srcdir=$(LIBDIR_SRC) \ 
          --imgsrc=$(DOCDIR)/src_images --builddir=doc_build/lib \ 
          --imgdir=doc_build/images 
        $(RUNPIKE) -x join_autodoc --quiet --post-process autodoc.xml doc_build 
 
autodoc-stamp: 
        @test -f autodoc.xml || $(MAKE) autodoc.xml 
        @test -f autodoc-stamp || echo foo > autodoc-stamp 
 
images1: doc_build/src/post_modules/GTK/refdoc/images 
        @cp $(SRCDIR)/post_modules/GTK/refdoc/images/*.png \ 
          doc_build/src/post_modules/GTK/refdoc/images/ 
 
images2: doc_build/src/post_modules/GTK2/refdoc/images 
        @cp $(SRCDIR)/post_modules/GTK2/refdoc/images/*.png \ 
          doc_build/src/post_modules/GTK2/refdoc/images/ 
 
# Directories 
 
doc_build: 
        @test -d doc_build || mkdir doc_build 
 
doc_build/src: doc_build 
        @test -d doc_build/src || mkdir doc_build/src 
 
doc_build/lib: doc_build 
        @test -d doc_build/lib || mkdir doc_build/lib 
 
doc_build/images: doc_build 
        @test -d doc_build/images || mkdir doc_build/images 
 
doc_build/src/post_modules/GTK/refdoc/images: doc_build/src 
        @test -d doc_build/src/post_modules || \ 
          mkdir doc_build/src/post_modules 
        @test -d doc_build/src/post_modules/GTK || \ 
          mkdir doc_build/src/post_modules/GTK 
        @test -d doc_build/src/post_modules/GTK/refdoc || \ 
          mkdir doc_build/src/post_modules/GTK/refdoc 
        @test -d doc_build/src/post_modules/GTK/refdoc/images || \ 
          mkdir doc_build/src/post_modules/GTK/refdoc/images 
 
doc_build/src/post_modules/GTK2/refdoc/images: doc_build/src 
        @test -d doc_build/src/post_modules || \ 
          mkdir doc_build/src/post_modules 
        @test -d doc_build/src/post_modules/GTK2 || \ 
          mkdir doc_build/src/post_modules/GTK2 
        @test -d doc_build/src/post_modules/GTK2/refdoc || \ 
          mkdir doc_build/src/post_modules/GTK2/refdoc 
        @test -d doc_build/src/post_modules/GTK2/refdoc/images || \ 
          mkdir doc_build/src/post_modules/GTK2/refdoc/images 
 
doc_clean: 
        -rm -f onepage.xml traditional.xml modref.xml autodoc.xml resolution.log 
        -rm -rf doc_build 
 
 
pike.syms: $(SRCDIR)/interpret.c $(SRCDIR)/interpreter.h $(SRCDIR)/program.c $(SRCDIR)/builtin_functions.c 
        ( cat $(SRCDIR)/*.h *.h | egrep  '^[  ]*#[     ]*define[      ][       ]*[a-zA-Z_0-9]*[       ][      ]*[0-9][xabcdefABCDEF0-9]*[  ]*' ; \ 
        echo "#define" `$(CPP) $(PREFLAGS) -DSTEP_BREAK_LINE='STEP_BREAK_LINE __LINE__' $(SRCDIR)/interpreter.h | grep STEP_BREAK_LINE` ) >pike.syms 
 
# We touch the files that depend on language.h_src and 
# interpret_protos.h_src to ensure that the .h_src.h rule doesn't have 
# anything to do in the dist. 
source: depend 
        if test -f $(SRCDIR)/language.c; then touch $(SRCDIR)/language.c; else :; fi 
        if test -f $(SRCDIR)/language.h; then touch $(SRCDIR)/language.h; else :; fi 
        if test -f $(SRCDIR)/interpret_protos.h; then touch $(SRCDIR)/interpret_protos.h; else :; fi 
 
# make export archive (requires compiled Pike) 
# Do not compile in source tree if you want to use this! 
# Beware that export archive this includes bison/yacc/byacc source 
# and thus has to follow the rules stated in that code. 
 
full_export: source 
        chmod +x $(SRCDIR)/install-sh 
        $(RUNPIKE) $(TMP_BINDIR)/export.pike --srcdir="$(SRCDIR)"  \ 
        --exportlist="$(SRCDIR)/export_list" --name=Pike-v%maj.%min.%bld \ 
        --tag $(EXPORTARGS) 
 
EXPORT_NAME=Pike-v%maj.%min-%Y%M%D 
snapshot_export: source 
        chmod +x $(SRCDIR)/install-sh 
        $(RUNPIKE) $(TMP_BINDIR)/export.pike --srcdir="$(SRCDIR)"  \ 
        --exportlist="$(SRCDIR)/export_list" --name=$(EXPORT_NAME) \ 
        $(EXPORTARGS) 
 
export: full_export 
 
bin_export:  
        @rm -f *.burk 
        @no_autodoc="--no-autodoc"; \ 
        if [ -f autodoc.xml ]; then no_autodoc=""; fi; \ 
        $(RUNPIKE) $(TMP_BINDIR)/install.pike --export $$no_autodoc \ 
        @INSTALL_EXPORT_ARGS@ \ 
        exec_prefix="$(bindir)" lib_prefix="$(lib_prefix)" \ 
        TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ 
        SRCDIR="$(SRCDIR)" prefix="$(prefix)" DOCDIR_SRC="$(DOCDIR_SRC)" \ 
        MANDIR_SRC="$(MANDIR_SRC)" \ 
        BASEDIR="$(BASEDIR)" man_prefix="$(man_prefix)" \ 
        cflags="@DYNAMIC_MODULE_FLAGS@" ldflags="" \ 
        pike_name=$(pike_name) PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" 
        @case " $(CC)" in \ 
          *\ rnt*) \ 
            $(MAKE) $(MAKE_FLAGS) uncompress_header ;\ 
            echo "Compressing..." ;\ 
            filename=`echo *.burk | sed 's@\.burk$$@@g'`.exe ;\ 
            ( cat uncompress_header.exe ; gzip -9 -c *.burk ) > $$filename ;\ 
            echo "Done." ;\ 
          ;; \ 
        esac 
 
#new_peep_engine: 
#       $(RUNTPIKE) $(TMP_BINDIR)/mkpeep.pike $(SRCDIR)/peep.in >$(SRCDIR)/peep_engine.c 
#       $(RUNTPIKE) $(TMP_BINDIR)/make_ci.pike <$(SRCDIR)/UnicodeData.txt >$(SRCDIR)/case_info.h 
 
$(SRCDIR)/peep_engine.c: $(SRCDIR)/peep.in $(TMP_BINDIR)/mkpeep.pike 
        ./precompile.sh $(TMP_BINDIR)/mkpeep.pike $(SRCDIR)/peep.in >$(SRCDIR)/peep_engine.c || ( rm $(SRCDIR)/peep_engine.c ; exit 1 ) 
 
peep.o: $(SRCDIR)/peep_engine.c 
 
$(SRCDIR)/whitespace.h: $(SRCDIR)/UnicodeData.txt $(TMP_BINDIR)/getwhitespace.sh 
        $(TMP_BINDIR)/getwhitespace.sh >$(SRCDIR)/whitespace.h \ 
          <$(SRCDIR)/UnicodeData.txt 
 
$(SRCDIR)/case_info.h: $(SRCDIR)/UnicodeData.txt $(TMP_BINDIR)/make_ci.pike 
        ./precompile.sh $(TMP_BINDIR)/make_ci.pike $(SRCDIR)/case_info.h \ 
          <$(SRCDIR)/UnicodeData.txt 
 
builtin_functions.o: $(SRCDIR)/case_info.h $(SRCDIR)/combine_path.h 
 
$(SRCDIR)/treeopt.h: $(SRCDIR)/treeopt.in $(TMP_BINDIR)/mktreeopt.pike 
        ./precompile.sh $(TMP_BINDIR)/mktreeopt.pike $(SRCDIR)/treeopt.in || ( rm $(SRCDIR)/treeopt.h ; exit 1 ) 
 
las.o: $(SRCDIR)/treeopt.h 
 
# This dependency is here to make sure that lexer[012].h are generated. 
# The reason for the split is that some compilers (read cl) generate 
# better code then. Strange, but true. 
lex.o: lexer0.h lexer1.h lexer2.h 
 
lex.protos: lexer0.h lexer1.h lexer2.h 
 
lexer0.h: lexer.h 
        cp "$(SRCDIR)/lexer.h" "$@" 
 
lexer1.h: lexer.h 
        cp "$(SRCDIR)/lexer.h" "$@" 
 
lexer2.h: lexer.h 
        cp "$(SRCDIR)/lexer.h" "$@" 
 
 
# unbug needs interpreter_nd.h to be able to 
# set separate breakpoints in eval_instruction_with/without_debug 
interpreter_debug.h: interpreter.h 
        cp "$(SRCDIR)/interpreter.h" "$@" 
 
interpret.o: interpreter_debug.h $(SRCDIR)/interpret_functions_fixed.h 
 
# make dependencies 
depend: $(SRC_TARGETS) 
        gcc -MM -MG $(PREFLAGS) $(SRCDIR)/*.c | $(TMP_BINDIR)/fixdepends.sh "$(SRCDIR)" "$(SRCDIR)" /dev/null 
        -@(while :; do \ 
          echo foo > cfl.$@; test "`echo cfl.*`" = cfl.$@ && break; \ 
          rm cfl.$@; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \ 
          arb=37; while test $$arb != 0; do arb=`expr $$arb - 1`; done; \ 
        done;) 
        CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status || \ 
          (EXITCODE=$$?; rm cfl.$@; exit $$EXITCODE) 
        -@rm cfl.$@ 
        @( cd modules && { \ 
          rm -f remake; \ 
          $(MAKE) $(MAKE_FLAGS) depend || \ 
            { test -f remake && $(MAKE) $(MAKE_FLAGS) depend; }; \ 
        }) 
        @if [ "x$(RUNPIKE)" != "x$(DEFAULT_RUNPIKE)" -o -x $(TMP_BUILDDIR)/pike ]; then \ 
          $(MAKE) $(MAKE_FLAGS) post_modules_depend; \ 
        else \ 
          echo "Skipping make depend in post_modules since a fresh pike is"; \ 
          echo "needed to make the autogenerated sources there."; \ 
          :; \ 
        fi 
 
post_modules_depend: 
        @if [ "x$(RUNPIKE)" != "x$(DEFAULT_RUNPIKE)" -o -x $(TMP_BUILDDIR)/pike ]; then :; \ 
        else $(MAKE) $(MAKE_FLAGS) $(MAKE_PARALLEL) pike; fi 
        @( cd post_modules && { \ 
          rm -f remake; \ 
          $(MAKE) $(MAKE_FLAGS) depend || \ 
            { test -f remake && $(MAKE) $(MAKE_FLAGS) depend; }; \ 
        }) 
 
# 
# Pike internal targets 
# 
 
# touch static-modules-stamp here to avoid doing this work again if 
# that target is checked later. 
static_module_objects: $(MODULE_REQUIREMENTS) 
        @MODULE_BUILD_TYPE=static; \ 
        export MODULE_BUILD_TYPE; \ 
        ( cd modules && ( rm remake >/dev/null 2>&1 || : ) && \ 
          ( $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ 
            ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) \ 
        ) || exit $$? 
        @touch static-modules-stamp 
 
static-modules-stamp: $(MODULE_REQUIREMENTS) 
        @MODULE_BUILD_TYPE=static; \ 
        export MODULE_BUILD_TYPE; \ 
        ( cd modules && ( rm remake >/dev/null 2>&1 || : ) && \ 
          ( $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ 
            ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) \ 
        ) || exit $$? 
        @touch static-modules-stamp 
 
dynamic_module_objects: $(MODULE_REQUIREMENTS) @LDSHARED_BASE_REQS@ 
        @MODULE_BUILD_TYPE=dynamic; \ 
        export MODULE_BUILD_TYPE; \ 
        ( cd modules && ( rm remake >/dev/null 2>&1 || : ) && \ 
          ( $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ 
            ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) \ 
        ) || exit $$? 
        @touch dynamic-modules-stamp 
 
dynamic-modules-stamp: $(MODULE_REQUIREMENTS) @LDSHARED_BASE_REQS@ 
        @MODULE_BUILD_TYPE=dynamic; \ 
        export MODULE_BUILD_TYPE; \ 
        ( cd modules && ( rm remake >/dev/null 2>&1 || : ) && \ 
          ( $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ 
            ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) \ 
        ) || exit $$? 
        @touch dynamic-modules-stamp 
 
# Use submakes here to ensure both correct sequencing and that all 
# modules are properly rechecked. 
module_objects: 
        @$(MAKE) $(MAKE_FLAGS) static_module_objects 
        @$(MAKE) $(MAKE_FLAGS) dynamic_module_objects 
 
modules/modlist.h: static-modules-stamp 
 
modules/modlist_headers.h: static-modules-stamp 
 
modules/linker_options: static-modules-stamp 
 
post-module-pike-stamp: @BUILD_PIKE@ dynamic-modules-stamp 
        @touch post-module-pike-stamp 
 
module.o:  modules/modlist_headers.h modules/modlist.h post_modules/modlist_headers.h post_modules/modlist.h 
 
tmodule.o:  modules/modlist_headers.h modules/modlist.h 
 
# Backward compat. 
post_modules: post_module_objects 
 
post_module_objects: $(MODULE_REQUIREMENTS) post-module-pike-stamp @LDSHARED_BASE_REQS@ 
        @MODULE_BUILD_TYPE=@POST_MODULE_BUILD_TYPE@; \ 
        export MODULE_BUILD_TYPE; \ 
        ( cd post_modules && ( rm remake >/dev/null 2>&1 || : ) && \ 
          ( $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ 
            ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) \ 
        ) || exit $$? 
        @touch post-modules-stamp 
 
post-modules-stamp: $(MODULE_REQUIREMENTS) post-module-pike-stamp @LDSHARED_BASE_REQS@ 
        @MODULE_BUILD_TYPE=@POST_MODULE_BUILD_TYPE@; \ 
        export MODULE_BUILD_TYPE; \ 
        ( cd post_modules && ( rm remake >/dev/null 2>&1 || : ) && \ 
          ( $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ 
            ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) \ 
        ) || exit $$? 
        @touch post-modules-stamp 
 
post_modules/modlist_headers.h: post-modules-stamp 
 
post_modules/modlist.h: post-modules-stamp 
 
post_modules/linker_options: post-modules-stamp 
 
pike-complete-stamp: pike post-modules-stamp 
        @touch pike-complete-stamp 
 
$(SRCDIR)/interpret_protos.h_src: $(SRCDIR)/interpret_functions.h $(SRCDIR)/strip_opcodes 
        $(CPP) $(PREFLAGS) -DGEN_PROTOS $(SRCDIR)/interpret_functions.h | $(SRCDIR)/strip_opcodes >$(SRCDIR)/interpret_protos.h_src || { rm $(SRCDIR)/interpret_protos.h_src; exit 1; } 
 
lex.o: $(SRCDIR)/lex.c $(SRCDIR)/interpret_protos.h 
 
interpret.o: $(SRCDIR)/lex.c $(SRCDIR)/interpret_protos.h 
 
lex_t.o: $(SRCDIR)/lex_t.c $(SRCDIR)/interpret_protos.h 
 
language.o: $(SRCDIR)/language.c $(SRCDIR)/object.h $(SRCDIR)/interpret.h $(SRCDIR)/program.h 
 
$(SRCDIR)/language.c_src $(SRCDIR)/language.h_src: $(SRCDIR)/language.yacc 
        @echo "Expect 1 shift/reduce conflict." 
        cd $(SRCDIR) && $(YACC) $(YFLAGS) language.yacc 
        mv $(SRCDIR)/y.tab.c $(SRCDIR)/language.c_src 
        mv $(SRCDIR)/y.tab.h $(SRCDIR)/language.h_src 
 
$(SRCDIR)/language.c: $(SRCDIR)/language.c_src 
        sed -e 's/YY_COUNT_TYPE/@YY_COUNT_TYPE@/' \ 
            -e 's/YY_FROM_CONST/@YY_FROM_CONST@/' \ 
            -e 's/short[        ]*int[  ]/\/* short *\/ int /g' \ 
            -e 's/(short[       ]*int)/(\/* short *\/ int)/g' \ 
            < $(SRCDIR)/language.c_src > $(SRCDIR)/language.c 
 
$(SRCDIR)/interpret_functions_fixed.h: $(SRCDIR)/interpret_functions.h precompile.sh-stamp 
        ./precompile.sh --cache make_interpret_functions.pike >"$@" "$(SRCDIR)/interpret_functions.h" || { rm "$@"; exit 1; } 
 
# UnixWare make needs help to find the source file... 
builtin.o: $(SRCDIR)/builtin.c $(SRCDIR)/whitespace.h 
 
iterators.o: $(SRCDIR)/iterators.c 
 
facetgroup.o: $(SRCDIR)/facetgroup.c 
 
backend.o: $(SRCDIR)/backend.c 
 
libpike.o: $(SRCDIR)/libpike.c 
 
# Internal testing target 
run_yacc: $(SRCDIR)/language.c 
 
$(SRCDIR)/configure $(SRCDIR)/stamp-h.in: $(SRCDIR)/configure.in $(SRCDIR)/aclocal.m4 $(SRCDIR)/acconfig.h 
        cd $(SRCDIR) && ./run_autoconfig --no-recursion . 
        echo foo > $(SRCDIR)/stamp-h.in 
 
config.status propagated_variables: $(SRCDIR)/configure $(SRCDIR)/make_variables.in 
        ./config.status --recheck 
        @test -f propagated_variables && touch propagated_variables 
 
modules/common_module_makefile: $(SRCDIR)/modules/common_module_makefile.in config.status 
        -@(while :; do \ 
          echo foo > cfl.common_module_makefile; test "`echo cfl.*`" = cfl.common_module_makefile && break; \ 
          rm cfl.common_module_makefile; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \ 
          arb=17; while test $$arb != 0; do arb=`expr $$arb - 1`; done; \ 
        done;) 
        CONFIG_FILES=modules/common_module_makefile CONFIG_HEADERS="" ./config.status || \ 
          (EXITCODE=$$?; rm cfl.common_module_makefile; exit $$EXITCODE) 
        -@rm cfl.common_module_makefile 
 
modules/static_module_makefile: modules/common_module_makefile $(SRCDIR)/modules/static_module_makefile.in config.status 
        -@(while :; do \ 
          echo foo > cfl.static_module_makefile; test "`echo cfl.*`" = cfl.static_module_makefile && break; \ 
          rm cfl.static_module_makefile; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \ 
          arb=17; while test $$arb != 0; do arb=`expr $$arb - 1`; done; \ 
        done;) 
        CONFIG_FILES=modules/static_module_makefile CONFIG_HEADERS="" ./config.status || \ 
          (EXITCODE=$$?; rm cfl.static_module_makefile; exit $$EXITCODE) 
        -@rm cfl.static_module_makefile 
 
modules/dynamic_module_makefile: modules/common_module_makefile $(SRCDIR)/@dmmsrc@ config.status 
        -@(while :; do \ 
          echo foo > cfl.dynamic_module_makefile; test "`echo cfl.*`" = cfl.dynamic_module_makefile && break; \ 
          rm cfl.dynamic_module_makefile; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \ 
          arb=19; while test $$arb != 0; do arb=`expr $$arb - 1`; done; \ 
        done;) 
        CONFIG_FILES=modules/dynamic_module_makefile:@dmmsrc@ CONFIG_HEADERS="" ./config.status || \ 
          (EXITCODE=$$?; rm cfl.dynamic_module_makefile; exit $$EXITCODE) 
        -@rm cfl.dynamic_module_makefile 
 
Makefile: $(SRCDIR)/Makefile.in $(SRCDIR)/dependencies config.status 
        -@(while :; do \ 
          echo foo > cfl.$@; test "`echo cfl.*`" = cfl.$@ && break; \ 
          rm cfl.$@; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \ 
          arb=23; while test $$arb != 0; do arb=`expr $$arb - 1`; done; \ 
        done;) 
        CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status || \ 
          (EXITCODE=$$?; rm cfl.$@; exit $$EXITCODE) 
        -@rm cfl.$@ 
        touch remake 
        @echo "Run make again" 
        @exit 1 
 
precompile.sh: $(SRCDIR)/precompile.sh.in ./config.status 
        -@(while :; do \ 
          echo foo > cfl.$@; test "`echo cfl.*`" = cfl.$@ && break; \ 
          rm cfl.$@; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \ 
          arb=29; while test $$arb != 0; do arb=`expr $$arb - 1`; done; \ 
        done;) 
        CONFIG_FILES=precompile.sh CONFIG_HEADERS="" ./config.status || \ 
          (EXITCODE=$$?; rm cfl.$@; exit $$EXITCODE) 
        -@rm cfl.$@ 
 
# A dependency on precompile.sh-stamp only ensures that precompile.sh 
# exists, not that it's older than the target. In source dists, 
# precompile.sh is almost always newer than the targets that depend on 
# it, e.g. builtin.c that comes with the dist. 
# 
# The date stamp used to be 0103000070, but that seems to confuse some 
# recent OS's, that haven't heard of the 70's... 
# 
# Note that gnu touch is stupid, and warns about the syntax; thus the 
# redirect of stderr. 
# 
# BSD make is stupid, and doesn't restat precompile.sh-stamp and 
# recalculate the dependencies after executing the rule, thus the 
# recursive use of make. 
precompile.sh-stamp: 
        @if [ -f precompile.sh ]; then :; else $(MAKE) precompile.sh; fi 
        @touch 0101010185 precompile.sh-stamp 2>/dev/null 
 
$(SRCDIR)/machine.h.in: $(SRCDIR)/stamp-h.in 
        @if test -f $(SRCDIR)/machine.h.in; then :; else \ 
          rm $(SRCDIR)/stamp-h.in; $(MAKE) $(SRCDIR)/stamp-h.in; \ 
        fi 
 
machine.h: stamp-h 
        @if test -f machine.h; then :; else \ 
          rm stamp-h; $(MAKE) stamp-h; \ 
        fi 
 
stamp-h: $(SRCDIR)/stamp-h.in $(SRCDIR)/machine.h.in config.status 
        -@(while :; do \ 
          echo foo > cfl.$@; test "`echo cfl.*`" = cfl.$@ && break; \ 
          rm cfl.$@; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \ 
          arb=31; while test $$arb != 0; do arb=`expr $$arb - 1`; done; \ 
        done;) 
        CONFIG_FILES="" CONFIG_HEADERS=machine.h ./config.status || \ 
          (EXITCODE=$$?; rm cfl.$@; exit $$EXITCODE) 
        touch stamp-h 
        -@rm cfl.$@ 
 
testsuite: $(SRCDIR)/testsuite.in $(TMP_BINDIR)/mktestsuite 
        if test "$$PIKE_PATH_TRANSLATE" = ""; then \ 
          $(TMP_BINDIR)/mktestsuite $(SRCDIR)/testsuite.in >testsuite \ 
            -DSRCDIR="`echo $(SRCDIR)|./posix_to_native.sh`"; \ 
        else \ 
          $(TMP_BINDIR)/mktestsuite $(SRCDIR)/testsuite.in >testsuite \ 
            -DSRCDIR="`echo $(SRCDIR)|sed -e $$PIKE_PATH_TRANSLATE|./posix_to_native.sh`"; \ 
        fi 
 
header_uncompress: $(SRCDIR)/uncompressor.c 
        $(CC) -O2 -static  $(SRCDIR)/uncompressor.c -o header_uncompress @UNCOMPRESS_LIBZ@ 
 
uncompress_header: $(SRCDIR)/uncompressor.c header_uncompress 
        $(CC) -O2 -static  $(SRCDIR)/uncompressor.c -o uncompress_header @UNCOMPRESS_LIBZ@ -DSEEK_TO=`wc -c header_uncompress|sed 's/[^0-9]//g'` 
        test "`wc -c header_uncompress|sed 's/[^0-9]//g'`" = "`wc -c uncompress_header|sed 's/[^0-9]//g'`" 
 
HFILES=                                         \ 
  operators.protos                                      \ 
  array.protos                                  \ 
  fd_control.protos                                     \ 
  backend.protos                                        \ 
  fdlib.protos                                  \ 
  bignum.protos                                 \ 
  fsort.protos                                  \ 
  pike_memory.protos                                    \ 
  pike_types.protos                                     \ 
  gc.protos                                             \ 
  port.protos                                   \ 
  callback.protos                                       \ 
  hashtable.protos                                      \ 
  program.protos                                        \ 
  interpret.protos                                      \ 
  constants.protos                                      \ 
  language.protos                                       \ 
  queue.protos                                  \ 
  cpp.protos                                            \ 
  rusage.protos                                 \ 
  cyclic.protos                                 \ 
  lex.protos                                            \ 
  security.protos                                       \ 
  signal_handler.protos                         \ 
  pike_search.protos                            \ 
  docode.protos                                 \ 
  main.protos                                   \ 
  stralloc.protos                                       \ 
  mapping.protos                                        \ 
  stuff.protos                                  \ 
  dynamic_buffer.protos                         \ 
  svalue.protos                                 \ 
  dynamic_load.protos                           \ 
  module_support.protos                         \ 
  threads.protos                                        \ 
  multiset.protos                                       \ 
  encode.protos                                 \ 
  object.protos                                 \ 
  error.protos                                  \ 
  opcodes.protos                                        \ 
  version.protos                                    \ 
  builtin.protos                                        \ 
  iterators.protos                              \ 
  facetgroup.protos                             \ 
  rbtree.protos 
 
$(HFILES): precompile.sh-stamp 
 
import-stamp: $(HFILES) precompile.sh-stamp 
        @./precompile.sh fake_dynamic_load.pike >import_functions.tmp $(HFILES) 
        @cmp import_functions.tmp import_functions.h >/dev/null || mv import_functions.tmp import_functions.h 
        @echo hej >import-stamp 
 
import_functions.h: import-stamp 
        test -f import-stamp || ( rm import-stamp ; $(MAKE) import-stamp ) 
 
export_functions.c: import_functions.h 
        touch export_functions.c 
 
# Must have manual depends on all the bytecode methods in the code 
# dir, since make depend will only include the one that was chosen, 
# and that doesn't suffice in source dists. 
 
$(SRCDIR)/pikecode.h: \ 
  $(SRCDIR)/code/ia32.h \ 
  $(SRCDIR)/code/amd64.h \ 
  $(SRCDIR)/code/sparc.h \ 
  $(SRCDIR)/code/ppc32.h \ 
  $(SRCDIR)/code/ppc64.h \ 
  $(SRCDIR)/code/computedgoto.h \ 
  $(SRCDIR)/code/bytecode.h 
        touch $(SRCDIR)/pikecode.h 
 
$(SRCDIR)/pikecode.c: \ 
  $(SRCDIR)/code/ia32.c \ 
  $(SRCDIR)/code/amd64.c \ 
  $(SRCDIR)/code/sparc.c \ 
  $(SRCDIR)/code/ppc32.c \ 
  $(SRCDIR)/code/ppc64.c \ 
  $(SRCDIR)/code/computedgoto.c \ 
  $(SRCDIR)/code/bytecode.c 
        touch $(SRCDIR)/pikecode.c 
 
@dependencies@