Annotation of os232sdk/toolkt20/c/samples/image/image16.mak, revision 1.1.1.1

1.1       root        1: #===================================================================
                      2: #
                      3: #   Image Make file
                      4: #   Created 1989, 1990 Microsoft, IBM Corporation
                      5: #
                      6: #===================================================================
                      7: 
                      8: #-------------------------------------------------------------------
                      9: #   .SUFFIXES line helps NMAKE recognize other file suffixes besides
                     10: #   .c, .exe, etc.
                     11: #-------------------------------------------------------------------
                     12: .SUFFIXES: .res .rc .hlp .ipf
                     13: 
                     14: 
                     15: #===================================================================
                     16: #
                     17: # Macro definitions
                     18: #
                     19: #   These macro definitions set are used to set up the options needed
                     20: #   to build the application.  Such options include the command line
                     21: #   options for the compiler and the libraries needed for the linker.
                     22: #   The flags are created as macros so that they can be easily modified
                     23: #   so they need to be changed.
                     24: #
                     25: #   The macros also allow you to have a different set of options
                     26: #   for each environment your application is built for.  The macros
                     27: #   below include the flags for compiling the application in the
                     28: #   32=bit and 16=bit memory models.  You can also add flags for a
                     29: #   a retail version of the product, a version which does not contain
                     30: #   any codeview symbols and has the maximum optimization.
                     31: #
                     32: #===================================================================
                     33: CC = cl -c
                     34: CFLAGS16 = -u -Gs -Od -W3 -Zpei -AL -DHELP_MANAGER_ENABLED -DLINT_ARGS -DPORT_16
                     35: CINC16 =
                     36: LINK16 = link
                     37: LIBS16 = os2286 llibcep
                     38: LFLAGS = /MAP/CO/NOD
                     39: RC = rc
                     40: HEADERS = img_main.h img_xtrn.h
                     41: 
                     42: #-------------------------------------------------------------------
                     43: #   This section is used to set which options macros are to be used
                     44: #   in the build.  By changing the macro names on the right, we can
                     45: #   change which environment the application will be built for.  This
                     46: #   application currently uses the flags for the 16-bit memory model.
                     47: #-------------------------------------------------------------------
                     48: LINK = $(LINK16)
                     49: CFLAGS = $(CFLAGS16)
                     50: LIBS = $(LIBS16)
                     51: CINC = $(CINC16)
                     52: 
                     53: 
                     54: #===================================================================
                     55: #
                     56: # Default inference rules
                     57: #
                     58: #   This section lists the command and flags to build each type of
                     59: #   of source file listed.
                     60: #
                     61: #===================================================================
                     62: .c.obj:
                     63:     $(CC) $(CFLAGS) $(CINC) $*.c
                     64: 
                     65: .rc.res:
                     66:     $(RC) -r $*.rc
                     67: 
                     68: #-------------------------------------------------------------------
                     69: #   A list of all of the object files
                     70: #-------------------------------------------------------------------
                     71: ALL_OBJ1 = img_ma16.obj img_da16.obj img_in16.obj img_pn16.obj img_vi16.obj
                     72: ALL_OBJ2 = img_dl16.obj img_he16.obj img_si16.obj img_fi16.obj img_me16.obj img_ut16.obj
                     73: 
                     74: #-------------------------------------------------------------------
                     75: #   A list of all of the Help text files
                     76: #-------------------------------------------------------------------
                     77: ALL_IPF = img_main.ipf img_file.ipf img_view.ipf img_help.ipf img_dlg.ipf
                     78: 
                     79: #-------------------------------------------------------------------
                     80: #   This section lists all files to be build my the make.  This make
                     81: #   file build the executible as well as its associated help file.
                     82: #-------------------------------------------------------------------
                     83: all: image16.exe image.hlp
                     84: 
                     85: 
                     86: 
                     87: #-------------------------------------------------------------------
                     88: #   This section creates the command file used by the linker.  This
                     89: #   command file is recreated automatically every time you change
                     90: #   the object file list, linker flags, or library list.
                     91: #-------------------------------------------------------------------
                     92: image16.lnk: image16.mak
                     93:     echo $(ALL_OBJ1) +             > image16.lnk
                     94:     echo $(ALL_OBJ2)              >> image16.lnk
                     95:     echo image16.exe              >> image16.lnk
                     96:     echo image16.map $(LFLAGS)    >> image16.lnk
                     97:     echo $(LIBS)                  >> image16.lnk
                     98:     echo image16.def              >> image16.lnk
                     99: 
                    100: 
                    101: 
                    102: #===================================================================
                    103: #
                    104: # Dependencies
                    105: #
                    106: #   This section lists all object files needed to be built for the
                    107: #   application, along with the files it is dependent upon (e.g. its
                    108: #   source and any header files).
                    109: #
                    110: #===================================================================
                    111: 
                    112: img_ma16.res: img_main.rc img_main.h img_dlg.h image.dlg\
                    113:               img_help.rc img_help.h
                    114:     $(RC) -r img_main.rc img_ma16.res
                    115: 
                    116: img_ma16.obj: img_main.c $(HEADERS)
                    117:     $(CC) $(CFLAGS) $(CINC) -Foimg_ma16.obj img_main.c
                    118: 
                    119: img_me16.obj: img_menu.c $(HEADERS)
                    120:     $(CC) $(CFLAGS) $(CINC) -Foimg_me16.obj img_menu.c
                    121: 
                    122: img_si16.obj: img_size.c $(HEADERS)
                    123:     $(CC) $(CFLAGS) $(CINC) -Foimg_si16.obj img_size.c
                    124: 
                    125: img_fi16.obj: img_file.c $(HEADERS)
                    126:     $(CC) $(CFLAGS) $(CINC) -Foimg_fi16.obj img_file.c
                    127: 
                    128: img_vi16.obj: img_view.c $(HEADERS)
                    129:     $(CC) $(CFLAGS) $(CINC) -Foimg_vi16.obj img_view.c
                    130: 
                    131: img_da16.obj: img_data.c $(HEADERS)
                    132:     $(CC) $(CFLAGS) $(CINC) -Foimg_da16.obj img_data.c
                    133: 
                    134: img_dl16.obj: img_dlg.c $(HEADERS)
                    135:     $(CC) $(CFLAGS) $(CINC) -Foimg_dl16.obj img_dlg.c
                    136: 
                    137: img_in16.obj: img_init.c $(HEADERS)
                    138:     $(CC) $(CFLAGS) $(CINC) -Foimg_in16.obj img_init.c
                    139: 
                    140: img_pn16.obj: img_pnt.c $(HEADERS)
                    141:     $(CC) $(CFLAGS) $(CINC) -Foimg_pn16.obj img_pnt.c
                    142: 
                    143: img_he16.obj: img_help.c $(HEADERS) img_help.h
                    144:     $(CC) $(CFLAGS) $(CINC) -Foimg_he16.obj img_help.c
                    145: 
                    146: img_ut16.obj: img_util.c $(HEADERS)
                    147:     $(CC) $(CFLAGS) $(CINC) -Fa -Oi -Foimg_ut16.obj img_util.c
                    148: #-------------------------------------------------------------------
                    149: #   This section creates the help manager file.  The IPF compiler
                    150: #   creates a file called main.hlp which is renamed to image.hlp.
                    151: #-------------------------------------------------------------------
                    152: image.hlp: $(ALL_IPF)
                    153:      ipfc img_main.ipf /W3
                    154:      if exist image.hlp del image.hlp
                    155:      rename img_main.hlp image.hlp
                    156: 
                    157: 
                    158: #-------------------------------------------------------------------
                    159: #   This section links the object modules into the finished program
                    160: #   using the linker command file created earlier.  At the end, the
                    161: #   resource file is bound to the application.
                    162: #-------------------------------------------------------------------
                    163: image16.exe: $(ALL_OBJ1) $(ALL_OBJ2) image16.def image16.lnk img_ma16.res
                    164:     $(LINK) @image16.lnk
                    165:     $(RC) img_ma16.res image16.exe
                    166:     mapsym image16

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.