2017-01-07 21:07:10 +01:00
|
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
# PROJECT INFORMATION
|
|
|
|
|
NAME = sound
|
2017-02-24 21:57:01 +01:00
|
|
|
|
ICON = misc/icon.bmp
|
2017-01-07 21:07:10 +01:00
|
|
|
|
LIB = gcc
|
|
|
|
|
|
|
|
|
|
## DIRECTORIES
|
|
|
|
|
SRCDIR = ./src
|
|
|
|
|
INCDIR = ./include
|
|
|
|
|
OBJDIR = ./obj
|
|
|
|
|
LIBDIR = ./lib
|
|
|
|
|
SCPTDIR = ./scripts
|
|
|
|
|
|
|
|
|
|
# TOOLCHAIN
|
|
|
|
|
## Directory maker
|
|
|
|
|
MD = mkdir -p
|
|
|
|
|
## File remover
|
2017-02-24 21:08:57 +01:00
|
|
|
|
RM = rm -f -r
|
2017-01-07 21:07:10 +01:00
|
|
|
|
## Assembler
|
|
|
|
|
AS = sh3eb-elf-as
|
|
|
|
|
## C compiler
|
|
|
|
|
CC = sh3eb-elf-gcc
|
2017-05-16 11:26:25 +02:00
|
|
|
|
CFLAGS = -m3 -mb -ffreestanding -O2 -nostdlib -Wall -Wextra -Wno-main -pedantic -std=c11 -I $(INCDIR) `fxsdk --cflags`
|
2017-01-07 21:07:10 +01:00
|
|
|
|
## Linker
|
|
|
|
|
LD = sh3eb-elf-gcc
|
2017-01-07 21:39:19 +01:00
|
|
|
|
LFLAGS = `fxsdk --cflags` `fxsdk --libs`
|
2017-01-07 21:07:10 +01:00
|
|
|
|
## Object copier
|
|
|
|
|
OBJCPY = sh3eb-elf-objcopy
|
2017-02-24 21:08:57 +01:00
|
|
|
|
## Object dump
|
|
|
|
|
OBJDUMP = sh3eb-elf-objdump
|
2017-01-07 21:07:10 +01:00
|
|
|
|
## G1A Wrapper
|
|
|
|
|
WRAPR = g1a-wrapper
|
|
|
|
|
## Sender
|
|
|
|
|
SENDR = p7
|
|
|
|
|
|
|
|
|
|
# SOURCES
|
2017-02-24 21:08:57 +01:00
|
|
|
|
SRC = $(notdir $(wildcard $(SRCDIR)/*.[cs]))
|
2017-01-07 21:07:10 +01:00
|
|
|
|
|
|
|
|
|
# INCLUDES
|
2017-02-24 21:08:57 +01:00
|
|
|
|
INC = $(notdir $(wildcard $(INCDIR)/*.h))
|
2017-01-07 21:07:10 +01:00
|
|
|
|
|
2017-02-24 21:08:57 +01:00
|
|
|
|
# END OF FILE
|