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

1.1       root        1: #===================================================================
                      2: #
                      3: #   Image Make file - Porting Stage 3 : Pure 32 bit Application
                      4: #   Created 1989, 1990 IBM, Microsoft 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 = cl386
                     34: CFLAGS32 = -c -Gs -Od -W3 -Zi -B1 c1l_386 -DINCL_32 -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32
                     35: CINC32 =
                     36: LINK32 = link386
                     37: LIBS32 = os2386 libc
                     38: LFLAGS = /MAP/CO/NOD
                     39: RC = rc
                     40: HEADERS = img_main.h img_xtrn.h
                     41: 
                     42: 
                     43: #-------------------------------------------------------------------
                     44: #   This section is used to set which options macros are to be used
                     45: #   in the build.  By changing the macro names on the right, we can
                     46: #   change which environment the application will be built for.  This
                     47: #   application currently uses the flags for the 32-bit memory model.
                     48: #-------------------------------------------------------------------
                     49: LINK = $(LINK32)
                     50: CFLAGS = $(CFLAGS32)
                     51: LIBS = $(LIBS32)
                     52: CINC = $(CINC32)
                     53: 
                     54: 
                     55: #===================================================================
                     56: #
                     57: # Default inference rules
                     58: #
                     59: #   This section lists the command and flags to build each type of
                     60: #   of source file listed.
                     61: #
                     62: #===================================================================
                     63: .c.obj:
                     64:     $(CC) $(CFLAGS) $(CINC) $*.c
                     65: 
                     66: .rc.res:
                     67:     $(RC) -r $*.rc
                     68: 
                     69: #-------------------------------------------------------------------
                     70: #   A list of all of the object files
                     71: #-------------------------------------------------------------------
                     72: ALL_OBJ1 = img_ma32.obj img_da32.obj img_in32.obj img_pn32.obj img_vi32.obj
                     73: ALL_OBJ2 = img_dl32.obj img_he32.obj img_si32.obj img_fi32.obj img_me32.obj img_ut32.obj
                     74: 
                     75: #-------------------------------------------------------------------
                     76: #   A list of all of the Help text files
                     77: #-------------------------------------------------------------------
                     78: ALL_IPF = img_main.ipf img_file.ipf img_view.ipf img_help.ipf img_dlg.ipf
                     79: 
                     80: #-------------------------------------------------------------------
                     81: #   This section lists all files to be build my the make.  This make
                     82: #   file build the executible as well as its associated help file.
                     83: #-------------------------------------------------------------------
                     84: all: image32.exe image.hlp
                     85: 
                     86: 
                     87: 
                     88: #-------------------------------------------------------------------
                     89: #   This section creates the command file used by the linker.  This
                     90: #   command file is recreated automatically every time you change
                     91: #   the object file list, linker flags, or library list.
                     92: #-------------------------------------------------------------------
                     93: image32.lnk: image32.mak
                     94:     echo $(ALL_OBJ1) +           > image32.lnk
                     95:     echo $(ALL_OBJ2)            >> image32.lnk
                     96:     echo image32.exe            >> image32.lnk
                     97:     echo image32.map $(LFLAGS)  >> image32.lnk
                     98:     echo $(LIBS)                >> image32.lnk
                     99:     echo image32.def            >> image32.lnk
                    100: 
                    101: 
                    102: 
                    103: #===================================================================
                    104: #
                    105: # Dependencies
                    106: #
                    107: #   This section lists all object files needed to be built for the
                    108: #   application, along with the files it is dependent upon (e.g. its
                    109: #   source and any header files).
                    110: #
                    111: #===================================================================
                    112: img_ma32.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_ma32.res
                    115: 
                    116: img_ma32.obj: img_main.c $(HEADERS)
                    117:     $(CC) $(CFLAGS) $(CINC) -Foimg_ma32.obj img_main.c
                    118: 
                    119: img_me32.obj: img_menu.c $(HEADERS)
                    120:     $(CC) $(CFLAGS) $(CINC) -Foimg_me32.obj img_menu.c
                    121: 
                    122: img_si32.obj: img_size.c $(HEADERS)
                    123:     $(CC) $(CFLAGS) $(CINC) -Foimg_si32.obj img_size.c
                    124: 
                    125: img_fi32.obj: img_file.c $(HEADERS)
                    126:     $(CC) $(CFLAGS) $(CINC) -Foimg_fi32.obj img_file.c
                    127: 
                    128: img_vi32.obj: img_view.c $(HEADERS)
                    129:     $(CC) $(CFLAGS) $(CINC) -Foimg_vi32.obj img_view.c
                    130: 
                    131: img_da32.obj: img_data.c $(HEADERS)
                    132:     $(CC) $(CFLAGS) $(CINC) -Foimg_da32.obj img_data.c
                    133: 
                    134: img_in32.obj: img_init.c $(HEADERS)
                    135:     $(CC) $(CFLAGS) $(CINC) -Foimg_in32.obj img_init.c
                    136: 
                    137: img_pn32.obj: img_pnt.c $(HEADERS)
                    138:     $(CC) $(CFLAGS) $(CINC) -Foimg_pn32.obj img_pnt.c
                    139: 
                    140: img_dl32.obj: img_dlg.c $(HEADERS)
                    141:     $(CC) $(CFLAGS) $(CINC) -Foimg_dl32.obj img_dlg.c
                    142: 
                    143: img_he32.obj: img_help.c $(HEADERS) img_help.h
                    144:     $(CC) $(CFLAGS) $(CINC) -Foimg_he32.obj img_help.c
                    145: 
                    146: img_ut32.obj: img_util.c $(HEADERS)
                    147:     $(CC) $(CFLAGS) $(CINC) -Foimg_ut32.obj img_util.c
                    148: 
                    149: #-------------------------------------------------------------------
                    150: #   This section creates the help manager file.  The IPF compiler
                    151: #   creates a file called main.hlp which is renamed to image.hlp.
                    152: #-------------------------------------------------------------------
                    153: image.hlp: $(ALL_IPF)
                    154:      ipfc img_main.ipf /W3
                    155:      if exist image.hlp del image.hlp
                    156:      rename img_main.hlp image.hlp
                    157: 
                    158: 
                    159: #-------------------------------------------------------------------
                    160: #   This section links the object modules into the finished program
                    161: #   using the linker command file created earlier.  At the end, the
                    162: #   resource file is bound to the application.
                    163: #-------------------------------------------------------------------
                    164: image32.exe: $(ALL_OBJ1) $(ALL_OBJ2) image32.def image32.lnk img_ma32.res
                    165:     $(LINK) @image32.lnk
                    166:     $(RC) img_ma32.res image32.exe

unix.superglobalmegacorp.com

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