no special build scripts should be necessary.MK14HAK wrote:Here is the make lib file and resultant output:
...
Anyone ??
This is a walk-through how to build the compiler, the run time library and finally the hello world test program on Windows:
Requirements:
- Microsoft Visual Studio Community Edition 2013 (includes msbuild)
- GNU make for Windows as recommended in the cc65 Wiki: http://gnuwin32.sourceforge.net/packages/make.htm
I used Microsoft Visual Studio Community Edition 2013 because it comes with msbuild for building from the command line. It might be possible to use Visual Studio Express 2013 as well and build the compiler binaries in the IDE.
The following protocol shows the steps:
1) Clone cc65.git repository
2) Clone c1pctest.git repository
3) Use msbuild to build the compiler binaries in cc65\src with Visual Studio
4) Use GNU make to compile the "c1p" runtime library with the cc65 compiler
5) Build the hello world test program "hello,c1p" in the c1pctest\src directory
Code: Select all
C:\Users\stm\Documents\GIT> git clone https://github.com/smuehlst/cc65.git
Cloning into 'cc65'...
remote: Counting objects: 61233, done.
remote: Compressing objects: 100% (22902/22902), done.
remote: Total 61233 (delta 37571), reused 61180 (delta 37537)
Receiving objects: 100% (61233/61233), 37.36 MiB | 890.00 KiB/s, done.
Resolving deltas: 100% (37571/37571), done.
Checking connectivity... done.
Checking out files: 100% (2457/2457), done.
C:\Users\stm\Documents\GIT> git clone https://github.com/smuehlst/c1pctest.git
Cloning into 'c1pctest'...
remote: Counting objects: 69, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 69 (delta 6), reused 0 (delta 0)
Unpacking objects: 100% (69/69), done.
Checking connectivity... done.
C:\Users\stm\Documents\GIT> cd cc65\src
C:\Users\stm\Documents\GIT\cc65\src [c1p]> msbuild cc65.sln
Microsoft (R)-Buildmodul, Version 12.0.31101.0
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
<... lots of build output ... >
Der Buildvorgang wurde erfolgreich ausgeführt.
0 Warnung(en)
0 Fehler
Verstrichene Zeit 00:01:28.36
C:\Users\stm\Documents\GIT\cc65\src [c1p]> cd ..\libsrc
C:\Users\stm\Documents\GIT\cc65\libsrc [c1p]> make TARGETS=c1p
c1p - common/_afailed.c
c1p - conio/_cursor.s
c1p - common/_cwd.s
c1p - common/_environ.s
<... lots of build output ... >
C:\Users\stm\Documents\GIT\cc65\libsrc [c1p]> cd ..\..\c1pctest\src
C:\Users\stm\Documents\GIT\c1pctest\src [master +0 ~4 -0]> make
../../cc65/bin/cl65 --start-addr 0x300 --mapfile hello.map -vm -t c1p hello.c
../../cc65/bin/c1p65 -S 0x300 hello
../../cc65/bin/cl65 --start-addr 0x300 --mapfile minimal.map -vm -t c1p minimal.c
../../cc65/bin/c1p65 -S 0x300 minimal
Code: Select all
[stm@centos ~]$ git clone https://github.com/smuehlst/cc65.git
Initialized empty Git repository in /home/stm/cc65/.git/
remote: Counting objects: 61233, done.
remote: Compressing objects: 100% (22902/22902), done.
remote: Total 61233 (delta 37571), reused 61180 (delta 37537)
Receiving objects: 100% (61233/61233), 37.36 MiB | 195 KiB/s, done.
Resolving deltas: 100% (37571/37571), done.
[stm@centos ~]$ git clone https://github.com/smuehlst/c1pctest.git
Initialized empty Git repository in /home/stm/c1pctest/.git/
remote: Counting objects: 69, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 69 (delta 6), reused 0 (delta 0)
Unpacking objects: 100% (69/69), done.
[stm@centos ~]$ cd cc65
[stm@centos cc65]$ make TARGETS=c1p
ar65/add.c
ar65/del.c
ar65/error.c
ar65/exports.c
<... lots of build output ...>
[stm@centos cc65]$ cd ../c1pctest/src
[stm@centos src]$ make
../../cc65/bin/cl65 --start-addr 0x300 --mapfile hello.map -vm -t c1p hello.c
../../cc65/bin/c1p65 -S 0x300 hello
../../cc65/bin/cl65 --start-addr 0x300 --mapfile minimal.map -vm -t c1p minimal.c
../../cc65/bin/c1p65 -S 0x300 minimal
Best regards
Stephan