2017-04-17 16:55:21 +02:00
|
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
# PROJECT INFORMATION
|
|
|
|
|
NAME = wings
|
|
|
|
|
ICON = misc/icon.bmp
|
|
|
|
|
LIB = gcc
|
|
|
|
|
|
|
|
|
|
## DIRECTORIES
|
|
|
|
|
SRCDIR = ./src
|
|
|
|
|
INCDIR = ./include
|
|
|
|
|
OBJDIR = ./obj
|
|
|
|
|
LIBDIR = ./lib
|
|
|
|
|
SCPTDIR = ./scripts
|
|
|
|
|
IMGDIR = ./img
|
|
|
|
|
FONTDIR = ./font
|
|
|
|
|
|
|
|
|
|
# TOOLCHAIN
|
|
|
|
|
## Directory maker
|
|
|
|
|
MD = mkdir -p
|
|
|
|
|
## File remover
|
|
|
|
|
RM = rm -f -r
|
|
|
|
|
## Assembler
|
|
|
|
|
AS = sh3eb-elf-as
|
|
|
|
|
## C compiler
|
|
|
|
|
CC = sh3eb-elf-gcc
|
|
|
|
|
CFLAGS = -m3 -mb -Os -nostdlib -Wall -Wextra -Wno-main -pedantic -std=c11 -I $(INCDIR) `fxsdk --cflags`
|
|
|
|
|
## Linker
|
|
|
|
|
LD = sh3eb-elf-gcc
|
2017-07-30 15:20:33 +02:00
|
|
|
|
LFLAGS = `fxsdk --cflags --libs`
|
2017-04-17 16:55:21 +02:00
|
|
|
|
## Object copier
|
|
|
|
|
OBJCPY = sh3eb-elf-objcopy
|
|
|
|
|
## Object dump
|
|
|
|
|
OBJDUMP = sh3eb-elf-objdump
|
|
|
|
|
## G1A Wrapper
|
|
|
|
|
WRAPR = g1a-wrapper
|
|
|
|
|
## Sender
|
|
|
|
|
SENDR = p7
|
|
|
|
|
|
|
|
|
|
# SOURCES
|
|
|
|
|
SRC = $(notdir $(wildcard $(SRCDIR)/*.[cs]))
|
|
|
|
|
|
|
|
|
|
# INCLUDES
|
|
|
|
|
INC = $(notdir $(wildcard $(INCDIR)/*.h))
|
|
|
|
|
|
|
|
|
|
#IMAGE
|
|
|
|
|
IMG = $(notdir $(wildcard $(IMGDIR)/*.bmp))
|
|
|
|
|
|
|
|
|
|
# FONTS
|
|
|
|
|
FONT = $(notdir $(wildcard $(FONTDIR)/*.bmp))
|
|
|
|
|
|
|
|
|
|
# END OF FILE
|