forked from ralph-irving/squeezelite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.rpi
23 lines (16 loc) · 901 Bytes
/
Makefile.rpi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Cross compile support - create a Makefile which defines these three variables and then includes this Makefile...
OPTS = -DRESAMPLE -DFFMPEG -DVISEXPORT -DDSD -DGPIO -DIR -I./include
CFLAGS ?= -Wall -fPIC -s -O3 -march=armv6 -mfloat-abi=hard -mfpu=vfp $(OPTS)
LDFLAGS ?= -s -lasound -lpthread -lm -ldl -lrt -L./lib -lwiringPi -Wl,-rpath,/usr/local/lib
EXECUTABLE ?= squeezelite-rpi
SOURCES = main.c slimproto.c utils.c buffer.c stream.c decode.c flac.c pcm.c mad.c vorbis.c output_alsa.c output.c output_pa.c output_pack.c output_stdout.c output_vis.c dop.c dsd.c dsd2pcm/dsd2pcm.c faad.c mpg.c resample.c process.c ffmpeg.c ir.c gpio.c
DEPS = squeezelite.h slimproto.h dsd2pcm/dsd2pcm.h
OBJECTS = $(SOURCES:.c=.o)
all: $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) -o $@
$(OBJECTS): $(DEPS)
.c.o:
$(CC) $(CFLAGS) $< -c -o $@
clean:
rm -f $(OBJECTS) $(EXECUTABLE)