Skip to content

Commit 91e64fd

Browse files
mateoconlechugaruner112
authored andcommitted
Added compression option, rebuilt demos
1 parent 74becea commit 91e64fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+439
-399
lines changed

CEdev/bin/main_makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LIBHEADER_ASM := libheader.asm
77
#----------------------------
88

99
SHELL := cmd.exe
10-
VERSION := 6.8
10+
VERSION := 6.9
1111

1212
#----------------------------
1313
# Try not to edit anything below these lines unless you know what you are doing
@@ -26,6 +26,8 @@ NULL = >nul 2>&1
2626

2727
#Generate the default names for input and object files
2828
TARGETHEX := $(TARGET).hex
29+
TARGETMAP := $(TARGET).map
30+
TARGETTYPE := $(TARGET).8xp
2931
ICON_ASM := iconc.asm
3032

3133
#Objects
@@ -53,17 +55,13 @@ CV = "$(BIN)convhex"
5355
PG = "$(BIN)convpng"
5456
BIN := $(call NATIVEPATH,$(CEDEV)/bin/)
5557

56-
#Determine if output should be archived or an AppVar
58+
#Determine if output should be archived or compressed
5759
ifneq ($(ARCHIVED),NO)
5860
CVFLAGS := -a
5961
endif
60-
ifneq ($(APPVAR),NO)
61-
CVFLAGS += -v
62-
TARGETTYPE := $(TARGET).8xv
63-
else
64-
TARGETTYPE := $(TARGET).8xp
62+
ifneq ($(COMPRESSED),NO)
63+
CVFLAGS += -x
6564
endif
66-
TARGETMAP := $(TARGET).map
6765

6866
#Find all of the available C and ASM files (Remember, you can create C <-> assembly routines easily this way)
6967
SOURCES := $(call WINPATH,$(foreach dir,$(ALLDIRS),$(wildcard $(dir)*.c)))
@@ -97,7 +95,7 @@ endif
9795
#Define the nesassary headers, along with any the user may have defined, where modification should just trigger a build
9896
USERHEADERS := $(call WINPATH,$(foreach dir,$(ALLDIRS),$(wildcard $(dir)*.h)))
9997
HEADERS := $(subst $(space),;,$(call WINPATH,. $(ALLDIRS) $(addprefix $(CEDEV)/,. include include/asm include/lib/ce include/lib/std $(LIBLOC))))
100-
LIBRARIES := $(call WINPATH,$(addprefix $(CEDEV)/lib/std/,ce/ctice.lib ce/cdebug.lib ce/cintce.lib chelp.lib crt.lib))
98+
LIBRARIES := $(call WINPATH,$(addprefix $(CEDEV)/lib/std/,ce/ctice.lib ce/cdebug.lib ce/cintce.lib ce/cusbce.lib chelp.lib crt.lib))
10199
ifneq ($(USE_FLASH_FUNCTIONS),NO)
102100
LIBRARIES += $(call WINPATH,$(addprefix $(CEDEV)/lib/std/,crt_linked.lib))
103101
else

CEdev/examples/demo_0/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
#Change TARGET to specify the output program name
44
#Change DEBUGMODE to "DEBUG" in order to compile debug.h functions in, and "NDEBUG" to not compile debugging functions
55
#Change ARCHIVED to "YES" to mark the output as archived, and "NO" to not
6-
#Change APPVAR to "YES" to create the file as an AppVar, otherwise "NO" for programs
76
#Change ICONPNG to change the name of the png file that should be made into the icon
87
#Change DESCRIPTION to modify what is displayed within a compatible shell (Not compiled in if icon is not present)
8+
#Change COMPRESSED to change if the output program should be a self extracting archive (usually reduces program size)
99

1010
#----------------------------
1111
TARGET ?= DEMO0
1212
DEBUGMODE ?= NDEBUG
1313
ARCHIVED ?= NO
14-
APPVAR ?= NO
14+
COMPRESSED ?= NO
1515
#----------------------------
16-
ICONPNG := iconc.png
16+
ICONPNG ?= iconc.png
1717
DESCRIPTION ?= "C Toolchain Demo 0"
1818
#----------------------------
1919

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

-6 Bytes
Binary file not shown.

CEdev/examples/demo_1/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
#Change TARGET to specify the output program name
44
#Change DEBUGMODE to "DEBUG" in order to compile debug.h functions in, and "NDEBUG" to not compile debugging functions
55
#Change ARCHIVED to "YES" to mark the output as archived, and "NO" to not
6-
#Change APPVAR to "YES" to create the file as an AppVar, otherwise "NO" for programs
76
#Change ICONPNG to change the name of the png file that should be made into the icon
87
#Change DESCRIPTION to modify what is displayed within a compatible shell (Not compiled in if icon is not present)
8+
#Change COMPRESSED to change if the output program should be a self extracting archive (usually reduces program size)
99

1010
#----------------------------
1111
TARGET ?= DEMO1
1212
DEBUGMODE ?= NDEBUG
1313
ARCHIVED ?= NO
14-
APPVAR ?= NO
14+
COMPRESSED ?= NO
1515
#----------------------------
16-
ICONPNG := iconc.png
16+
ICONPNG ?= iconc.png
1717
DESCRIPTION ?= "C Toolchain Demo 1"
1818
#----------------------------
1919

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

558 Bytes
Binary file not shown.

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

-6 Bytes
Binary file not shown.

CEdev/examples/demo_2/makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
#Change TARGET to specify the output program name
44
#Change DEBUGMODE to "DEBUG" in order to compile debug.h functions in, and "NDEBUG" to not compile debugging functions
55
#Change ARCHIVED to "YES" to mark the output as archived, and "NO" to not
6-
#Change APPVAR to "YES" to create the file as an AppVar, otherwise "NO" for programs
76
#Change ICONPNG to change the name of the png file that should be made into the icon
87
#Change DESCRIPTION to modify what is displayed within a compatible shell (Not compiled in if icon is not present)
8+
#Change COMPRESSED to change if the output program should be a self extracting archive (usually reduces program size)
99

1010
#----------------------------
1111
TARGET ?= DEMO2
1212
DEBUGMODE ?= NDEBUG
1313
ARCHIVED ?= NO
14-
APPVAR ?= NO
14+
COMPRESSED ?= NO
1515
#----------------------------
16-
ICONPNG := iconc.png
16+
ICONPNG ?= iconc.png
1717
DESCRIPTION ?= "C Toolchain Demo 2"
1818
#----------------------------
1919

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

-6 Bytes
Binary file not shown.

CEdev/examples/demo_3/makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
#Change TARGET to specify the output program name
44
#Change DEBUGMODE to "DEBUG" in order to compile debug.h functions in, and "NDEBUG" to not compile debugging functions
55
#Change ARCHIVED to "YES" to mark the output as archived, and "NO" to not
6-
#Change APPVAR to "YES" to create the file as an AppVar, otherwise "NO" for programs
76
#Change ICONPNG to change the name of the png file that should be made into the icon
87
#Change DESCRIPTION to modify what is displayed within a compatible shell (Not compiled in if icon is not present)
8+
#Change COMPRESSED to change if the output program should be a self extracting archive (usually reduces program size)
99

1010
#----------------------------
1111
TARGET ?= DEMO3
1212
DEBUGMODE ?= NDEBUG
1313
ARCHIVED ?= NO
14-
APPVAR ?= NO
14+
COMPRESSED ?= NO
1515
#----------------------------
16-
ICONPNG := iconc.png
16+
ICONPNG ?= iconc.png
1717
DESCRIPTION ?= "C Toolchain Demo 3"
1818
#----------------------------
1919

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

-6 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)