home *** CD-ROM | disk | FTP | other *** search
- | This Obey file will make absolutely everything needed to produce the
- | main library file "!DeskLib.DeskLib"
- | It (appears to) run fine on my 2 Meg machine in only 640k of memory.
- | [It now also runs really happily on my 4Meg A5000 in 2Megs of memory ;-]
- |
- | Note that it changes the current directory (CSD)
-
- Set LibMake$Dir <Obey$Dir>
-
- if "<DeskLib$Dir>" = "" then Error 0 !DeskLib application has not been seen by the filer
-
- WimpSlot -min 640k -max 2048k
-
- | NOTE: Each makefile below will create a small library file (e.g. CoordLib)
- | which contains JUST the code for the subdirectory.
- | I have left this in so that you can just use the small libs if it is more
- | convenient, and also the small library files serve as a means for Make
- | to know that everything is up to date.
- |
- | However, once the code has been made, these small libraries can be deleted
- | Once DeskLib is made, the whole subdirectory can be deleted if you no
- | longer want to keep the .c and .o files.
- | (All you need to include DeskLib functions in your own code are the main .h
- | files and the DeskLib Library file)
-
- | The following line sets up an alias for the command 'DLibMake' used below.
- | This makes it much easier for you to generically alter the way in which
- | sublibraries are compiled, and akso makes this file and the text produced by
- | the compilation process much shorter and neater
- |
- | Note that you can also change the command-line parameters, such as
- | predefining:
- | x_cflags = extra c flags to pass to the c compiler (eg x_cflags="-ffah")
- | x_aflags = extra flags to pass to the assembler (eg x_aflags="-Throwback")
- | do = the command to execute to generate the final sublibrary, eg:
- | do="LibFile -c -o $@ @.o.*"
- | do="Create $@ 1"
-
- | The script now also checks the return code from each make operation, so it
- | exits cleanly if you hit escape or if any errors occur during the make
-
- Set Alias$DLibMake Echo|MEcho --- Making %%*0 Sublibrary ---|MDir <LibMake$Dir>.%%*0|M amu x_cflags="-Ff" x_aflags="" do="Create $@ 1"|M
-
- Echo Making Sub-Libraries...
- Set Sys$ReturnCode 0
- if <Sys$ReturnCode> = 0 Then DLibMake ColourTran
- if <Sys$ReturnCode> = 0 Then DLibMake Coord
- if <Sys$ReturnCode> = 0 Then DLibMake Dialog
- if <Sys$ReturnCode> = 0 Then DLibMake DragASpr
- if <Sys$ReturnCode> = 0 Then DLibMake Event
- if <Sys$ReturnCode> = 0 Then DLibMake File
- if <Sys$ReturnCode> = 0 Then DLibMake Filter
- if <Sys$ReturnCode> = 0 Then DLibMake Font
- if <Sys$ReturnCode> = 0 Then DLibMake GFX
- if <Sys$ReturnCode> = 0 Then DLibMake Handler
- if <Sys$ReturnCode> = 0 Then DLibMake Icon
- if <Sys$ReturnCode> = 0 Then DLibMake Kbd
- if <Sys$ReturnCode> = 0 Then DLibMake LinkList
- if <Sys$ReturnCode> = 0 Then DLibMake Menu
- if <Sys$ReturnCode> = 0 Then DLibMake Mem
- if <Sys$ReturnCode> = 0 Then DLibMake Misc
- if <Sys$ReturnCode> = 0 Then DLibMake Msgs
- if <Sys$ReturnCode> = 0 Then DLibMake PDriver
- if <Sys$ReturnCode> = 0 Then DLibMake PopUp
- if <Sys$ReturnCode> = 0 Then DLibMake Resource
- if <Sys$ReturnCode> = 0 Then DLibMake Sound
- if <Sys$ReturnCode> = 0 Then DLibMake Sprite
- if <Sys$ReturnCode> = 0 Then DLibMake Template
- if <Sys$ReturnCode> = 0 Then DLibMake TextFile
- if <Sys$ReturnCode> = 0 Then DLibMake WimpSWIs
- if <Sys$ReturnCode> = 0 Then DLibMake Window
-
- Unset Alias$DLibMake
-
- | Finally, make the DeskLib library
- | Note that LibFile is now invoked with "-v" to use a 'via' file listing
- | all of the object files. This is because the list got too long to
- | put into a single command line, and it also makes management easier.
-
- Dir <LibMake$Dir>
- Echo
- if <Sys$ReturnCode> = 0 Then Echo Making DeskLib Library...
-
- if <Sys$ReturnCode> = 0 Then LibFile -c -o <DeskLib$Dir>.o.DeskLib -v !Objects
-
- Echo
- Echo
- if <Sys$ReturnCode> = 0 Then Echo =======================================
- if <Sys$ReturnCode> = 0 Then Echo DeskLib library make complete ->gasp!<-
- if <Sys$ReturnCode> = 0 Then Echo =======================================
-
- if <Sys$ReturnCode> <> 0 Then Echo *******************************************
- if <Sys$ReturnCode> <> 0 Then Echo DeskLib library make failed due to error(s)
- if <Sys$ReturnCode> <> 0 Then Echo *******************************************
-