From 3b2f2ea6c6fbfcb23ea9ab324c83d602d45a8820 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 9 Nov 2017 13:17:35 +0100 Subject: Update makefile, and bug fix in pio driver and usart --- sw/z80/drivers/makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sw/z80/drivers/makefile') diff --git a/sw/z80/drivers/makefile b/sw/z80/drivers/makefile index 98f453a..65ded58 100644 --- a/sw/z80/drivers/makefile +++ b/sw/z80/drivers/makefile @@ -6,15 +6,17 @@ OBJECTS := $(patsubst %.c,build/%.rel,$(SOURCES)) CC := sdcc AR := sdar -CFLAGS := -mz80 -Iinclude -I../arch -DDEBUG +CFLAGS := -mz80 -Iinclude -I../arch/include -DDEBUG -.PHONY: dirs clean +.PHONY: dirs rebuild clean $(LIB): $(OBJECTS) - $(AR) rcs $@ $(OBJECTS) + $(AR) vrcs $@ $(OBJECTS) $(OBJECTS): build/%.rel: %.c $(SOURCES) dirs $(CC) $(CFLAGS) -c $< -o $@ +rebuild: clean $(LIB) + dirs: mkdir -p build -- cgit v1.2.1