Build combo driver wrapper individually for each target.

The set of relevant drivers is after all different for each target. Building the combo driver wrapper individually opens the option to use .ifdef's to only include the drivers relevant for a certain target.
This commit is contained in:
Oliver Schmidt 2019-04-29 16:31:59 +02:00
parent 9c43d29f27
commit 7e6b77f41b
3 changed files with 52 additions and 4 deletions

View File

@ -118,9 +118,9 @@ c64eth64.lib: c64init.o eth64.o $(LAN91C96OBJS) $(C64OBJS)
c64wiz811.lib: c64init.o wiz811mj.o $(W5100OBJS) $(C64OBJS)
c64combo.lib: c64init.o rr-net.o eth64.o wiz811mj.o ethernetcombo.o $(C64OBJS)
c64combo.lib: c64init.o rr-net.o eth64.o wiz811mj.o c64combo.o $(C64OBJS)
ip65_c64.lib: c64init.o rr-net.o eth64.o wiz811mj.o ethernetcombo.o $(C64_OBJS)
ip65_c64.lib: c64init.o rr-net.o eth64.o wiz811mj.o c64combo.o $(C64_OBJS)
a2uther.lib: a2init.o uthernet.o $(CS8900AOBJS) $(A2OBJS)
@ -128,9 +128,9 @@ a2lancegs.lib: a2init.o lancegs.o $(LAN91C96OBJS) $(A2OBJS)
a2uther2.lib: a2init.o uthernet2.o $(W5100OBJS) $(A2OBJS)
a2combo.lib: a2initcombo.o uthernet.o lancegs.o uthernet2.o ethernetcombo.o $(A2OBJS)
a2combo.lib: a2initcombo.o uthernet.o lancegs.o uthernet2.o a2combo.o $(A2OBJS)
ip65_apple2.lib: a2initcombo.o uthernet.o lancegs.o uthernet2.o ethernetcombo.o $(A2_OBJS)
ip65_apple2.lib: a2initcombo.o uthernet.o lancegs.o uthernet2.o a2combo.o $(A2_OBJS)
ip65_apple2_uther2.lib: a2init.o uthernet2.o $(W5100OBJS) $(A2_OBJS)

24
drivers/a2combo.s Normal file
View File

@ -0,0 +1,24 @@
__APPLE2__ = 1
.include "ethernetcombo.s"
; -- LICENSE FOR a2combo.s --
; The contents of this file are subject to the Mozilla Public License
; Version 1.1 (the "License"); you may not use this file except in
; compliance with the License. You may obtain a copy of the License at
; http://www.mozilla.org/MPL/
;
; Software distributed under the License is distributed on an "AS IS"
; basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
; License for the specific language governing rights and limitations
; under the License.
;
; The Original Code is ip65.
;
; The Initial Developer of the Original Code is Jonno Downes,
; jonno@jamtronix.com.
; Portions created by the Initial Developer are Copyright (C) 2009
; Jonno Downes. All Rights Reserved.
; -- LICENSE END --

24
drivers/c64combo.s Normal file
View File

@ -0,0 +1,24 @@
__CBM__ = 1
.include "ethernetcombo.s"
; -- LICENSE FOR c64combo.s --
; The contents of this file are subject to the Mozilla Public License
; Version 1.1 (the "License"); you may not use this file except in
; compliance with the License. You may obtain a copy of the License at
; http://www.mozilla.org/MPL/
;
; Software distributed under the License is distributed on an "AS IS"
; basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
; License for the specific language governing rights and limitations
; under the License.
;
; The Original Code is ip65.
;
; The Initial Developer of the Original Code is Jonno Downes,
; jonno@jamtronix.com.
; Portions created by the Initial Developer are Copyright (C) 2009
; Jonno Downes. All Rights Reserved.
; -- LICENSE END --