--- Makefile.orig 2017-09-27 10:37:49.000000000 -0500 +++ Makefile 2021-09-30 13:53:21.000000000 -0500 @@ -1,6 +1,8 @@ WIN32GCC = /usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc +CFLAGS ?= -O3 + all: bin/c2t bin/c2t-96h windows: bin/c2t.exe bin/c2t-96h.exe @@ -12,16 +14,16 @@ cd asm; make clean bin/c2t: c2t.c c2t.h - gcc -Wall -Wno-strict-aliasing -Wno-misleading-indentation -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t c2t.c -lm + $(CC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. $(CFLAGS) $(LDFLAGS) -o bin/c2t c2t.c -lm bin/c2t-96h: c2t-96h.c c2t.h - gcc -Wall -Wno-strict-aliasing -Wno-misleading-indentation -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h c2t-96h.c -lm + $(CC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. $(CFLAGS) $(LDFLAGS) -o bin/c2t-96h c2t-96h.c -lm bin/c2t.exe: c2t.c c2t.h - $(WIN32GCC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t.exe c2t.c + $(WIN32GCC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. $(CFLAGS) $(LDFLAGS) -o bin/c2t.exe c2t.c bin/c2t-96h.exe: c2t-96h.c c2t.h - $(WIN32GCC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h.exe c2t-96h.c + $(WIN32GCC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. $(CFLAGS) $(LDFLAGS) -o bin/c2t-96h.exe c2t-96h.c c2t.h: mon/dos33.boot1.mon mon/dos33.boot2.mon asm/autoload.s asm/diskload2.s asm/diskload3.s asm/diskload8000.s asm/diskload9600.s asm/fastload8000.s asm/fastload9600.s asm/fastloadcd.s asm/inflate.s ./makeheader