aboutsummaryrefslogtreecommitdiff
path: root/mk-attachments.sh
diff options
context:
space:
mode:
authormingodad <mingodad@gmail.com>2013-01-11 00:04:38 +0000
committermingodad <mingodad@gmail.com>2013-01-11 00:04:38 +0000
commit59e18aee0e509a3ca75dbe6f909e18c1d17893d1 (patch)
tree1ee20b231505273a1b1ba678b67c6c9e5812a414 /mk-attachments.sh
parent0a8c7d143eb0dcae15db9b61feb7b93228645d5f (diff)
downloadtinycc-59e18aee0e509a3ca75dbe6f909e18c1d17893d1.tar.gz
tinycc-59e18aee0e509a3ca75dbe6f909e18c1d17893d1.tar.bz2
Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable.
Tested under linux exec the "mk-it" shell script and you'll end up with a portable tinycc executable that doesn't depend on anything else.
Diffstat (limited to 'mk-attachments.sh')
-rwxr-xr-xmk-attachments.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk-attachments.sh b/mk-attachments.sh
new file mode 100755
index 0000000..18cc0b0
--- /dev/null
+++ b/mk-attachments.sh
@@ -0,0 +1,4 @@
+FNAME=tcc_attachments
+gcc -o bin2c bin2c.c
+./bin2c -m -d ${FNAME}.h -o ${FNAME}.c include/* libtcc.a libtcc1.a
+gcc -c ${FNAME}.c