Sound4Calc/Makefile.config

40 lines
767 B
Makefile
Raw Normal View History

2017-01-07 21:07:10 +01:00
#!/usr/bin/make -f
# PROJECT INFORMATION
NAME = sound
ICON = ./icon.bmp
LIB = gcc
## DIRECTORIES
SRCDIR = ./src
INCDIR = ./include
OBJDIR = ./obj
LIBDIR = ./lib
SCPTDIR = ./scripts
# TOOLCHAIN
## Directory maker
MD = mkdir -p
## File remover
RM = rm -f
## 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
LFLAGS = -nostdlib -T $(SCPTDIR)/addin.ld -L $(LIBDIR) $(addprefix -l,$(LIB)) `fxsdk --cflags` `fxsdk --libs`
## Object copier
OBJCPY = sh3eb-elf-objcopy
## G1A Wrapper
WRAPR = g1a-wrapper
## Sender
SENDR = p7
# SOURCES
SRC = crt0 Sound4Calc syscall
# INCLUDES
INC = syscall Sound4Calc addresses\
# END OF FILE