home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-03 | 4.1 KB | 141 lines |
- #******************************************************************************
- # Makefile for the VCDROM directory
- #
- # IBM Confidential
- #
- # Copyright (c) IBM Corporation 1987, 1992
- #
- # All Rights Reserved
- #
- #******************************************************************************
-
- #
- # ****** NOTE ******
- #
- #
- # If you are using a SED command with TAB characters, many editors
- # will expand tabs causing unpredictable results in other programs.
- #
- # Documentation:
- #
- # Using SED command with TABS. Besure to invoke set tab save option
- # on your editor. If you don't, the program 'xyz' will not work
- # correctly.
- #
-
- !include ..\vdevsub.mak
-
- #
- # Conditional Setup Area and User Defined Macros
- #
-
-
- #
- # Compiler and Linker Option changes from ..\VDEVSUB.MAK
- #
-
-
- #****************************************************************************
- # Set up Macros that will contain all the different dependencies for the
- # executables and dlls etc. that are generated.
- #****************************************************************************
-
- OBJS =cdstub0.obj vcdrom.obj vcdrom2f.obj
-
- #OBDS =vcdrom.obd vcdrom2f.obd
-
- #****************************************************************************
- # Target Information
- #****************************************************************************
- #
- # This is a very important step. The following small amount of code MUST
- # NOT be removed from the program. The following directive will do
- # dependency checking every time this component is built UNLESS the
- # following is performed:
- # A specific tag is used -- ie. all
- #
- # This allows the developer as well as the B & I group to perform incremental
- # build with a degree of accuracy that has not been used before.
- # There are some instances where certain types of INCLUDE files must be
- # created first. This type of format will allow the developer to require
- # that file to be created first. In order to achive that, all that has to
- # be done is to make the DEPEND.MAK tag have your required target. Below is
- # an example:
- #
- # depend.mak: { your file(s) } dephold
- #
- # Please DON'T remove the following line
- #
-
-
- #
- # Should be the default tag for all general processing
- #
-
- all: sys
-
- lib:
- cd ..\..\..\lib
- $(MAKE) -c vdh.lib
- cd ..\src\vdev\vcdrom
-
- #sys: vcdromd.sys vcdrom.sys
- sys: vcdrom.sys
-
- # Two-pass method to get XMMSTUB.OBJ Pass 1 compiles the assembly code
- # proper; pass two converts the output into another .ASM file which
- # is compiled again, so that the stuff gets the right segment attributes.
-
- cdstub0.asm cdstub.h: cdstub.asm
- $(AS) $(AFLAGS) $(FLAG) $(AINC) cdstub.asm,cdstub.obj,cdstub.lst;
- code2dat cdstub.lst cdstub0.asm
-
- cdstub0.obj: cdstub0.asm cdstub.h
- $(AS) $(AFLAGS) $(AINC) cdstub0.asm,cdstub0.obj;
-
-
-
- clean:
- if exist *.obj del *.obj
- if exist *.obd del *.obd
- if exist *.stb del *.stb
- if exist *.lnk del *.lnk
- if exist *.sys del *.sys
- if exist *.sym del *.sym
- if exist *.exe del *.exe
- if exist *.com del *.com
- if exist *.lst del *.lst
- if exist *.lsd del *.lsd
- if exist *.ltb del *.ltb
- if exist *.map del *.map
- if exist *.old del *.old
- if exist *.cvk del *.cvk
-
-
-
- #*****************************************************************************
- # Specific Description Block Information
- #*****************************************************************************
-
- # This section would only be for specific direction as to how to create
- # unique elements that are necessary to the build process. This could
- # be compiling or assembling, creation of DEF files and other unique
- # files.
- # If all compiler and assembly rules are the same, use an inference rule to
- # perform the compilation.
- #
-
-
- vcdrom.sys: $(OBJS) $(LIBS) $(DEF) makefile
- $(LINK) $(LFLAGS) @<<$(@B).lnk
- $(OBJS)
- $@
- $*.map
- $(LIBS)
- $(DEF)
- <<keep
- $(MAPSYM) $*.map
-
-
- #****************************************************************************
-