diff options
author | Oxore <oxore@protonmail.com> | 2023-05-04 00:16:02 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-04 00:16:02 +0300 |
commit | 79ff96cb2ffb140863c48803d21d10349881f907 (patch) | |
tree | b73a97e084eac2551115272272292a657172c714 /Makefile | |
parent | f2016e84699c4f8a83e759fecac9e5dacd490a40 (diff) |
Add Readme, move hello world into separate dir
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index c66436d..0000000 --- a/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -WARNFLAGS = -Wall -Wextra -pedantic -Wshadow -Wlogical-op -OPTFLAGS = -Os -ARCHFLAGS = -m68000 -_CFLAGS = $(CFLAGS) $(WARNFLAGS) $(ARCHFLAGS) $(OPTFLAGS) -g3 -ffunction-sections -fdata-sections -LDSCRIPTS = m68k.ld _sram.ld _rom.ld -_LDFLAGS = $(LDFLAGS) $(OPTFLAGS) $(addprefix -T,$(LDSCRIPTS)) --gc-sections - -OBJECTS=startup.o main.o - -.PHONY: all -all: hellorom.bin - -%.bin: %.elf Makefile - m68k-none-elf-objcopy -O binary $< $@ - -hellorom.elf: $(OBJECTS) $(LDSCRIPTS) Makefile - m68k-none-elf-ld -o $@ $(OBJECTS) $(_LDFLAGS) - -OBJECTS: Makefile - -%.o: %.c Makefile - m68k-none-elf-gcc -m68000 -c $< -o $@ $(_CFLAGS) - -clean: - rm -rfv hellorom.elf hellorom.bin $(OBJECTS) |