Changeset 176 for trunk/src/os2ahci/Makefile
- Timestamp:
- Mar 12, 2016, 12:25:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/Makefile
r174 r176 4 4 # 5 5 # Copyright (c) 2010 Christian Mueller, Markus Thielen. 6 # Copyright (c) 2013 David Azarewicz6 # Copyright (c) 2013-2015 David Azarewicz 7 7 # Parts copied from/inspired by the Linux AHCI driver; 8 8 # those parts are (c) Linux AHCI/ATA maintainers … … 34 34 FIXPACK= 35 35 36 !ifndef %ROOT 37 ROOT=$+$(%cwd)$- 38 !else 39 ROOT=$(%ROOT) 40 !endif 41 36 42 !ifndef %WATCOM # if not defined in the environment 37 43 !error WATCOM must be set in the environment. … … 58 64 !endif 59 65 66 VERSION=$(BLD_MAJOR).$(BLD_MINOR) 67 ZIPDIR=$(ROOT)\tmp 68 69 !if "$(FIXPACK)"!="" 70 !ifndef %BLD_DATE 71 !error BLD_DATE must be defined for test versions 72 !endif 73 WPIFILE=$(ROOT)\AHCI-test-$(VERSION)-$(%BLD_DATE)-WPI.zip 74 !else 75 WPIFILE=$(ROOT)\AHCI-$(VERSION)-WPI.zip 76 !endif 77 60 78 AS_INCLUDE = -I=$(DDK)\base\inc 61 79 LIB_DIRS = $(DDK)\base\lib\ … … 70 88 71 89 %INCLUDE=..\include;$(DDK)\base\h; 72 %PATH= ..\..\tools;$(WATCOM)\BINP;$(WATCOM)\BINW;$(DDK)\base\tools;90 %PATH=$(ROOT)\tools;$(WATCOM)\BINP;$(WATCOM)\BINW;$(DDK)\base\tools;$(%PATH) 73 91 AS=wasm 74 92 CC=wcc … … 139 157 @%create $^@ 140 158 @%append $^@ /* Autogenerated by Makefile */ 141 @%append $^@ $#define VERSION $(BLD_MAJOR)$(BLD_MINOR) /* driver version (2 implied decimals) */ 159 @%append $^@ $#define DMAJOR $(BLD_MAJOR) 160 @%append $^@ $#define DMINOR $(BLD_MINOR) 142 161 @%append $^@ $#define DVENDOR "$(VENDOR)" 143 162 @AddToFile $^@,$#define BLD_YEAR,DATEYEAR 144 163 @AddToFile $^@,$#define BLD_MONTH,DATEMONTH 145 164 @AddToFile $^@,$#define BLD_DAY,DATEDAY 146 @AddToFile $^@,$#define BLDLEVEL,BLDLEVEL2,$(VENDOR),$( BLD_MAJOR).$(BLD_MINOR),AHCI Driver (c) 2013$(VENDOR),$(FIXPACK)165 @AddToFile $^@,$#define BLDLEVEL,BLDLEVEL2,$(VENDOR),$(VERSION),AHCI Driver (c) 2015 $(VENDOR),$(FIXPACK) 147 166 148 167 .asm.obj: .autodepend … … 187 206 @%erase $^*.ma1 188 207 208 release: os2ahci.add os2ahci.sym .symbolic 209 @if exist $(WPIFILE) @del $(WPIFILE) 210 @!rm -rf $(ZIPDIR) 211 212 @md $(ZIPDIR) 213 214 @md $(ZIPDIR)\pkg1 215 @copy /b $(ROOT)\src\os2ahci\os2ahci.add $(ZIPDIR)\pkg1 >NUL 216 @copy /b $(ROOT)\src\os2ahci\os2ahci.sym $(ZIPDIR)\pkg1 >NUL 217 218 @md $(ZIPDIR)\pkg2 219 @copy /b $(ROOT)\Tools\smartahci.exe $(ZIPDIR)\pkg2 >NUL 220 #@copy $(ROOT)\Tools\testlog.cmd $(ZIPDIR)\pkg2 >NUL 221 222 @md $(ZIPDIR)\pkg20 223 @copy $(ROOT)\src\os2ahci\README $(ZIPDIR)\pkg20 >NUL 224 @copy $(ROOT)\Tools\LICENSE $(ZIPDIR)\pkg20 >NUL 225 226 @md $(ZIPDIR)\wpi 227 @sed -e "s/\\X\\X\\X/\\0\\$(VERSION:.=\\)/" $(ROOT)\Tools\ahci.wis >$(ZIPDIR)\wpi\ahci.wis 228 #@copy $(ROOT)\tools\stub.exe $(ZIPDIR)\wpi >NUL 229 230 cd $(ZIPDIR) 231 @zip -r -X $(WPIFILE) * 232 @cd $(ROOT) 233 @!rm -rf $(ZIPDIR) 234
Note:
See TracChangeset
for help on using the changeset viewer.