Skip to content

Commit 61d915f

Browse files
Added build and clean scripts to simplify release building
Should just require movement of executables into the /bin folder now for things to work
1 parent 3017951 commit 61d915f

File tree

40 files changed

+78
-6
lines changed

40 files changed

+78
-6
lines changed

CEdev/bin/main_makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ CD = cd
2323
RM = del /F /Q
2424
CP = copy /Y
2525
NULL = >nul 2>&1
26+
RM_DIR = rmdir /s /q
2627

2728
#Generate the default names for input and object files
2829
TARGETHEX := $(TARGET).hex
@@ -256,8 +257,14 @@ $(OBJDIR)/%.obj :
256257

257258
#This rule cleans up everything
258259
clean :
259-
@$(RM) $(call WINPATH,$(BINDIR)/$(TARGETHEX) $(BINDIR)/$(TARGETTYPE) $(BINDIR)/$(TARGETMAP) $(OBJECTS) $(OBJDIR)/*.src $(OBJDIR)/$(ICON_ASM)) $(NULL)
260+
@$(RM) $(call WINPATH,$(BINDIR)/$(TARGETHEX) $(BINDIR)/$(TARGETTYPE) $(BINDIR)/$(TARGETMAP) $(OBJECTS) $(OBJDIR)/*.src $(OBJDIR)/*.asm) $(NULL)
260261
@echo Cleaned build files.
262+
263+
#This rule cleans up everything except the executable
264+
clean-leave-executable :
265+
@$(RM) $(call WINPATH,$(BINDIR)/$(TARGETHEX) $(BINDIR)/$(TARGETMAP)) $(NULL)
266+
@$(RM_DIR) $(call WINPATH,$(OBJDIR)) $(NULL)
267+
@echo Cleaned $(TARGET)
261268

262269
version :
263270
@echo C CE SDK Version $(VERSION)

CEdev/examples/demo_0/bin/DEMO0.8xp

5 Bytes
Binary file not shown.

CEdev/examples/demo_1/bin/DEMO1.8xp

5 Bytes
Binary file not shown.

CEdev/examples/demo_2/bin/DEMO2.8xp

5 Bytes
Binary file not shown.

CEdev/examples/demo_3/bin/DEMO3.8xp

5 Bytes
Binary file not shown.

CEdev/examples/demo_4/bin/DEMO4.8xp

5 Bytes
Binary file not shown.

CEdev/examples/demo_5/bin/DEMO5.8xp

5 Bytes
Binary file not shown.

CEdev/examples/demo_6/bin/DEMO6.8xp

3 Bytes
Binary file not shown.

CEdev/examples/demo_7/bin/DEMO7.8xp

3 Bytes
Binary file not shown.

CEdev/examples/demo_8/bin/DEMO8.8xp

3 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

CEdev/lib/ce/graphx/graphx.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.assume ADL=1
21
define .GRAPHX_HEADER,space=ram
32
define .GRAPHX,space=ram
43
segment .GRAPHX_HEADER
4+
.assume ADL=1
55
db 192,"GRAPHX",0,4
66
end

CEdev/lib/src/buildexamples.bat

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
3+
REM ----------------------------------------------------
4+
REM Builds all examples for easy compile testing
5+
REM By Matt "MateoConLechuga" Waltz
6+
REM ----------------------------------------------------
7+
8+
echo -- Cleaning examples...
9+
cd /D %CEDEV%\examples
10+
for /D %%a in (demo*) do cd %%a && make && cd ..
11+
cd /D %CEDEV%\examples\library_examples\fileio
12+
for /D %%a in (demo*) do cd %%a && make && cd ..
13+
cd /D %CEDEV%\examples\library_examples\graphics
14+
for /D %%a in (demo*) do cd %%a && make && cd ..
15+
cd /D %CEDEV%\examples\library_examples\keypad
16+
for /D %%a in (demo*) do cd %%a && make && cd ..
17+
cd %CEDEV%\lib\src

CEdev/lib/src/cleanall.bat

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
3+
REM ----------------------------------------------------
4+
REM Executes cleanup scripts for release
5+
REM By Matt "MateoConLechuga" Waltz
6+
REM ----------------------------------------------------
7+
8+
call cleanexamples.bat
9+
call cleanlibs.bat

CEdev/lib/src/cleanexamples.bat

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
3+
REM ----------------------------------------------------
4+
REM Deletes built examples for release cleanup
5+
REM By Matt "MateoConLechuga" Waltz
6+
REM ----------------------------------------------------
7+
8+
echo -- Cleaning examples...
9+
cd /D %CEDEV%\examples
10+
for /D %%a in (demo*) do cd %%a && make clean-leave-executable && cd ..
11+
cd /D %CEDEV%\examples\library_examples\fileio
12+
for /D %%a in (demo*) do cd %%a && make clean-leave-executable && cd ..
13+
cd /D %CEDEV%\examples\library_examples\graphics
14+
for /D %%a in (demo*) do cd %%a && make clean-leave-executable && cd ..
15+
cd /D %CEDEV%\examples\library_examples\keypad
16+
for /D %%a in (demo*) do cd %%a && make clean-leave-executable && cd ..
17+
cd %CEDEV%\lib\src

CEdev/lib/src/cleanlibs.bat

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@echo off
2+
3+
REM ----------------------------------------------------
4+
REM Deletes built shared libraries for release cleanup
5+
REM By Matt "MateoConLechuga" Waltz
6+
REM ----------------------------------------------------
7+
8+
echo -- Deleting built shared libs...
9+
cd fileio
10+
rmdir /S /Q lib
11+
cd ..
12+
cd keypad
13+
rmdir /S /Q lib
14+
cd ..
15+
cd graphics/graphc
16+
rmdir /S /Q lib
17+
cd ../graphx
18+
rmdir /S /Q lib
19+
cd ../..

CEdev/lib/src/fileio/build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set LIB_NAME=FILEIOC
77
set LIB_SRC=fileio_lib.asm
8-
set SPASM_EXE=%CEDEV%\lib\src\include\spasm.exe
8+
set SPASM_EXE=%CEDEV%\bin\spasm.exe
99

1010
echo Assembling Library...
1111
mkdir lib

CEdev/lib/src/graphics/graphc/build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set LIB_NAME=GRAPHC
77
set LIB_SRC=graphics_lib_old.asm
8-
set SPASM_EXE=%CEDEV%\lib\src\include\spasm.exe
8+
set SPASM_EXE=%CEDEV%\bin\spasm.exe
99

1010
echo Assembling Library...
1111
mkdir lib

CEdev/lib/src/graphics/graphx/build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set LIB_NAME=GRAPHX
77
set LIB_SRC=graphics_lib.asm
8-
set SPASM_EXE=%CEDEV%\lib\src\include\spasm.exe
8+
set SPASM_EXE=%CEDEV%\bin\spasm.exe
99

1010
echo Assembling Library...
1111
mkdir lib

CEdev/lib/src/keypad/build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set LIB_NAME=KEYPADC
77
set LIB_SRC=keypad_lib.asm
8-
set SPASM_EXE=%CEDEV%\lib\src\include\spasm.exe
8+
set SPASM_EXE=%CEDEV%\bin\spasm.exe
99

1010
echo Assembling Library...
1111
mkdir lib

CEdev/lib/src/readme.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To build all required libraries and files, execute 'buildall.bat'.
2+
3+
When preparing for a release, execute 'cleanall.bat'

0 commit comments

Comments
 (0)