13 lines
263 B
Makefile
13 lines
263 B
Makefile
|
# Use gcc / binutils toolchain
|
||
|
PREFIX =
|
||
|
CC = $(PREFIX)gcc
|
||
|
CXX = $(PREFIX)g++
|
||
|
LD = $(PREFIX)g++
|
||
|
SIZE = $(PREFIX)size
|
||
|
DUMP = $(PREFIX)objdump
|
||
|
COPY = $(PREFIX)objcopy
|
||
|
CFLAGS+= -Os
|
||
|
|
||
|
LFLAGS+= -Wl,--Map=$(@:%.elf=%.map),--gc-sections
|
||
|
LDLIBS+= -lc -lpthread -lasound
|