|
|
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: CC32 = cl386 ! 34: CCS1 = cl ! 35: CFLAGSS1 = -u -c -G2s -Oi -W3 -Zpei -AL -DLINT_ARGS -NT CODE16 -ND DATA16 -DPORT_S116 -DHELP_MANAGER_ENABLED ! 36: CFLAGS32 = -c -Gs -Od -W3 -Zi -B1 c1l_386 -DINCL_32 -DLINT_ARGS -DPORT_S132 -DHELP_MANAGER_ENABLED ! 37: CINC32 = ! 38: CINCS1 = ! 39: LINK32 = link386 ! 40: LIBS32 = os2386 libc ! 41: LFLAGS = /MAP/CO/NOD ! 42: RC = rc ! 43: HEADERS = img_main.h img_xtrn.h ! 44: ! 45: ! 46: #------------------------------------------------------------------- ! 47: # This section is used to set which options macros are to be used ! 48: # in the build. By changing the macro names on the right, we can ! 49: # change which environment the application will be built for. This ! 50: # application currently uses the flags for the 32-bit memory model. ! 51: #------------------------------------------------------------------- ! 52: LINK = $(LINK32) ! 53: CFLAGS = $(CFLAGS32) ! 54: LIBS = $(LIBS32) ! 55: CINC = $(CINC32) ! 56: ! 57: ! 58: #=================================================================== ! 59: # ! 60: # Default inference rules ! 61: # ! 62: # This section lists the command and flags to build each type of ! 63: # of source file listed. ! 64: # ! 65: #=================================================================== ! 66: .c.obj: ! 67: $(CC32) $(CFLAGS) $(CINC) $*.c ! 68: ! 69: .rc.res: ! 70: $(RC) -r $*.rc ! 71: ! 72: #------------------------------------------------------------------- ! 73: # A list of all of the object files ! 74: #------------------------------------------------------------------- ! 75: ALL_OBJ1 = img_utS1.obj img_daS1.obj img_inS1.obj img_pnS1.obj img_viS1.obj ! 76: ALL_OBJ2 = img_dlS1.obj img_heS1.obj img_siS1.obj img_fiS1.obj img_meS1.obj img_mas1.obj ! 77: ! 78: #------------------------------------------------------------------- ! 79: # A list of all of the Help text files ! 80: #------------------------------------------------------------------- ! 81: ALL_IPF = img_main.ipf img_file.ipf img_view.ipf img_help.ipf img_dlg.ipf ! 82: ! 83: #------------------------------------------------------------------- ! 84: # This section lists all files to be build my the make. This make ! 85: # file build the executible as well as its associated help file. ! 86: #------------------------------------------------------------------- ! 87: all: imageS1.exe image.hlp ! 88: ! 89: ! 90: ! 91: #------------------------------------------------------------------- ! 92: # This section creates the command file used by the linker. This ! 93: # command file is recreated automatically every time you change ! 94: # the object file list, linker flags, or library list. ! 95: #------------------------------------------------------------------- ! 96: imageS1.lnk: imageS1.mak ! 97: echo $(ALL_OBJ1) + > imageS1.lnk ! 98: echo $(ALL_OBJ2) >> imageS1.lnk ! 99: echo imageS1.exe >> imageS1.lnk ! 100: echo imageS1.map $(LFLAGS) >> imageS1.lnk ! 101: echo $(LIBS) >> imageS1.lnk ! 102: echo imageS1.def >> imageS1.lnk ! 103: ! 104: ! 105: ! 106: #=================================================================== ! 107: # ! 108: # Dependencies ! 109: # ! 110: # This section lists all object files needed to be built for the ! 111: # application, along with the files it is dependent upon (e.g. its ! 112: # source and any header files). ! 113: # ! 114: #=================================================================== ! 115: img_maS1.res: img_main.rc img_main.h img_dlg.h image.dlg\ ! 116: img_help.rc img_help.h ! 117: $(RC) -r img_main.rc img_maS1.res ! 118: ! 119: img_maS1.obj: img_main.c $(HEADERS) ! 120: $(CC32) $(CFLAGS) $(CINC) -Foimg_maS1.obj img_main.c ! 121: ! 122: img_meS1.obj: img_menu.c $(HEADERS) ! 123: $(CC32) $(CFLAGS) $(CINC) -Foimg_meS1.obj img_menu.c ! 124: ! 125: img_siS1.obj: img_size.c $(HEADERS) ! 126: $(CC32) $(CFLAGS) $(CINC) -Foimg_siS1.obj img_size.c ! 127: ! 128: img_fiS1.obj: img_file.c $(HEADERS) ! 129: $(CC32) $(CFLAGS) $(CINC) -Foimg_fiS1.obj img_file.c ! 130: ! 131: img_viS1.obj: img_view.c $(HEADERS) ! 132: $(CC32) $(CFLAGS) $(CINC) -Foimg_viS1.obj img_view.c ! 133: ! 134: img_daS1.obj: img_data.c $(HEADERS) ! 135: $(CC32) $(CFLAGS) $(CINC) -Foimg_daS1.obj img_data.c ! 136: ! 137: img_inS1.obj: img_init.c $(HEADERS) ! 138: $(CC32) $(CFLAGS) $(CINC) -Foimg_inS1.obj img_init.c ! 139: ! 140: img_pnS1.obj: img_pnt.c $(HEADERS) ! 141: $(CC32) $(CFLAGS) $(CINC) -Foimg_pnS1.obj img_pnt.c ! 142: ! 143: img_dlS1.obj: img_dlg.c $(HEADERS) ! 144: $(CC32) $(CFLAGS) $(CINC) -Foimg_dlS1.obj img_dlg.c ! 145: ! 146: img_heS1.obj: img_help.c $(HEADERS) img_help.h ! 147: $(CC32) $(CFLAGS) $(CINC) -Foimg_heS1.obj img_help.c ! 148: ! 149: img_utS1.obj: img_util.c $(HEADERS) ! 150: $(CCS1) $(CFLAGSS1) $(CINC) -Fa -Foimg_utS1.obj img_util.c ! 151: #------------------------------------------------------------------- ! 152: # This section creates the help manager file. The IPF compiler ! 153: # creates a file called main.hlp which is renamed to image.hlp. ! 154: #------------------------------------------------------------------- ! 155: image.hlp: $(ALL_IPF) ! 156: ipfc img_main.ipf /W3 ! 157: if exist image.hlp del image.hlp ! 158: rename img_main.hlp image.hlp ! 159: ! 160: ! 161: #------------------------------------------------------------------- ! 162: # This section links the object modules into the finished program ! 163: # using the linker command file created earlier. At the end, the ! 164: # resource file is bound to the application. ! 165: #------------------------------------------------------------------- ! 166: imageS1.exe: $(ALL_OBJ1) $(ALL_OBJ2) imageS1.def imageS1.lnk img_maS1.res ! 167: $(LINK) @imageS1.lnk ! 168: $(RC) img_maS1.res imageS1.exe
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.