Added Linux/Mac build support
This commit is contained in:
parent
8a9878d03d
commit
5a84dd1593
|
@ -37,6 +37,7 @@ Building this project requires the [VBCC](http://www.compilers.de/vbcc.html) com
|
||||||
```MAKE``` utility. Using your command line, go into the ```src``` directory and type:
|
```MAKE``` utility. Using your command line, go into the ```src``` directory and type:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
export VBCC = <use-your-projects-dir>/FoenixMCP/vbcc
|
||||||
make all
|
make all
|
||||||
```
|
```
|
||||||
to build the kernel.
|
to build the kernel.
|
||||||
|
|
|
@ -26,8 +26,14 @@ export AS = vasmm68k_mot
|
||||||
export ASFLAGS = -quiet -Fvobj -nowarn=62
|
export ASFLAGS = -quiet -Fvobj -nowarn=62
|
||||||
export CC = vc
|
export CC = vc
|
||||||
export DEFINES = -DCPU=$(CPU) -DMODEL=$(MODEL) -DVER_MAJOR=$(VER_MAJOR) -DVER_MINOR=$(VER_MINOR) -DVER_BUILD=$(VER_BUILD) # -DKBD_POLLED
|
export DEFINES = -DCPU=$(CPU) -DMODEL=$(MODEL) -DVER_MAJOR=$(VER_MAJOR) -DVER_MINOR=$(VER_MINOR) -DVER_BUILD=$(VER_BUILD) # -DKBD_POLLED
|
||||||
export CFLAGS = +../vbcc/config/m68k-foenix -I. -Iinclude
|
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
export CFLAGS = +$(VBCC)/config/m68k-foenix -I. -I$(CURDIR)/include -I$(CURDIR)
|
||||||
export RM = cmd /C del /Q /F
|
export RM = cmd /C del /Q /F
|
||||||
|
else
|
||||||
|
export CFLAGS = +$(VBCC)/config/m68k-foenix-linux -I. -I$(CURDIR)/include -I$(CURDIR)
|
||||||
|
export RM = rm -f
|
||||||
|
endif
|
||||||
|
|
||||||
cpu = m68k
|
cpu = m68k
|
||||||
cpu_assembly_src := $(wildcard $(cpu)/*.s)
|
cpu_assembly_src := $(wildcard $(cpu)/*.s)
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
override CFLAGS = +../../vbcc/config/m68k-foenix -I. -I.. -I../include
|
|
||||||
|
|
||||||
csources = $(wildcard *.c)
|
csources = $(wildcard *.c)
|
||||||
cobjects = $(subst .c,.o,$(csources))
|
cobjects = $(subst .c,.o,$(csources))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
override CFLAGS = +../../vbcc/config/m68k-foenix -I. -I.. -I../include
|
|
||||||
|
|
||||||
csources = $(wildcard *.c)
|
csources = $(wildcard *.c)
|
||||||
cobjects = $(subst .c,.o,$(csources))
|
cobjects = $(subst .c,.o,$(csources))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
override CFLAGS = +../../vbcc/config/m68k-foenix -I. -I.. -I../include
|
|
||||||
|
|
||||||
csources = $(wildcard *.c)
|
csources = $(wildcard *.c)
|
||||||
cobjects = $(subst .c,.o,$(csources))
|
cobjects = $(subst .c,.o,$(csources))
|
||||||
|
|
||||||
|
|
3071
src/foenixmcp.s68
3071
src/foenixmcp.s68
File diff suppressed because it is too large
Load diff
|
@ -9,9 +9,9 @@
|
||||||
#include "sys_general.h"
|
#include "sys_general.h"
|
||||||
|
|
||||||
#if MODEL == MODEL_FOENIX_A2560K
|
#if MODEL == MODEL_FOENIX_A2560K
|
||||||
#include "A2560K/PATA_a2560k.h"
|
#include "A2560K/pata_a2560k.h"
|
||||||
#elif MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS
|
#elif MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS
|
||||||
#include "A2560U/PATA_a2560u.h"
|
#include "A2560U/pata_a2560u.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
override CFLAGS = +../../vbcc/config/m68k-foenix -I. -I.. -I../include
|
|
||||||
|
|
||||||
asources = startup_m68k.s
|
asources = startup_m68k.s
|
||||||
aobjects = $(subst .s,.o,$(asources))
|
aobjects = $(subst .s,.o,$(asources))
|
||||||
csources = bios_m68k.c
|
csources = bios_m68k.c
|
||||||
|
|
8475
src/mapfile
8475
src/mapfile
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,3 @@
|
||||||
override CFLAGS = +../../vbcc/config/m68k-foenix -I. -I.. -I../include
|
|
||||||
|
|
||||||
csources = $(wildcard *.c)
|
csources = $(wildcard *.c)
|
||||||
cobjects = $(subst .c,.o,$(csources))
|
cobjects = $(subst .c,.o,$(csources))
|
||||||
|
|
||||||
|
|
13
vbcc/config/m68k-foenix-linux
Normal file
13
vbcc/config/m68k-foenix-linux
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
-cc=vbccm68k -quiet %s -o= %s %s -O=%ld -I$VBCC/targets/m68k-foenix/include
|
||||||
|
-ccv=vbccm68k %s -o= %s %s -O=%ld -I$VBCC/targets/m68k-foenix/include
|
||||||
|
-as=vasmm68k_mot -quiet -Fvobj -nowarn=62 %s -o %s
|
||||||
|
-asv=vasmm68k_mot -Fvobj -nowarn=62 %s -o %s
|
||||||
|
-rm=rm %s
|
||||||
|
-rmv=rm %s
|
||||||
|
-ld=vlink -bsrec28 -x -Cvbcc m68k/startup_m68k.o %s %s -L$VBCC/targets/m68k-foenix/lib -T$VBCC/targets/m68k-foenix/vlink.cmd -lvc -o %s -Mmapfile
|
||||||
|
-l2=vlink -bsrec28 -x -Cvbcc %s %s -L$VBCC/targets/m68k-foenix/lib -T$VBCC/targets/m68k-foenix/vlink.cmd -o %s -Mmapfile
|
||||||
|
-ldv=vlink -bsrec28 -t -x -Cvbcc m68k/startup.o %s %s -L$VBCC/targets/m68k-foenix/lib -T$VBCC/targets/m68k-foenix/vlink.cmd -lvc -o %s -Mmapfile
|
||||||
|
-l2v=vlink -bsrec28 -t -x -Cvbcc %s %s -L$VBCC/targets/m68k-foenix/lib -T$VBCC/targets/m68k-foenix/vlink.cmd -o %s -Mmapfile
|
||||||
|
-ul=-l%s
|
||||||
|
-cf=-F%s
|
||||||
|
-ml=1000
|
Loading…
Reference in a new issue