ASM = ca65
AR = ar65
LINKER = ld65
-CC_OPT = -t none -O -D__STDC__ --all-fastcall -c -I../include/ -I../include/6502/
-CC_NOOPT = -t none -D__STDC__ --all-fastcall -c -I../include/ -I../include/6502/
+CC_OPT = -t none -O -D__STDC__ -c -I../include/ -I../include/6502/
+CC_NOOPT = -t none -D__STDC__ -c -I../include/ -I../include/6502/
ASM_OPT = -o
LINKER_OPT = -o
SRC_CRT0 = crt0_6502.s crt0nostdio_6502.s
for (i = 1; i < NR_SYSCALL; i++)
fprintf(fp, "ASRCS += syscall_%s.s\n", syscall_name[i]);
fprintf(fp, "\n\nASRCALL = $(ASRCS) $(ASYS)\n");
+ fprintf(fp, "\n$(ASRCS): ../../tools/syscall_6502\n");
+ fprintf(fp, "\t(cd ..;../tools/syscall_6502)\n\n");
fprintf(fp, "\nAOBJS = $(ASRCALL:.s=.o)\n\n");
fprintf(fp, "../syslib.lib: $(AOBJS)\n");
fprintf(fp, "\t$(AR) a ../syslib.lib $(AOBJS)\n\n");