--- MiNT/src/purec/makefile 2018/04/24 17:56:54 1.1 +++ MiNT/src/purec/makefile 2018/04/24 17:57:44 1.1.1.2 @@ -54,7 +54,7 @@ YTABH = asm_tab.h # here are defs for the cross compiler -# MiNT must be compiled with 16 bit integers +# MiNT must be compiled with 16 bit integers (pcc alway uses 16bit ints) @@ -62,9 +62,9 @@ CC = cc -g AS = cc -Wa,-3 -Wa,-8 -Wa,-S -c -MODEL = -W0,-2 +MODEL = -MODEL030 = -Wc +MODEL030 = -W0,-2 LIBS = -lpctoslib.lib @@ -182,7 +182,7 @@ bios.o: inline.h memprot.o: memprot.c mint.h proc.h file.h - $(CC) $(CFLAGS) -m68020 -c memprot.c + $(CC) $(CFLAGS) -W0,-2 -c memprot.c @@ -330,7 +330,7 @@ magic.i: $(GENMAGICPRG) .spp.o: - $(ATRANS) $(DEFS) -gas -o $*.s $< + $(ATRANS) $(DEFS) -purec -o $*.s $< $(AS) $(ASFLAGS) -o $@ -c $*.s @@ -338,7 +338,7 @@ magic.i: $(GENMAGICPRG) .spp.o0: - $(ATRANS) $(DEFS030) -gas -o $*.s $< + $(ATRANS) $(DEFS030) -purec -o $*.s $< $(AS) $(ASFLAGS0) -o $@ -c $*.s