summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-04-13 17:43:15 +0200
committerBad Diode <bd@badd10de.dev>2021-04-13 17:43:15 +0200
commit8535023423b9b21e362424820bb8564ff48e398e (patch)
tree57ebc4698eb46b2028ae669d18240512bb721311 /Makefile
parent2809b83ee4d0fde8ebb406d4cdd39d142840254c (diff)
downloadgba-experiments-8535023423b9b21e362424820bb8564ff48e398e.tar.gz
gba-experiments-8535023423b9b21e362424820bb8564ff48e398e.zip
Initial program example
Blit 3 pixels to the screen. source: https://www.coranac.com/tonc/text/first.htm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 46564cc..fbd5fe3 100644
--- a/Makefile
+++ b/Makefile
@@ -18,17 +18,17 @@ WATCH_SRC := $(wildcard $(SRC_DIR)/*.c)
18WATCH_SRC += $(wildcard $(SRC_DIR)/*.h) 18WATCH_SRC += $(wildcard $(SRC_DIR)/*.h)
19 19
20# Output library names and executables. 20# Output library names and executables.
21BIN_NAME := template 21TARGET := first
22BUILD_DIR := build 22BUILD_DIR := build
23ELF := $(BUILD_DIR)/$(BIN_NAME).elf 23ELF := $(BUILD_DIR)/$(TARGET).elf
24BIN := $(BUILD_DIR)/$(BIN_NAME).gba 24BIN := $(BUILD_DIR)/$(TARGET).gba
25 25
26# Compiler and linker configuration. 26# Compiler and linker configuration.
27CC := arm-none-eabi-gcc 27CC := arm-none-eabi-gcc
28OBJCOPY := arm-none-eabi-objcopy 28OBJCOPY := arm-none-eabi-objcopy
29ARCH := -mthumb -mthumb-interwork 29ARCH := -mthumb -mthumb-interwork
30SPECS := -specs=gba.specs 30SPECS := -specs=gba.specs
31CFLAGS := -g -Wall -Wextra -pedantic 31CFLAGS := -g -Wall -Wextra -pedantic -fno-strict-aliasing
32CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) 32CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH)
33CFLAGS += -I$(LIBGBA_SRC) 33CFLAGS += -I$(LIBGBA_SRC)
34LDFLAGS := $(ARCH) $(SPECS) 34LDFLAGS := $(ARCH) $(SPECS)