Changeset 184 for trunk/src/os2ahci/Makefile
- Timestamp:
- Dec 15, 2016, 12:31:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/Makefile
r180 r184 14 14 BLD_MINOR=01 # must be 2 digits 15 15 BLD_REV=0 # not used at this time 16 FIXPACK=Test Build17 16 18 17 !ifndef %ROOT 19 ROOT=$+$(%cwd)$- 20 !e lse18 !error ROOT must be set in the environment. 19 !endif 21 20 ROOT=$(%ROOT) 22 !endif23 21 24 22 !ifndef %WATCOM # if not defined in the environment … … 51 49 !endif 52 50 51 !ifdef %FIXPACK 52 FIXPACK=$(%FIXPACK) 53 !endif 54 53 55 VERSION=$(BLD_MAJOR).$(BLD_MINOR) 54 56 ZIPDIR=$(ROOT)\tmp … … 73 75 74 76 !ifdef __LOADDLL__ 75 !loaddll wcc $(WATCOM)\BINP\DLL\wccd.dll77 !loaddll wcc386 $(WATCOM)\BINP\DLL\wccd386.dll 76 78 !loaddll wlink $(WATCOM)\BINP\DLL\wlinkd.dll 77 79 !endif … … 80 82 AFLAGS=-q -6p -bt=os2 -wx -d1 81 83 CFLAGS =-q -bt=os2 -6s -olinar -s -ze -zl -zq -zfp -zgp -ms -wx -zp1 -ecs -ei -za99 82 CFLAGS_DEBUG=-q -bt=os2 -6s -olinar -s -ze -zl -zq -zfp -zgp -ms -wx -zp1 -ecs -ei -za99 83 !ifneq FIXPACK 84 CFLAGS+= -DTESTVER 84 85 !ifdef DEBUG 86 CDEFS=-DDEBUG 87 O=Debug 88 !else 89 CDEFS= 90 O=Retail 85 91 !endif 86 92 87 ############################################################################### 88 # Main dependencies 93 !ifneq FIXPACK 94 CDEFS+= -DTESTVER 95 !endif 89 96 90 97 LIBS = $(DRV32KIT)\Drv32.lib $(DDK)\base32\lib\kee.lib 91 98 92 OBJS = os2ahci.obj pci.obj ahci.obj ata.objatapi.obj &93 ctxhook.obj trace.obj ioctl.obj apm.objthunk.obj99 OBJS = $(O)\os2ahci.obj $(O)\pci.obj $(O)\ahci.obj $(O)\ata.obj $(O)\atapi.obj & 100 $(O)\ctxhook.obj $(O)\trace.obj $(O)\ioctl.obj $(O)\apm.obj $(O)\thunk.obj 94 101 95 INCS = os2ahci.h ahci.h 102 .asm.obj: .autodepend 103 $(AS) $(AFLAGS) -fo=$^@ $[@ 104 #wdis -l $^@ 96 105 97 all: os2ahci.add os2ahci.sym 106 .c.obj: .autodepend 107 $(CC) $(CFLAGS) $(CDEFS) -fo=$^@ $[@ 108 wdis -l $^@ 98 109 99 clean: .symbolic 100 rm -f $(OBJS) os2ahci.add *.cod *.lst *.def *.map *.sym *.err *.lnk version.h 110 all: directory $(O)\os2ahci.add $(O)\os2ahci.sym 101 111 102 ############################################################################### 103 # Object/source dependencies 104 105 os2ahci.obj: os2ahci.c Makefile $(INCS) version.h ioctl.h 106 107 pci.obj: pci.c Makefile $(INCS) 108 109 ahci.obj: ahci.c Makefile $(INCS) ata.h atapi.h 110 111 ata.obj: ata.c Makefile $(INCS) ata.h 112 113 atapi.obj: atapi.c Makefile $(INCS) atapi.h ata.h 114 115 ctxhook.obj: ctxhook.c Makefile $(INCS) ata.h atapi.h 116 117 apm.obj: apm.c Makefile $(INCS) 118 119 ioctl.obj: ioctl.c Makefile $(INCS) ioctl.h atapi.h 120 121 trace.obj: trace.c Makefile $(INCS) 122 123 ############################################################################### 124 # Action definitions (compile/link commands) 112 directory: .symbolic 113 $(ROOT)\Tools\createpath.cmd $(O) 125 114 126 115 version.h: Makefile .always … … 135 124 @AddToFile $^@,$#define BLDLEVEL,BLDLEVEL2,$(VENDOR),$(VERSION),AHCI Driver (c) %Y $(VENDOR),$(FIXPACK) 136 125 137 .asm.obj: .autodepend 138 $(AS) $(AFLAGS) $(AS_INCLUDE) $[@ 139 #wdis -l $^@ 140 141 .c.obj: .autodepend 142 $(CC) $(CFLAGS) $[@ 143 wdis -l $^@ 144 145 os2ahci.add: version.h $(OBJS) makefile 126 $(O)\os2ahci.add: version.h $(OBJS) Makefile 146 127 @%create $^&.lrf 147 128 @%append $^&.lrf format os2 lx phys … … 168 149 @%erase $^&.lrf 169 150 170 os2ahci.sym:os2ahci.map151 $(O)\os2ahci.sym: $(O)\os2ahci.map 171 152 wat2map.cmd $[@ $^*.ma1 172 $(MAPSYM) $^*.ma1 173 @%erase $^*.ma1 153 cd $(O) 154 $(MAPSYM) $^&.ma1 155 @%erase $^&.ma1 156 cd .. 174 157 175 release: os2ahci.addos2ahci.sym .symbolic158 release: $(O)\os2ahci.add $(O)\os2ahci.sym .symbolic 176 159 @if exist $(WPIFILE) @del $(WPIFILE) 177 160 @!rm -rf $(ZIPDIR) … … 180 163 181 164 @md $(ZIPDIR)\pkg1 182 @copy /b $(ROOT)\src\os2ahci\ os2ahci.add $(ZIPDIR)\pkg1 >NUL183 @copy /b $(ROOT)\src\os2ahci\ os2ahci.sym $(ZIPDIR)\pkg1 >NUL165 @copy /b $(ROOT)\src\os2ahci\$(O)\os2ahci.add $(ZIPDIR)\pkg1 >NUL 166 @copy /b $(ROOT)\src\os2ahci\$(O)\os2ahci.sym $(ZIPDIR)\pkg1 >NUL 184 167 185 168 @md $(ZIPDIR)\pkg2 … … 200 183 @!rm -rf $(ZIPDIR) 201 184 185 clean: .symbolic 186 rm -f *.def *.err *.lnk version.h 187 @if exist Debug @!rm -r Debug 188 @if exist Retail @!rm -r Retail 189 190
Note:
See TracChangeset
for help on using the changeset viewer.