]> git.sur5r.net Git - cc65/blobdiff - doc/compile.txt
Added atmos and new c16 target
[cc65] / doc / compile.txt
index 30a2cf7c7a6055fe7fb9eeb69b006f845f493da5..236e6ac6b0c4d7011bd383a2b90272788c7180da 100644 (file)
@@ -68,56 +68,77 @@ using DJGPP (add your system type to CFLAGS if needed):
 
 Here's my current batch file:
 
-cd cc65
-if exist .depend goto ahead1
-make -f make\gcc.mak
-:ahead1
+cd djgpp_v2\cc65
+
+if exist bin\nul goto ahead
+mkdir bin
+mkdir lib
+:ahead
+
+cd src\common
 make -f make\gcc.mak
-move *.exe ..\binutils
 
-cd ..\cl65
-if exist .depend goto ahead2
+cd ..\ar65
 make -f make\gcc.mak
-:ahead2
+del ar65
+strip ar65.exe
+move ar65.exe ..\..\bin
+
+cd ..\ca65
 make -f make\gcc.mak
-move *.exe ..\binutils
+del ca65
+strip ca65.exe
+move ca65.exe ..\..\bin
 
-cd ..\binutils\common
-if exist .depend goto ahead3
+cd ..\cc65
 make -f make\gcc.mak
-:ahead3
+del cc65
+strip cc65.exe
+move cc65.exe ..\..\bin
+
+cd ..\cl65
 make -f make\gcc.mak
+del cl65
+strip cl65.exe
+move cl65.exe ..\..\bin
 
-cd ..\ca65
-if exist .depend goto ahead4
+cd ..\da65
 make -f make\gcc.mak
-:ahead4
+del da65
+strip da65.exe
+move da65.exe ..\..\bin
+
+cd ..\grc
 make -f make\gcc.mak
-move *.exe ..
+del grc
+strip grc.exe
+move grc.exe ..\..\bin
 
 cd ..\ld65
-if exist .depend goto ahead5
-make -f make\gcc.mak
-:ahead5
 make -f make\gcc.mak
-move *.exe ..
+del ld65
+strip ld65.exe
+move ld65.exe ..\..\bin
 
-cd ..\ar65
-if exist .depend goto ahead6
-make -f make\gcc.mak
-:ahead6
+cd ..\od65
 make -f make\gcc.mak
-move *.exe ..
+del od65
+strip od65.exe
+move od65.exe ..\..\bin
+
+cd ..\..
 
-cd ..\..\lib\common
-make 'CFLAGS=-Oi -I../../include/'
+cd libsrc\common
+make "CC=cc65" "CFLAGS=-Osir -g -t none -I../../include" "AS=ca65"
+"AFLAGS=-t none"
 ar65 a common.lib *.o
-move common.lib ..
+move common.lib ..\..\lib
 
 cd ..\runtime
-make 'CFLAGS=-Oi -I../../include/'
+make "CC=cc65" "CFLAGS=-Osir -g -t none -I../../include" "AS=ca65"
+"AFLAGS=-t none"
 ar65 a runtime.lib *.o
-move runtime.lib ..
+move runtime.lib ..\..\lib
 
  --