Skip to content

Commit

Permalink
Merge pull request #4 from gmacd/master
Browse files Browse the repository at this point in the history
Add condition to build z80pack on Mac
  • Loading branch information
EtchedPixels committed Nov 4, 2014
2 parents 05615c9 + e11346a commit 3bf5b83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export CPU = z80
export VERSION = "0.1"
export SUBVERSION = "ac1"

UNAME_S := $(shell uname -s)

ifeq ($(CPU),z80)
export CROSS_AS=sdasz80
export CROSS_LD=sdldz80
Expand All @@ -23,6 +25,11 @@ export CROSS_CC_FONT=--constseg FONT
export CROSS_CC_VIDEO=--codeseg VIDEO
export ASOPTS=-plosff
export BINEXT = .rel
ifeq ($(UNAME_S),Darwin)
export LIBZ80=/usr/local/share/sdcc/lib/z80
else
export LIBZ80=/usr/share/sdcc/lib/z80
endif
else ifeq ($(CPU),6502)
export CROSS_AS=ca65
export CROSS_LD=cl65
Expand Down Expand Up @@ -134,7 +141,7 @@ font4x6.c: tools/make4x6

ifeq ($(CPU), z80)
uzi.ihx: target $(OBJS) platform-$(TARGET)/uzi.lnk
$(CROSS_LD) -n -f platform-$(TARGET)/uzi.lnk
$(CROSS_LD) -n -k $(LIBZ80) -f platform-$(TARGET)/uzi.lnk

fuzix.bin: uzi.ihx tools/analysemap tools/memhogs tools/binman
tools/analysemap <uzi.map
Expand Down
1 change: 0 additions & 1 deletion Kernel/platform-z80pack/uzi.lnk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-i uzi.ihx
-b _CODE=0x0088
-b _COMMONMEM=0xF000
-k /usr/share/sdcc/lib/z80
-l z80
platform-z80pack/crt0.rel
platform-z80pack/commonmem.rel
Expand Down

0 comments on commit 3bf5b83

Please sign in to comment.