diff options
author | Bad Diode <bd@badd10de.dev> | 2021-04-13 17:43:15 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-04-13 17:43:15 +0200 |
commit | 8535023423b9b21e362424820bb8564ff48e398e (patch) | |
tree | 57ebc4698eb46b2028ae669d18240512bb721311 /Makefile | |
parent | 2809b83ee4d0fde8ebb406d4cdd39d142840254c (diff) | |
download | gba-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-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,17 +18,17 @@ WATCH_SRC := $(wildcard $(SRC_DIR)/*.c) | |||
18 | WATCH_SRC += $(wildcard $(SRC_DIR)/*.h) | 18 | WATCH_SRC += $(wildcard $(SRC_DIR)/*.h) |
19 | 19 | ||
20 | # Output library names and executables. | 20 | # Output library names and executables. |
21 | BIN_NAME := template | 21 | TARGET := first |
22 | BUILD_DIR := build | 22 | BUILD_DIR := build |
23 | ELF := $(BUILD_DIR)/$(BIN_NAME).elf | 23 | ELF := $(BUILD_DIR)/$(TARGET).elf |
24 | BIN := $(BUILD_DIR)/$(BIN_NAME).gba | 24 | BIN := $(BUILD_DIR)/$(TARGET).gba |
25 | 25 | ||
26 | # Compiler and linker configuration. | 26 | # Compiler and linker configuration. |
27 | CC := arm-none-eabi-gcc | 27 | CC := arm-none-eabi-gcc |
28 | OBJCOPY := arm-none-eabi-objcopy | 28 | OBJCOPY := arm-none-eabi-objcopy |
29 | ARCH := -mthumb -mthumb-interwork | 29 | ARCH := -mthumb -mthumb-interwork |
30 | SPECS := -specs=gba.specs | 30 | SPECS := -specs=gba.specs |
31 | CFLAGS := -g -Wall -Wextra -pedantic | 31 | CFLAGS := -g -Wall -Wextra -pedantic -fno-strict-aliasing |
32 | CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) | 32 | CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) |
33 | CFLAGS += -I$(LIBGBA_SRC) | 33 | CFLAGS += -I$(LIBGBA_SRC) |
34 | LDFLAGS := $(ARCH) $(SPECS) | 34 | LDFLAGS := $(ARCH) $(SPECS) |