-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 659 Bytes
/
Makefile
File metadata and controls
43 lines (32 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# Makefile for G.I. Joe loader
#
# March 2020 ops
#
LIBRARY_BASE = gijoe-loader
LIBRARY_SUFFIX = lib
LIBRARY := $(LIBRARY_BASE).$(LIBRARY_SUFFIX)
AR := ar65
AS := ca65
target ?= vic20
no_zero_page ?= 0
ifeq ($(no_zero_page),1)
ASFLAGS += -DNO_ZERO_PAGE
endif
relocatable_load ?= 0
ifeq ($(relocatable_load),1)
ASFLAGS += -DRELOCATABLE_LOAD
endif
# Archiver flags and options.
ARFLAGS = r
# Additional assembler flags and options.
ASFLAGS += -t $(target) -g
# Set OBJECTS
LIB_OBJECTS := host.o drive.o init.o
.PHONY: clean
$(LIBRARY): $(LIB_OBJECTS)
$(AR) $(ARFLAGS) $@ $(LIB_OBJECTS)
clean:
$(RM) $(LIB_OBJECTS)
$(RM) $(LIBRARY)
$(RM) *~