From ebc9d6359bb270ceb65e18ade85a3de435584701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Czeka=C5=84ski?= Date: Tue, 22 May 2018 19:04:38 +0200 Subject: [PATCH] moved sources to src/ dir, clean with explicit defined files --- Makefile | 16 +++++++++------- Makefile.rules | 7 ++----- font | Bin 4096 -> 0 bytes CBMFont.h => src/CBMFont.h | 0 DiskCaddy.cpp => src/DiskCaddy.cpp | 0 DiskCaddy.h => src/DiskCaddy.h | 0 DiskImage.cpp => src/DiskImage.cpp | 0 DiskImage.h => src/DiskImage.h | 0 Drive.cpp => src/Drive.cpp | 0 Drive.h => src/Drive.h | 0 FileBrowser.cpp => src/FileBrowser.cpp | 0 FileBrowser.h => src/FileBrowser.h | 0 IOPort.h => src/IOPort.h | 0 InputMappings.cpp => src/InputMappings.cpp | 0 InputMappings.h => src/InputMappings.h | 0 Keyboard.cpp => src/Keyboard.cpp | 0 Keyboard.h => src/Keyboard.h | 0 Petscii.h => src/Petscii.h | 0 Pi1541.cpp => src/Pi1541.cpp | 0 Pi1541.h => src/Pi1541.h | 0 ROMs.cpp => src/ROMs.cpp | 0 ROMs.h => src/ROMs.h | 0 Screen.cpp => src/Screen.cpp | 0 Screen.h => src/Screen.h | 0 Singleton.h => src/Singleton.h | 0 Timer.c => src/Timer.c | 0 Timer.h => src/Timer.h | 0 armc-cppstubs.cpp => src/armc-cppstubs.cpp | 0 armc-cstartup.c => src/armc-cstartup.c | 0 armc-cstubs.c => src/armc-cstubs.c | 0 armc-start.S => src/armc-start.S | 0 bcm2835int.h => src/bcm2835int.h | 0 cache.c => src/cache.c | 0 cache.h => src/cache.h | 0 debug.h => src/debug.h | 0 defs.h => src/defs.h | 0 diskio.cpp => src/diskio.cpp | 0 diskio.h => src/diskio.h | 0 emmc.cpp => src/emmc.cpp | 0 emmc.h => src/emmc.h | 0 exception.c => src/exception.c | 0 ff.cpp => src/ff.cpp | 0 ff.h => src/ff.h | 0 ffconf.h => src/ffconf.h | 0 gcr.cpp => src/gcr.cpp | 0 gcr.h => src/gcr.h | 0 iec_bus.cpp => src/iec_bus.cpp | 0 iec_bus.h => src/iec_bus.h | 0 iec_commands.cpp => src/iec_commands.cpp | 0 iec_commands.h => src/iec_commands.h | 0 integer.h => src/integer.h | 0 interrupt.c => src/interrupt.c | 0 interrupt.h => src/interrupt.h | 0 kernel.h => src/kernel.h | 0 logo.h => src/logo.h | 0 lz.c => src/lz.c | 0 lz.h => src/lz.h | 0 m6502.cpp => src/m6502.cpp | 0 m6502.h => src/m6502.h | 0 m6522.cpp => src/m6522.cpp | 0 m6522.h => src/m6522.h | 0 main.cpp => src/main.cpp | 0 options.cpp => src/options.cpp | 0 options.h => src/options.h | 0 prot.cpp => src/prot.cpp | 0 prot.h => src/prot.h | 0 rpi-aux.c => src/rpi-aux.c | 0 rpi-aux.h => src/rpi-aux.h | 0 rpi-base.h => src/rpi-base.h | 0 rpi-gpio.c => src/rpi-gpio.c | 0 rpi-gpio.h => src/rpi-gpio.h | 0 rpi-interrupts.c => src/rpi-interrupts.c | 0 rpi-interrupts.h => src/rpi-interrupts.h | 0 .../rpi-mailbox-interface.c | 0 .../rpi-mailbox-interface.h | 0 rpi-mailbox.c => src/rpi-mailbox.c | 0 rpi-mailbox.h => src/rpi-mailbox.h | 0 rpiHardware.h => src/rpiHardware.h | 0 sample.h => src/sample.h | 0 startup.h => src/startup.h | 0 stb_image.h => src/stb_image.h | 0 stb_image_config.h => src/stb_image_config.h | 0 types.h => src/types.h | 0 xga_font_data.c => src/xga_font_data.c | 0 xga_font_data.h => src/xga_font_data.h | 0 uspi/{lib => }/Makefile | 17 ++++++++++++----- 86 files changed, 23 insertions(+), 17 deletions(-) delete mode 100644 font rename CBMFont.h => src/CBMFont.h (100%) rename DiskCaddy.cpp => src/DiskCaddy.cpp (100%) rename DiskCaddy.h => src/DiskCaddy.h (100%) rename DiskImage.cpp => src/DiskImage.cpp (100%) rename DiskImage.h => src/DiskImage.h (100%) rename Drive.cpp => src/Drive.cpp (100%) rename Drive.h => src/Drive.h (100%) rename FileBrowser.cpp => src/FileBrowser.cpp (100%) rename FileBrowser.h => src/FileBrowser.h (100%) rename IOPort.h => src/IOPort.h (100%) rename InputMappings.cpp => src/InputMappings.cpp (100%) rename InputMappings.h => src/InputMappings.h (100%) rename Keyboard.cpp => src/Keyboard.cpp (100%) rename Keyboard.h => src/Keyboard.h (100%) rename Petscii.h => src/Petscii.h (100%) rename Pi1541.cpp => src/Pi1541.cpp (100%) rename Pi1541.h => src/Pi1541.h (100%) rename ROMs.cpp => src/ROMs.cpp (100%) rename ROMs.h => src/ROMs.h (100%) rename Screen.cpp => src/Screen.cpp (100%) rename Screen.h => src/Screen.h (100%) rename Singleton.h => src/Singleton.h (100%) rename Timer.c => src/Timer.c (100%) rename Timer.h => src/Timer.h (100%) rename armc-cppstubs.cpp => src/armc-cppstubs.cpp (100%) rename armc-cstartup.c => src/armc-cstartup.c (100%) rename armc-cstubs.c => src/armc-cstubs.c (100%) rename armc-start.S => src/armc-start.S (100%) rename bcm2835int.h => src/bcm2835int.h (100%) rename cache.c => src/cache.c (100%) rename cache.h => src/cache.h (100%) rename debug.h => src/debug.h (100%) rename defs.h => src/defs.h (100%) rename diskio.cpp => src/diskio.cpp (100%) rename diskio.h => src/diskio.h (100%) rename emmc.cpp => src/emmc.cpp (100%) rename emmc.h => src/emmc.h (100%) rename exception.c => src/exception.c (100%) rename ff.cpp => src/ff.cpp (100%) rename ff.h => src/ff.h (100%) rename ffconf.h => src/ffconf.h (100%) rename gcr.cpp => src/gcr.cpp (100%) rename gcr.h => src/gcr.h (100%) rename iec_bus.cpp => src/iec_bus.cpp (100%) rename iec_bus.h => src/iec_bus.h (100%) rename iec_commands.cpp => src/iec_commands.cpp (100%) rename iec_commands.h => src/iec_commands.h (100%) rename integer.h => src/integer.h (100%) rename interrupt.c => src/interrupt.c (100%) rename interrupt.h => src/interrupt.h (100%) rename kernel.h => src/kernel.h (100%) rename logo.h => src/logo.h (100%) rename lz.c => src/lz.c (100%) rename lz.h => src/lz.h (100%) rename m6502.cpp => src/m6502.cpp (100%) rename m6502.h => src/m6502.h (100%) rename m6522.cpp => src/m6522.cpp (100%) rename m6522.h => src/m6522.h (100%) rename main.cpp => src/main.cpp (100%) rename options.cpp => src/options.cpp (100%) rename options.h => src/options.h (100%) rename prot.cpp => src/prot.cpp (100%) rename prot.h => src/prot.h (100%) rename rpi-aux.c => src/rpi-aux.c (100%) rename rpi-aux.h => src/rpi-aux.h (100%) rename rpi-base.h => src/rpi-base.h (100%) rename rpi-gpio.c => src/rpi-gpio.c (100%) rename rpi-gpio.h => src/rpi-gpio.h (100%) rename rpi-interrupts.c => src/rpi-interrupts.c (100%) rename rpi-interrupts.h => src/rpi-interrupts.h (100%) rename rpi-mailbox-interface.c => src/rpi-mailbox-interface.c (100%) rename rpi-mailbox-interface.h => src/rpi-mailbox-interface.h (100%) rename rpi-mailbox.c => src/rpi-mailbox.c (100%) rename rpi-mailbox.h => src/rpi-mailbox.h (100%) rename rpiHardware.h => src/rpiHardware.h (100%) rename sample.h => src/sample.h (100%) rename startup.h => src/startup.h (100%) rename stb_image.h => src/stb_image.h (100%) rename stb_image_config.h => src/stb_image_config.h (100%) rename types.h => src/types.h (100%) rename xga_font_data.c => src/xga_font_data.c (100%) rename xga_font_data.h => src/xga_font_data.h (100%) rename uspi/{lib => }/Makefile (84%) diff --git a/Makefile b/Makefile index 942c831..152051a 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,10 @@ OBJS = armc-start.o armc-cstartup.o armc-cstubs.o armc-cppstubs.o \ Drive.o gcr.o prot.o lz.o emmc.o diskio.o options.o Screen.o \ Timer.o FileBrowser.o DiskCaddy.o ROMs.o InputMappings.o xga_font_data.o -LIBS = uspi/lib/libuspi.a +SRCDIR = src +OBJS := $(addprefix $(SRCDIR)/, $(OBJS)) + +LIBS = uspi/libuspi.a INCLUDE = -Iuspi/include/ TARGET ?= kernel @@ -20,12 +23,11 @@ $(TARGET): $(OBJS) $(LIBS) $(Q)$(PREFIX)objdump -d $(TARGET).elf | $(PREFIX)c++filt > $(TARGET).lst $(Q)$(PREFIX)objcopy $(TARGET).elf -O binary $(TARGET).img -uspi/lib/libuspi.a: - $(MAKE) -C uspi/lib +uspi/libuspi.a: + $(MAKE) -C uspi -clean: clean_libs - -clean_libs: - $(MAKE) -C uspi/lib clean +clean: + $(Q)$(RM) $(OBJS) $(TARGET).elf $(TARGET).map $(TARGET).lst $(TARGET).img + $(MAKE) -C uspi clean include Makefile.rules \ No newline at end of file diff --git a/Makefile.rules b/Makefile.rules index 1527e09..241686e 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1,4 +1,4 @@ -# To show build commands: make +# To show build commands: make V=1 ifneq ($(V),1) Q := @ endif @@ -45,7 +45,4 @@ CFLAGS += -fno-delete-null-pointer-checks -fdata-sections -ffunction-sections - %.o: %.cpp @echo " CPP $@" - $(Q)$(CPP) $(CPPFLAGS) $(INCLUDE) -c -o $@ $< - -clean: - $(RM) *.o *.a *.elf *.lst *.img *.map \ No newline at end of file + $(Q)$(CPP) $(CPPFLAGS) $(INCLUDE) -c -o $@ $< \ No newline at end of file diff --git a/font b/font deleted file mode 100644 index 191ac46020700b54be928ced7772b053d794fa72..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmeHJJ&PMj5N#tEIS`V$XaZsV1;N6ippmls9l{HJftO{Y^#;p)u)*5VvaEw^Sfk%@ znM4O-L7=}NqhO-L5(=yV;lB5(XKZsA?95>Nq?w+o>aKcS)7>@NoSltdXccRd7-Q6x zG5jlS#^bTk>hcuY(@T|%$Cu-AQnh2+&kXFa$~YYpT0L(8rvrsC=NPNt1xVD%tMui` z$%!%-NrHhGPiTpU4nfv!kvR_jbp(4Neq+Xw{-KE#e7#Ix!JpBfZfGY3l|-$$k9fLI zXw~|of7O3+P@242T4AE%Qa$UZY5$q3!7wn=kEo3C_!$)s!Q(1cFAV&eKfy~6{xTzl zFwzg&em`z0TrE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