From f2e34f162af326aace8ca6d9d0ca26e1159b3706 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 25 Jan 2021 15:57:10 +0000 Subject: Reviewed makefiles --- src/ap/Makefile | 10 +++++----- src/mplayer/Makefile | 10 +++++----- src/spman/Makefile | 12 ++++++------ src/ubox/Makefile | 10 +++++----- 4 files changed, 21 insertions(+), 21 deletions(-) (limited to 'src') diff --git a/src/ap/Makefile b/src/ap/Makefile index 3559f71..1065466 100644 --- a/src/ap/Makefile +++ b/src/ap/Makefile @@ -1,11 +1,11 @@ -LIB = ../../lib/ap.lib +LIB := ../../lib/ap.lib all: $(LIB) -AS = sdasz80 -AR = sdar +AS := sdasz80 +AR := sdar -SOURCES = ap.z80 -OBJS = $(patsubst %.z80,%.rel,$(SOURCES)) +SOURCES := ap.z80 +OBJS := $(patsubst %.z80,%.rel,$(SOURCES)) $(LIB): $(OBJS) $(AR) -rcD $(LIB) $(OBJS) diff --git a/src/mplayer/Makefile b/src/mplayer/Makefile index 81e099b..cf642f8 100644 --- a/src/mplayer/Makefile +++ b/src/mplayer/Makefile @@ -1,11 +1,11 @@ -LIB=../../lib/mplayer.lib +LIB := ../../lib/mplayer.lib all: $(LIB) -AS=sdasz80 -AR=sdar +AS := sdasz80 +AR := sdar -SOURCES=$(wildcard *.z80) -OBJS=$(patsubst %.z80,%.rel,$(SOURCES)) +SOURCES := $(wildcard *.z80) +OBJS := $(patsubst %.z80,%.rel,$(SOURCES)) $(LIB): $(OBJS) $(AR) -rcD $(LIB) $(OBJS) diff --git a/src/spman/Makefile b/src/spman/Makefile index b2bc5df..49b7de9 100644 --- a/src/spman/Makefile +++ b/src/spman/Makefile @@ -1,12 +1,12 @@ -LIB=../../lib/spman.lib +LIB := ../../lib/spman.lib all: $(LIB) -CC=sdcc -AR=sdar -CFLAGS=-mz80 --Werror -I../../include --fsigned-char --std-sdcc99 --opt-code-speed +CC := sdcc +AR := sdar +CFLAGS := -mz80 --Werror -I../../include --fsigned-char --std-sdcc99 --opt-code-speed -SOURCES=$(wildcard *.c) -OBJS=$(patsubst %.c,%.rel,$(SOURCES)) +SOURCES := $(wildcard *.c) +OBJS := $(patsubst %.c,%.rel,$(SOURCES)) $(LIB): $(OBJS) $(AR) -rcD $(LIB) $(OBJS) diff --git a/src/ubox/Makefile b/src/ubox/Makefile index a597090..1d8e27e 100644 --- a/src/ubox/Makefile +++ b/src/ubox/Makefile @@ -1,11 +1,11 @@ -LIB=../../lib/ubox.lib +LIB := ../../lib/ubox.lib all: $(LIB) -AS=sdasz80 -AR=sdar +AS := sdasz80 +AR := sdar -SOURCES=$(wildcard ubox_*.z80) -OBJS=$(patsubst %.z80,%.rel,$(SOURCES)) +SOURCES := $(wildcard ubox_*.z80) +OBJS := $(patsubst %.z80,%.rel,$(SOURCES)) $(LIB): $(OBJS) $(AR) -rcD $(LIB) $(OBJS) -- cgit v1.2.3