File tree Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 1- TARGET_EXEC ?= plato .bin
1+ TARGET_EXEC ?= platoIF1 .bin
22
3- BUILD_DIR ?= ./build
3+ BUILD_DIR ?= ./build-IF1
44SRC_DIRS ?= ./src
55
66CC=zcc
@@ -10,7 +10,8 @@ OBJS := $(SRCS:%=$(BUILD_DIR)/%.o)
1010DEPS := $(OBJS:.o=.d)
1111
1212CFLAGS=+zx -D__SPECTRUM__ -D__RS232__
13- LDFLAGS=-lndos -lm -lrs232plus -create-app
13+ LDFLAGS=-lndos -lm -lrs232if1 -create-app #normal tap - Product TAP
14+ #LDFLAGS=-lndos -lm -lrs232if1 -create-app -subtype=turbo -audio #TURBO WAV only - DEV compiler
1415
1516INC_DIRS := $(shell find $(SRC_DIRS) -type d)
1617INC_FLAGS := $(addprefix -I,$(INC_DIRS))
Original file line number Diff line number Diff line change 1+ TARGET_EXEC ?= platoPLUS.bin
2+
3+ BUILD_DIR ?= ./build-PLUS
4+ SRC_DIRS ?= ./src
5+
6+ CC=zcc
7+
8+ SRCS := $(shell find $(SRC_DIRS) -name *.cpp -or -name *.c -or -name *.s)
9+ OBJS := $(SRCS:%=$(BUILD_DIR)/%.o)
10+ DEPS := $(OBJS:.o=.d)
11+
12+ CFLAGS=+zx -D__SPECTRUM__ -D__RS232__
13+ LDFLAGS=-lndos -lm -lrs232plus -create-app #normal tap - Product TAP
14+ #LDFLAGS=-lndos -lm -lrs232plus -create-app -subtype=turbo -audio #TURBO WAV only - DEV compiler
15+
16+
17+ INC_DIRS := $(shell find $(SRC_DIRS) -type d)
18+ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
19+
20+ $(BUILD_DIR)/$(TARGET_EXEC): $(OBJS)
21+ $(CC) +zx $(OBJS) -o $@ $(LDFLAGS)
22+
23+ # c source
24+ $(BUILD_DIR)/%.c.o: %.c
25+ $(MKDIR_P) $(dir $@)
26+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
27+
28+ .PHONY: clean
29+
30+ clean:
31+ $(RM) -r $(BUILD_DIR)
32+
33+ -include $(DEPS)
34+
35+ MKDIR_P ?= mkdir -p
You can’t perform that action at this time.
0 commit comments