Changeset 112 for trunk/src/os2ahci/wmakefile
- Timestamp:
- Jul 6, 2011, 10:02:47 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/wmakefile
r43 r112 3 3 # 4 4 # Copyright (c) 2010 Christian Mueller, Markus Thielen. 5 # Parts copied from/inspired by the Linux AHCI driver; 5 # Parts copied from/inspired by the Linux AHCI driver; 6 6 # those parts are (c) Linux AHCI/ATA maintainers 7 7 # … … 19 19 # along with this program; if not, write to the Free Software 20 20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 22 ############################################################################### 23 # Calling Syntax 24 # 25 # wmake -ms -f wmakefile 26 # 27 # NOTE: we use MS compatibility mode (-ms) so we can use a syntax similar 28 # to the well known nmake syntax. 29 # 30 31 # 32 # THE WATCOM BUILD IS BROKEN! 33 # 34 # It might run through but produces a non-working driver 35 # 36 37 ############################################################################### 38 # wmake directives 39 .HOLD # do not prompt for deletion of created files on error; leave them alone 40 21 41 22 42 … … 38 58 -I$(DDK)\base\ibmh \ 39 59 -I$(DDK)\base\src\dev\dasd\diskh \ 40 -I$(WATCOM)\h 60 -I$(DDK)\base\src\dev\thinkpad\dockii\apmcalls \ 61 -I$(CC16)\include 41 62 42 63 AS_INCLUDE = -I:$(DDK)\base\inc \ … … 45 66 LIB_DIRS = $(DDK)\base\lib\ \ 46 67 $(DDK)\base\src\dev\dasd\devhlp\ \ 47 68 $(DDK)\base\src\dev\thinkpad\dockii\apmcalls\ \ 48 69 49 70 ############################################################################### 50 71 # Tool Chain 51 72 # 52 # This makefile uses the Watcom 16bit compiler. 73 # This makefile uses the Watcom 16bit compiler. 53 74 # Linker and assembler are link.exe and alp.exe that ship with the OS/2 DDK 54 75 # … … 62 83 63 84 AFLAGS = -Mb 64 CFLAGS = -d3 -hc -bt=os2 -ms -zu -5 -w 2 -wcd=138-zp1 -q -s -zgp -zfp -oi85 CFLAGS = -d3 -hc -bt=os2 -ms -zu -5 -w3 -wcd=138 -wcd=300 -ecc -zp1 -q -s -zgp -zfp -oi 65 86 CFLAGS_DEBUG = -d3 -hc 66 LFLAGS = /noe /nod /packd /a:16 /batch /map /line 87 LFLAGS = /noe /nod /packd /a:16 /batch /map /line 67 88 68 89 ############################################################################### … … 71 92 TARGET = os2ahci.add 72 93 73 LIBS = addcalls doscalls rmcalls # dhcalls not needed, see local devhelp.h94 LIBS = addcalls doscalls rmcalls apmcalls # dhcalls not needed, see local devhelp.h 74 95 75 96 SRCS = init.asm math.asm libc.c os2ahci.c pci.c ahci.c ata.c atapi.c \ 76 ctxhook.c 97 ctxhook.c trace.c ioctl.c apm.c 77 98 78 99 OBJS = init.obj libc.obj os2ahci.obj pci.obj ahci.obj ata.obj atapi.obj \ 79 ctxhook.obj 100 ctxhook.obj trace.obj ioctl.obj apm.obj 80 101 81 102 INCS = os2ahci.h ahci.h version.h … … 85 106 86 107 clean: 87 rm -f $(OBJS) $(TARGET) 108 rm -f $(OBJS) $(TARGET) *.lst *.cod 88 109 89 110 ############################################################################### 90 111 # Object/source dependencies 91 112 92 init.obj: init.asm wmakefile113 init.obj: init.asm Makefile 93 114 94 libc.obj: libc.c wmakefile $(INCS)115 libc.obj: libc.c Makefile $(INCS) 95 116 96 os2ahci.obj: os2ahci.c wmakefile $(INCS) bldday.h117 os2ahci.obj: os2ahci.c Makefile $(INCS) bldday.h ioctl.h 97 118 98 pci.obj: pci.c wmakefile $(INCS)119 pci.obj: pci.c Makefile $(INCS) 99 120 100 ahci.obj: ahci.c wmakefile $(INCS) ata.h atapi.h121 ahci.obj: ahci.c Makefile $(INCS) ata.h atapi.h 101 122 102 ata.obj: ata.c wmakefile $(INCS) ata.h123 ata.obj: ata.c Makefile $(INCS) ata.h 103 124 104 atapi.obj: atapi.c wmakefile $(INCS) ata.h atapi.h125 atapi.obj: atapi.c Makefile $(INCS) ata.h atapi.h 105 126 106 ctxhook.obj: ctxhook.c wmakefile $(INCS) ata.h atapi.h 127 ctxhook.obj: ctxhook.c Makefile $(INCS) ata.h atapi.h 128 129 apm.obj: apm.c Makefile $(INCS) 130 131 ioctl.obj: ioctl.c Makefile $(INCS) atapi.h ioctl.h 132 133 trace.obj: trace.c Makefile $(INCS) 134 135 os2ahci.def: version.h os2ahci.def.template 107 136 108 137 ############################################################################### … … 124 153 wdis -l $*.obj 125 154 155 os2ahci.def: 156 $(BLDLEVEL) os2ahci.def.template os2ahci.def version.h 157 126 158 $(TARGET): $(OBJS) os2ahci.def wmakefile 127 $(BLDLEVEL) os2ahci.def version.h128 159 $(LD) $(LFLAGS) $(OBJS),$(TARGET),$*.map,$(LIB_DIRS) $(LIBS),$*.def 129 160 mapsym os2ahci
Note:
See TracChangeset
for help on using the changeset viewer.