forked from ralph-irving/squeezelite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.sun
24 lines (17 loc) · 766 Bytes
/
Makefile.sun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Solaris SPARC portaudio v18 api
CC = gcc
CPP = cpp
CFLAGS ?= -fPIC -Wall -O3 -DRESAMPLE -DFFMPEG -I`pwd`/include -s
LDFLAGS ?= -lpthread -lsocket -lnsl -ldl -lrt -lm -L`pwd`/lib -lportaudio -R/opt/squeezelite/lib -s
EXECUTABLE ?= squeezelite-sun
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 daemonize.c faad.c mpg.c resample.c process.c ffmpeg.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)