Permalink
Browse files

fixed linux build issue and minor perl warnings

  • Loading branch information...
datajerk committed Aug 13, 2016
1 parent 6f26ec9 commit 681dade0f69eed90ebc0de8b4e8a12e238367f26
Showing with 8 additions and 8 deletions.
  1. +2 −2 Makefile
  2. BIN bin/c2t
  3. BIN bin/c2t-96h
  4. BIN bin/c2t-96h.exe
  5. BIN bin/c2t.exe
  6. +6 −6 makeheader
@@ -12,10 +12,10 @@ clean: testclean
cd asm; make clean

bin/c2t: c2t.c c2t.h
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t c2t.c
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t c2t.c -lm

bin/c2t-96h: c2t-96h.c c2t.h
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h c2t-96h.c
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h c2t-96h.c -lm

bin/c2t.exe: c2t.c c2t.h
$(WIN32GCC) -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t.exe c2t.c
BIN -72 Bytes (100%) bin/c2t
Binary file not shown.
BIN +4 KB (100%) bin/c2t-96h
Binary file not shown.
BIN +0 Bytes (100%) bin/c2t-96h.exe
Binary file not shown.
BIN +0 Bytes (100%) bin/c2t.exe
Binary file not shown.
@@ -57,9 +57,9 @@ unsigned char dosboot1[] = {
EOF

cat mon/dos33.boot1.mon | \
perl -pi -e 's/ /,0x/g' | \
perl -pi -e 's/$/,/' | \
perl -pi -e 's/^....../\t/' >>c2t.h.2
perl -p -e 's/ /,0x/g' | \
perl -p -e 's/$/,/' | \
perl -p -e 's/^....../\t/' >>c2t.h.2

cat <<EOF >>c2t.h.2
};
@@ -69,9 +69,9 @@ unsigned char dosboot2[] = {
EOF

cat mon/dos33.boot2.mon | \
perl -pi -e 's/ /,0x/g' | \
perl -pi -e 's/$/,/' | \
perl -pi -e 's/^....../\t/' >>c2t.h.2
perl -p -e 's/ /,0x/g' | \
perl -p -e 's/$/,/' | \
perl -p -e 's/^....../\t/' >>c2t.h.2

echo "};" >>c2t.h.2

0 comments on commit 681dade

Please sign in to comment.