Check-in [0f6ae4a4cf]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Spellcheck
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:0f6ae4a4cf1469accf8d05e72cffb48397270ba3
User & Date: jim 2015-12-04 19:39:38
Context
2015-12-04
19:39
Spellcheck Leaf check-in: 0f6ae4a4cf user: jim tags: trunk
2013-01-29
19:09
[194767860a] Had text line with no cmt check-in: 08a24d0ece user: jim tags: trunk
Changes

Changes to Docs/pbtomake.lyx.

1
2
3
4
5
6
7
8
9
...
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
...
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
...
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
...
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
...
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
...
274
275
276
277
278
279
280
281











282
283
284
285
286
287
288
...
305
306
307
308
309
310
311


312
313
314
315
316
317
318
319
320
...
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
...
651
652
653
654
655
656
657

658

659
660
661
662
663
664
665
...
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
...
834
835
836
837
838
839
840

841

842
843
844
845
846
847
848
...
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
...
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
...
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
....
1056
1057
1058
1059
1060
1061
1062

1063

1064
1065
1066
1067
1068
1069
1070
....
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
....
1117
1118
1119
1120
1121
1122
1123

1124

1125
1126
1127
1128
1129
1130
1131
....
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
#LyX 1.4.0 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass article
\begin_preamble

% Include the proper LaTeX packages:
%----------------------------------------------------------------------------------------------------
................................................................................
% Setup footer:
%------------------------------------------------------------------------------------------
\renewcommand{\footrulewidth}{0.4pt}
\fancyfoot[L]{\sffamily \bfseries \documentNumber \\ \mdseries Revision:  \revisionNumber}
\fancyfoot[C]{\sffamily \bfseries\thedate \\ \mdseries Software Manual}
\fancyfoot[R]{\ifthenelse{\boolean{romanpn}}{\sffamily  \thepage}{\sffamily \bfseries Page \thepage\ of \pageref{LastPage}}}
\end_preamble


\language english

\inputencoding auto


\fontscheme default








\graphics default




\paperfontsize 11
\spacing single

\papersize letterpaper
\use_geometry false
\use_amsmath 1









\cite_engine basic


\use_bibtopic false

\paperorientation portrait







\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle fancy
\tracking_changes false
\output_changes true



\end_header

\begin_body

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Standard


\backslash
renewcommand{
\backslash
documentNumber}{PAN-200603011}
\end_layout
................................................................................

\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Standard


\backslash
renewcommand{
\backslash
reportTopic}{pbtomake}
\end_layout
................................................................................

\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Standard


\backslash
renewcommand{
\backslash
revisionNumber}{0.6}
\end_layout
................................................................................
\end_layout

\begin_layout Title
Software Manual
\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash

\backslash
 
\backslash
................................................................................
24 Oct 2006
\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Standard


\backslash
thispagestyle{empty}
\end_layout

\end_inset


\end_layout

\begin_layout Standard



\newpage

\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
copyright
\end_layout

\end_inset
................................................................................
\begin_inset VSpace medskip
\end_inset

Phone: 724.539.1276 
\end_layout

\begin_layout Standard
Web: http://members.bellatlantic.net/~vze35xda/











\end_layout

\begin_layout Standard
Email: vze35xda@verizon.net 
\end_layout

\begin_layout Standard
................................................................................
In the interest of product development, Pandora Products reserves the right
 to make improvements to the information in this document and the products
 that it describes at any time, without notice or obligation.
 
\end_layout

\begin_layout Standard



\newpage

\end_layout

\begin_layout Section*
Document Revision History
\end_layout

................................................................................
.
\end_layout

\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="4">
<features>
<column alignment="center" valignment="top" leftline="true" width="0.5in">
<column alignment="center" valignment="top" leftline="true" width="0.5in">
<column alignment="block" valignment="top" leftline="true" width="3in">
<column alignment="center" valignment="top" leftline="true" rightline="true" width="1in">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Version
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Author
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Description
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Date
\end_layout

\end_inset
</cell>
</row>
<row bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
0.1
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Initial Version
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
15-Mar-2003
\end_layout

\end_inset
</cell>
</row>
<row bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
0.2
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Convert to LyX form
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
11-Mar-2006
\end_layout

\end_inset
</cell>
</row>
<row bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
0.3
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Complete Code description
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
12-Mar-2006
\end_layout

\end_inset
</cell>
</row>
<row bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
0.4
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Add Clean & Install (Florian Wagner)
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
8-May-2006
\end_layout

\end_inset
</cell>
</row>
<row bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
0.5
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Add target and object directory
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
13-Oct-2006
\end_layout

\end_inset
</cell>
</row>
<row bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
0.6
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
Add more infor on target generation
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Standard
25-Oct-2006
\end_layout

\end_inset
</cell>
</row>
</lyxtabular>
................................................................................

\end_inset


\end_layout

\begin_layout Standard



\newpage

\begin_inset LatexCommand \tableofcontents{}


\end_inset


\end_layout

\begin_layout Standard



\newpage

\end_layout

\begin_layout Section
Preface
\end_layout

\begin_layout Standard
................................................................................

\begin_layout Standard
The program has also been changed to produce makefiles for both executables
 and dylib type projects.
 This will be handled automatically and it will be the correct makefile
 for the type of target.
 Also it has been changed to handle multiple target make files (see 

\begin_inset LatexCommand \vref{sub:target}


\end_inset

)
\end_layout

\begin_layout Section
................................................................................
\begin_layout Subsubsection
Testing
\end_layout

\begin_layout Standard
You can test the makefile at this point by typing 
\series bold
make 
\series default
and it will build your project just like XCode.
 All the .o (object) files will be created in this directory and the executable
 will be created right here also.
 
\end_layout

\begin_layout LyX-Code

................................................................................
\begin_layout Standard
Florian Wagner has added support in the output makefiles to do clean and
 make.
 If you type make clean then all the object files from the make will be
 deleted allowing you to do a full build.
 If you type make install then the product of the make (i.e.
 the executable) will be copied to a specified directory (see -bin_dir 

\begin_inset LatexCommand \vref{sub:bindir}


\end_inset

).
\end_layout

\begin_layout Section
................................................................................
\begin_layout Standard
After you are satisfied with the makefile then you have to change it.
 Linux and other UNIX systems usually have different names for the C compiler
 and almost always have different linking conventions for the system libraries.
 Remember frameworks (on OS X) don't exist elsewhere so they will NOT be
 in your final makefile for non-OSX systems.
 Also when you write your code you might use defines like LINUX_SYS to turn
 on or off sectons of code that only are used in say Linux.
 
\end_layout

\begin_layout Standard

\series bold
pbtomake
................................................................................
 has command line options to allow you to input special compiler options
 and link options so you can build a special purpose makefile for these
 other systems.
 I have found that I will make a small script file with all the parameters
 for a particular system make file for pbtomake.
 Calling this say 
\series bold
buildmakelinux.sh 
\series default
then if my project changes I can just run the script again to create the
 makefile for that system.
\end_layout

\begin_layout Subsection
Command line syntax
\end_layout

\begin_layout Standard
If you type pbtomake -v it will show you the program version and the options
 availble:
\end_layout

\begin_layout LyX-Code

\end_layout

\begin_layout LyX-Code
................................................................................
\size scriptsize
         -cc <compiler>  Compiler used DEF /usr/bin/gcc
\end_layout

\begin_layout LyX-Code

\size scriptsize
         -cc_opt <compiler optons>       Compiler options DEF NONE
\end_layout

\begin_layout LyX-Code

\size scriptsize
         -bin_dir <install directory>    Target directory for
\end_layout
................................................................................
\end_layout

\begin_layout Standard
or only the first one will be used
\end_layout

\begin_layout Subsubsection

\begin_inset LatexCommand \label{sub:bindir}


\end_inset

-bin_dir <Installation Directory>
\end_layout

\begin_layout Standard
................................................................................
\begin_layout Subsubsection
-obj <Object Directory>
\end_layout

\begin_layout Standard
This sets the make file to build the .o files in a specified directory.
 Doing this will eliminate the clutter of having all the .o files mixing
 with the executiable and source files.
 The clean is also modified to delete them from this directory.
 NOTE: This directory must exist, the make file created does not create
 this directory when it runs.
\end_layout

\begin_layout Subsubsection
-link_opt <Link options>
................................................................................
 link options.
 These are needed for OS X builds but are NOT present in other systems.
 For testing you will leave this off, building an OS X compatible makefile.
 For your foreign system makefile you will probably want to use this option.
\end_layout

\begin_layout Subsubsection

\begin_inset LatexCommand \label{sub:target}


\end_inset

-target <Target Name>
\end_layout

\begin_layout Standard
................................................................................
 to fix it for the target system.
 
\end_layout

\begin_layout Standard
I have only tried pbtomake makefiles, moving code to Debian Linux, Solaris
 and HP-UX so I am sure there are many more variations.
 If you have a persistant problem with certain systems contact me with specifics
 and we can see if changes in pbtomake can solve them.
 Also source code is included so you can build your own special purpose
 version of pbtomake.
\end_layout

\begin_layout Standard
Once the makefile is created it usually isn't changed in major ways for
 the course of a project so even if you have to do some rather complicated
 editing, you only have to do that once.
 Use pbotmake to create an almost useful makefile, doing all the busy work
 for you then if necessary you can apply the final editing for a particular
 system.
\end_layout

\begin_layout Section
Source Code
\end_layout
|
|







 







>
>

>

>
>
|
>
>
>
>
>
>
>
>

>
>
>
>


>


|
>
>
>
>
>
>
>
>
>

>
>

>

>
>
>
>
>
>
>









|
>
>
>








|







 







|







 







|







 







|







 







|












>
>

<




|







 







|
>
>
>
>
>
>
>
>
>
>
>







 







>
>

<







 







|
|
|
|
|
|
|


|





|


|





|


|





|


|






|
|


|





|


|





|


|





|


|






|
|


|





|


|





|


|





|


|






|
|


|





|


|





|


|





|


|






|
|


|





|


|





|


|





|


|






|
|


|





|


|





|


|





|


|






|
|


|





|


|





|


|
|




|


|







 







>
>

<

|
>







>
>

<








 







>
|
>







 







|

|







 







>
|
>







 







|







 







|

|









|







 







|







 







>
|
>







 







|







 







>
|
>







 







|









|







1
2
3
4
5
6
7
8
9
...
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
...
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
...
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
...
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
...
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
...
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
...
357
358
359
360
361
362
363
364
365
366

367
368
369
370
371
372
373
...
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
...
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
...
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
...
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
...
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
...
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
...
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
....
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
....
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
....
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
....
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
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\begin_preamble

% Include the proper LaTeX packages:
%----------------------------------------------------------------------------------------------------
................................................................................
% Setup footer:
%------------------------------------------------------------------------------------------
\renewcommand{\footrulewidth}{0.4pt}
\fancyfoot[L]{\sffamily \bfseries \documentNumber \\ \mdseries Revision:  \revisionNumber}
\fancyfoot[C]{\sffamily \bfseries\thedate \\ \mdseries Software Manual}
\fancyfoot[R]{\ifthenelse{\boolean{romanpn}}{\sffamily  \thepage}{\sffamily \bfseries Page \thepage\ of \pageref{LastPage}}}
\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 0
\use_package mathtools 1
\use_package mhchem 0
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
renewcommand{
\backslash
documentNumber}{PAN-200603011}
\end_layout
................................................................................

\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
renewcommand{
\backslash
reportTopic}{pbtomake}
\end_layout
................................................................................

\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
renewcommand{
\backslash
revisionNumber}{0.6}
\end_layout
................................................................................
\end_layout

\begin_layout Title
Software Manual
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash

\backslash
 
\backslash
................................................................................
24 Oct 2006
\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
thispagestyle{empty}
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Newpage newpage
\end_inset



\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
copyright
\end_layout

\end_inset
................................................................................
\begin_inset VSpace medskip
\end_inset

Phone: 724.539.1276 
\end_layout

\begin_layout Standard
Web: 
\begin_inset Flex URL
status open

\begin_layout Plain Layout

http://chiselapp.com/user/jschimpf/repository/PBTOMAKE/home
\end_layout

\end_inset


\end_layout

\begin_layout Standard
Email: vze35xda@verizon.net 
\end_layout

\begin_layout Standard
................................................................................
In the interest of product development, Pandora Products reserves the right
 to make improvements to the information in this document and the products
 that it describes at any time, without notice or obligation.
 
\end_layout

\begin_layout Standard
\begin_inset Newpage newpage
\end_inset



\end_layout

\begin_layout Section*
Document Revision History
\end_layout

................................................................................
.
\end_layout

\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="4">
<features rotate="0" tabularvalignment="middle">
<column alignment="center" valignment="top" width="0.5in">
<column alignment="center" valignment="top" width="0.5in">
<column alignment="block" valignment="top" width="3in">
<column alignment="center" valignment="top" width="1in">
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Version
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Author
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Description
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Date
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
0.1
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Initial Version
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
15-Mar-2003
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
0.2
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Convert to LyX form
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
11-Mar-2006
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
0.3
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Complete Code description
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
12-Mar-2006
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
0.4
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Add Clean & Install (Florian Wagner)
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
8-May-2006
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
0.5
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Add target and object directory
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
13-Oct-2006
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
0.6
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
js
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Add more info on target generation
\end_layout

\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
25-Oct-2006
\end_layout

\end_inset
</cell>
</row>
</lyxtabular>
................................................................................

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Newpage newpage
\end_inset



\begin_inset CommandInset toc
LatexCommand tableofcontents

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Newpage newpage
\end_inset



\end_layout

\begin_layout Section
Preface
\end_layout

\begin_layout Standard
................................................................................

\begin_layout Standard
The program has also been changed to produce makefiles for both executables
 and dylib type projects.
 This will be handled automatically and it will be the correct makefile
 for the type of target.
 Also it has been changed to handle multiple target make files (see 
\begin_inset CommandInset ref
LatexCommand vref
reference "sub:target"

\end_inset

)
\end_layout

\begin_layout Section
................................................................................
\begin_layout Subsubsection
Testing
\end_layout

\begin_layout Standard
You can test the makefile at this point by typing 
\series bold
make
\series default
 and it will build your project just like XCode.
 All the .o (object) files will be created in this directory and the executable
 will be created right here also.
 
\end_layout

\begin_layout LyX-Code

................................................................................
\begin_layout Standard
Florian Wagner has added support in the output makefiles to do clean and
 make.
 If you type make clean then all the object files from the make will be
 deleted allowing you to do a full build.
 If you type make install then the product of the make (i.e.
 the executable) will be copied to a specified directory (see -bin_dir 
\begin_inset CommandInset ref
LatexCommand vref
reference "sub:bindir"

\end_inset

).
\end_layout

\begin_layout Section
................................................................................
\begin_layout Standard
After you are satisfied with the makefile then you have to change it.
 Linux and other UNIX systems usually have different names for the C compiler
 and almost always have different linking conventions for the system libraries.
 Remember frameworks (on OS X) don't exist elsewhere so they will NOT be
 in your final makefile for non-OSX systems.
 Also when you write your code you might use defines like LINUX_SYS to turn
 on or off sections of code that only are used in say Linux.
 
\end_layout

\begin_layout Standard

\series bold
pbtomake
................................................................................
 has command line options to allow you to input special compiler options
 and link options so you can build a special purpose makefile for these
 other systems.
 I have found that I will make a small script file with all the parameters
 for a particular system make file for pbtomake.
 Calling this say 
\series bold
buildmakelinux.sh
\series default
 then if my project changes I can just run the script again to create the
 makefile for that system.
\end_layout

\begin_layout Subsection
Command line syntax
\end_layout

\begin_layout Standard
If you type pbtomake -v it will show you the program version and the options
 available:
\end_layout

\begin_layout LyX-Code

\end_layout

\begin_layout LyX-Code
................................................................................
\size scriptsize
         -cc <compiler>  Compiler used DEF /usr/bin/gcc
\end_layout

\begin_layout LyX-Code

\size scriptsize
         -cc_opt <compiler options>       Compiler options DEF NONE
\end_layout

\begin_layout LyX-Code

\size scriptsize
         -bin_dir <install directory>    Target directory for
\end_layout
................................................................................
\end_layout

\begin_layout Standard
or only the first one will be used
\end_layout

\begin_layout Subsubsection
\begin_inset CommandInset label
LatexCommand label
name "sub:bindir"

\end_inset

-bin_dir <Installation Directory>
\end_layout

\begin_layout Standard
................................................................................
\begin_layout Subsubsection
-obj <Object Directory>
\end_layout

\begin_layout Standard
This sets the make file to build the .o files in a specified directory.
 Doing this will eliminate the clutter of having all the .o files mixing
 with the executable and source files.
 The clean is also modified to delete them from this directory.
 NOTE: This directory must exist, the make file created does not create
 this directory when it runs.
\end_layout

\begin_layout Subsubsection
-link_opt <Link options>
................................................................................
 link options.
 These are needed for OS X builds but are NOT present in other systems.
 For testing you will leave this off, building an OS X compatible makefile.
 For your foreign system makefile you will probably want to use this option.
\end_layout

\begin_layout Subsubsection
\begin_inset CommandInset label
LatexCommand label
name "sub:target"

\end_inset

-target <Target Name>
\end_layout

\begin_layout Standard
................................................................................
 to fix it for the target system.
 
\end_layout

\begin_layout Standard
I have only tried pbtomake makefiles, moving code to Debian Linux, Solaris
 and HP-UX so I am sure there are many more variations.
 If you have a persistent problem with certain systems contact me with specifics
 and we can see if changes in pbtomake can solve them.
 Also source code is included so you can build your own special purpose
 version of pbtomake.
\end_layout

\begin_layout Standard
Once the makefile is created it usually isn't changed in major ways for
 the course of a project so even if you have to do some rather complicated
 editing, you only have to do that once.
 Use pbtomake to create an almost useful makefile, doing all the busy work
 for you then if necessary you can apply the final editing for a particular
 system.
\end_layout

\begin_layout Section
Source Code
\end_layout

Changes to Docs/pbtomake.pdf.

cannot compute difference between binary files