summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/examples/template
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-04-10 15:14:00 -0400
committerAndrew Opalach <andrew@akon.city> 2019-04-10 15:14:00 -0400
commit60699af63f92f43cc4b4b9e3050fcdd2a8468281 (patch)
tree20a18af2774daa43ae7f4352dd032a24f7e06075 /frontends/calculator/CEdev/examples/template
parent4527bc20241068731c62101d0467d416119ec0c4 (diff)
downloadcetris-60699af63f92f43cc4b4b9e3050fcdd2a8468281.tar.gz
cetris-60699af63f92f43cc4b4b9e3050fcdd2a8468281.tar.bz2
cetris-60699af63f92f43cc4b4b9e3050fcdd2a8468281.zip
add opengl fronend, remove sdl frontend, refactor build system
Diffstat (limited to 'frontends/calculator/CEdev/examples/template')
-rw-r--r--frontends/calculator/CEdev/examples/template/iconc.pngbin0 -> 910 bytes
-rw-r--r--frontends/calculator/CEdev/examples/template/makefile15
-rw-r--r--frontends/calculator/CEdev/examples/template/readme.md14
-rw-r--r--frontends/calculator/CEdev/examples/template/src/main.c30
4 files changed, 59 insertions, 0 deletions
diff --git a/frontends/calculator/CEdev/examples/template/iconc.png b/frontends/calculator/CEdev/examples/template/iconc.png
new file mode 100644
index 0000000..125ca62
--- /dev/null
+++ b/frontends/calculator/CEdev/examples/template/iconc.png
Binary files differ
diff --git a/frontends/calculator/CEdev/examples/template/makefile b/frontends/calculator/CEdev/examples/template/makefile
new file mode 100644
index 0000000..1f1b36b
--- /dev/null
+++ b/frontends/calculator/CEdev/examples/template/makefile
@@ -0,0 +1,15 @@
+# ----------------------------
+# Set NAME to the program name
+# Set ICON to the png icon file name
+# Set DESCRIPTION to display within a compatible shell
+# Set COMPRESSED to "YES" to create a compressed program
+# ----------------------------
+
+NAME ?= DEMO
+COMPRESSED ?= NO
+ICON ?= iconc.png
+DESCRIPTION ?= "C SDK Demo"
+
+# ----------------------------
+
+include $(CEDEV)/include/.makefile
diff --git a/frontends/calculator/CEdev/examples/template/readme.md b/frontends/calculator/CEdev/examples/template/readme.md
new file mode 100644
index 0000000..093834f
--- /dev/null
+++ b/frontends/calculator/CEdev/examples/template/readme.md
@@ -0,0 +1,14 @@
+### Template
+
+You can clone this directory for your own projects.
+
+To add code, fill in the void main() function in main.c. You can also create
+your own .c and .h files and add them to the directory; the Makefile included in
+this template will automatically find and compile the new .c files.
+
+In addition, you can also add your own .asm files, which will be detected and
+added appropriately to the proper segment.
+
+---
+
+This template is a part of the C SDK Toolchain for use on the CE.
diff --git a/frontends/calculator/CEdev/examples/template/src/main.c b/frontends/calculator/CEdev/examples/template/src/main.c
new file mode 100644
index 0000000..88416b7
--- /dev/null
+++ b/frontends/calculator/CEdev/examples/template/src/main.c
@@ -0,0 +1,30 @@
+/*
+ *--------------------------------------
+ * Program Name:
+ * Author:
+ * License:
+ * Description:
+ *--------------------------------------
+*/
+
+/* Keep these headers */
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <tice.h>
+
+/* Standard headers (recommended) */
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* Put your function prototypes here */
+
+/* Put all your globals here */
+
+void main(void) {
+ /* Fill in the body of the main function here */
+}
+
+/* Put other functions here */