2018-05-20 21:01:18 +00:00
|
|
|
OBJS = armc-start.o armc-cstartup.o armc-cstubs.o armc-cppstubs.o \
|
2018-06-03 08:11:58 +00:00
|
|
|
exception.o main.o rpi-aux.o rpi-i2c.o rpi-mailbox-interface.o rpi-mailbox.o \
|
2019-09-06 11:13:58 +00:00
|
|
|
rpi-gpio.o rpi-interrupts.o dmRotary.o cache.o ff.o interrupt.o Keyboard.o performance.o \
|
2018-09-23 07:22:01 +00:00
|
|
|
Drive.o Pi1541.o DiskImage.o iec_bus.o iec_commands.o m6502.o m6522.o \
|
|
|
|
gcr.o prot.o lz.o emmc.o diskio.o options.o Screen.o SSD1306.o ScreenLCD.o \
|
2020-12-10 22:53:56 +00:00
|
|
|
Timer.o FileBrowser.o DiskCaddy.o ROMs.o InputMappings.o xga_font_data.o m8520.o wd177x.o Pi1581.o SpinLock.o \
|
2020-12-29 12:28:23 +00:00
|
|
|
net.o net-tftp.o net-arp.o net-ethernet.o net-icmp.o net-ipv4.o net-udp.o net-dhcp.o net-utils.o
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-05-22 17:04:38 +00:00
|
|
|
SRCDIR = src
|
|
|
|
OBJS := $(addprefix $(SRCDIR)/, $(OBJS))
|
|
|
|
|
|
|
|
LIBS = uspi/libuspi.a
|
2018-05-20 21:01:18 +00:00
|
|
|
INCLUDE = -Iuspi/include/
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-05-20 21:01:18 +00:00
|
|
|
TARGET ?= kernel
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-05-20 21:01:18 +00:00
|
|
|
.PHONY: all $(LIBS)
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-05-20 21:01:18 +00:00
|
|
|
all: $(TARGET)
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-05-20 21:01:18 +00:00
|
|
|
$(TARGET): $(OBJS) $(LIBS)
|
|
|
|
@echo " LINK $@"
|
2020-12-10 22:53:16 +00:00
|
|
|
$(Q)$(CXX) $(CFLAGS) -o $(TARGET).elf -Xlinker -Map=$(TARGET).map -T linker.ld -nostartfiles $(OBJS) $(LIBS)
|
2018-05-20 21:01:18 +00:00
|
|
|
$(Q)$(PREFIX)objdump -d $(TARGET).elf | $(PREFIX)c++filt > $(TARGET).lst
|
|
|
|
$(Q)$(PREFIX)objcopy $(TARGET).elf -O binary $(TARGET).img
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-05-22 17:04:38 +00:00
|
|
|
uspi/libuspi.a:
|
|
|
|
$(MAKE) -C uspi
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-05-22 17:04:38 +00:00
|
|
|
clean:
|
2021-01-12 15:56:02 +00:00
|
|
|
$(Q)$(RM) $(OBJS) $(DEPENDS) $(TARGET).elf $(TARGET).map $(TARGET).lst $(TARGET).img
|
2018-05-22 17:04:38 +00:00
|
|
|
$(MAKE) -C uspi clean
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2020-12-10 22:53:16 +00:00
|
|
|
include Makefile.rules
|