home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
sprint
/
spturbo.arc
/
COMPILE.SPM
next >
Wrap
Text File
|
1989-05-27
|
3KB
|
117 lines
; compile.spm
; A Sprint menu system for the command line compilers: Turbo Pascal,
; Turbo C, and Turbo Assembler. Allows you to set compiler default settings
; that will be passed to the command line compiler.
; Just load this file with the Alt-U-M-L command. Then assign it to
; a key sequence for easy access with Alt-U-M-E. Tell Sprint that the
; macro is named : compilemenu. Press A to assign to a key sequence.
; In my version of Sprint, I've assigned it to "Shift-Alt-C".
; This is a work in progress and is not complete. I would be very interested
; to hear from anyone who uses this and/or makes modifications so I can learn
; and enhance this macro. Given Sprint's capabilities, I believe this
; simulation of the Turbo integrated environments could be worthwhile.
; Written by Chris Barker, CIS ID 72261,2312.
; May 20, 1989
; Last Updated: May 27, 1989
; Initialize debug code generation to false(0). These settings will be
; sticky - they will stay set to however you last set them.
int Pdebug 0
int Cdebug 0
int Adebug 0
int Xref 0
SelectModel:
menu "Model" {
"tiny" set QN "-mt",
"small" set QN "-ms",
"compact" set QN "-mc",
"medium" set QN "-mm",
"large" set QN "-ml",
"huge" set QN "-mh"
}
PASSettingsMenu:
do {
menu "Current Settings" {
Pdebug "Debug Info\>%[OFF%:ON%]"
!Pdebug->Pdebug,
"Primary File"
}
}
CSettingsMenu:
do {
menu "Current Settings" {
Cdebug "Debug Info\>%[OFF%:ON%]"
!Cdebug->Cdebug,
"Primary File",
"Memory Model" SelectModel,
Xref "Gen Xref\>%[OFF%:ON%]"
!Xref->Xref
}
}
TASMSettingsMenu:
do {
menu "Current Settings" {
Adebug "Debug Info\>%[OFF%:ON%]"
!Adebug->Adebug,
"Primary File"
}
}
CompileDfltMenu:
menu "Compiler Defaults" {
"Pascal Settings" PASSettingsMenu,
"C Settings" CSettingsMenu,
"Assembler Settings" TASMSettingsMenu,
"Linker Settings"
}
CompileMenu:
; Each time this menu is called, the memory model for Turbo C will be set
; to small. I would like to initialize this globally so that you don't have
; keep resetting alternate models each time. I haven't figured out how to
; initialize a global string variable yet.
set QN "-ms"
set QD cdstrip fname
menu "Compiler Menu" {
"Pascal (tpc)" Save
if Pdebug { 1 call "command /ctpc /v" QD } else
{ 1 call "command /ctpc" QD},
"C (tcc)" Save
if Cdebug { 1 call "command /c tcc -c -v -g5 -j5" QN QD } else
{ 1 call "command /c tcc -c -g5 -j5" QN QD },
"Assembler (tasm)"
Save
if Adebug { 1 call "command /ctasm /zi" QD } else
{ 1 call "command /ctasm " QD },
"Linker" set QD fchange "%.obj" QD
1 call "command /ctlink" QD,
"_",
"Defaults"
CompileDfltMenu
}