From ab5184612042d19f7894794108d277174f0be3d6 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 8 Sep 2018 22:00:56 +0100 Subject: [PATCH] plato: Fix 6502 build --- Applications/plato/Makefile.6502 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Applications/plato/Makefile.6502 b/Applications/plato/Makefile.6502 index 23f35d4d..edd37212 100644 --- a/Applications/plato/Makefile.6502 +++ b/Applications/plato/Makefile.6502 @@ -17,8 +17,10 @@ FSRCS = fuzix/font.c fuzix/io.c fuzix/keyboard.c fuzix/scale.c fuzix/screen.c \ INC = io.h keyboard.h plato_key.h protocol.h screen.h terminal.h touch.h +# cc65 is weird. Tell it to cc foo/bar.c -o bar.o and it puts bar.o with the +# source code! OBJS = $(SRCS:.c=.o) -FOBJS = $(patsubst fuzix/%.c,%.o, $(FSRCS)) +FOBJS = $(FSRCS:.c=.o) all: plato @@ -28,7 +30,7 @@ plato: $(OBJS) $(FOBJS) $(OBJS): %.o: %.c $(CC) $(COPT) $(CFLAGS) -c $< -o $@ -$(FOBJS): %.o: fuzix/%.c +$(FOBJS): %.o: %.c $(CC) $(COPT) $(CFLAGS) -c $< -o $@ $(OBJS) : $(INC) -- 2.34.1