Commit 66c17b6
authored
Fix ups for cc65 and cmoc with xcode installed (#44)
* Fix cmoc compilation with Xcode SDK
- Remove direct includes of cmoc.h and coco.h from fujinet-fuji.h
- Define bool and integer types using macros for CMOC builds
- Avoid including system headers that conflict with cmoc target
- Add -D_CMOC_VERSION_=1 flag to compiler-cmoc.mk
This fixes the issue where cmoc was picking up macOS Xcode headers
instead of cmoc-compatible headers, causing preprocessor errors.
* Fix cc65 cpu.mac multiple inclusion error
- Create common/inc/cpu.inc with include guard for cpu macros
- Update apple2/apple2-6502/bus/sp_init.s to use guarded include
- Prevents 'Symbol already defined' errors when cpu.mac is included multiple times
This fixes the issue where ca65 was redefining CPU_ISET_* symbols
during compilation of assembly files.
* Fix cpu.inc guard to check for actual CPU symbol
- Change guard from checking __CPU_INC_INCLUDED__ to CPU_ISET_NONE
- This properly detects if cpu.mac has already been included
- Fixes the 'Symbol already defined' errors for all apple2 targets
The issue was that .ifndef __CPU_INC_INCLUDED__ didn't prevent the
.macpack cpu from being executed multiple times, since the CPU symbols
are defined with = (assignment) not .define. Checking for CPU_ISET_NONE
(which is defined by cpu.mac) properly guards against multiple inclusion.
* Add GNU Make 4.0+ version check to Makefile
- Require GNU Make 4.0 or later for $(file ...) function support
- Display helpful error message on macOS directing users to use 'gmake'
- Fixes issue where VERSION_STRING was empty with old make 3.81
- Ensures version numbers appear in dist filenames (e.g., fujinet-lib-apple2-4.8.0.zip)
Users on macOS should use 'gmake' instead of 'make' for proper version handling.1 parent 89e23c6 commit 66c17b6
File tree
5 files changed
+33
-16
lines changed- apple2/apple2-6502/bus
- common/inc
- makefiles
5 files changed
+33
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
0 commit comments