Skip to content

Commit

Permalink
Don't define BYTESWAPPED, so we output correct little endian for 6502
Browse files Browse the repository at this point in the history
BYTESWAPPED was defined because macross targeted SunOS on SPARC.
  • Loading branch information
mist64 committed Jun 18, 2014
1 parent 41abf82 commit 827cd91
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc $(CFLAGS) -c -g -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c
cc $(CFLAGS) -c -g -DTARGET_CPU=CPU_$(PROC) emitStuff.c

encode.o: encode.c $(HEADERS)

Expand Down
2 changes: 1 addition & 1 deletion Makefile_6502
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc -c -g -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c
cc -c -g -DTARGET_CPU=CPU_$(PROC) emitStuff.c

errorStuff.o: errorStuff.c $(HEADERS)

Expand Down
2 changes: 1 addition & 1 deletion Makefile_68000
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc -c -g -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c
cc -c -g -DTARGET_CPU=CPU_$(PROC) emitStuff.c

errorStuff.o: errorStuff.c $(HEADERS)

Expand Down
2 changes: 1 addition & 1 deletion opt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc -c -O -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c
cc -c -O -DTARGET_CPU=CPU_$(PROC) emitStuff.c

encode.o: encode.c $(HEADERS)

Expand Down
2 changes: 1 addition & 1 deletion opt/Makefile_6502
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc -O -c -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c
cc -O -c -DTARGET_CPU=CPU_$(PROC) emitStuff.c

errorStuff.o: errorStuff.c $(HEADERS)

Expand Down
2 changes: 1 addition & 1 deletion opt/Makefile_68000
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ emitBranch.o: emitBranch_$(PROC).c $(HEADERS)
mv emitBranch_$(PROC).o emitBranch.o

emitStuff.o: emitStuff.c $(HEADERS)
cc -O -c -DBYTESWAPPED -DTARGET_CPU=CPU_$(PROC) emitStuff.c
cc -O -c -DTARGET_CPU=CPU_$(PROC) emitStuff.c

errorStuff.o: errorStuff.c $(HEADERS)

Expand Down

0 comments on commit 827cd91

Please sign in to comment.