From a9250b02e16521b9457273cbe94c649265701541 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 29 Sep 2017 22:10:39 +0100 Subject: [PATCH] Library: preparations for sorting out Makefiles --- Library/libs/Makefile.6502 | 4 ++-- Library/tools/syscall_6502.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/libs/Makefile.6502 b/Library/libs/Makefile.6502 index e018acb6..6fcaf5bb 100644 --- a/Library/libs/Makefile.6502 +++ b/Library/libs/Makefile.6502 @@ -2,8 +2,8 @@ CC = cl65 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 diff --git a/Library/tools/syscall_6502.c b/Library/tools/syscall_6502.c index cbc06812..9d8e1e53 100644 --- a/Library/tools/syscall_6502.c +++ b/Library/tools/syscall_6502.c @@ -59,6 +59,8 @@ static void write_makefile(void) 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"); -- 2.34.1