blob: 690e72f16dfb53543a18acacdc1e9ccf48808c24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
LIB := ../../lib/spman.lib
all: $(LIB)
include ../../config.env
CC := sdcc
AR := sdar
CFLAGS := -mz80 --Werror -I../../include --fsigned-char --std-sdcc99 --opt-code-speed $(EXTRA_CFLAGS)
SOURCES := $(wildcard *.c)
OBJS := $(patsubst %.c,%.rel,$(SOURCES))
$(LIB): $(OBJS)
$(AR) -rcD $(LIB) $(OBJS)
%.rel: %.c
$(CC) $(CFLAGS) $(LDFLAGS) -c $<
.PHONY: clean
clean:
rm -f $(OBJS) $(LIB)
|