aes67-daemon/wavplay_am824/Makefile.Linux
James Cowdery 23c6888b6c
First commit
This player is not fully tested due to occasional drops on the output caused CRC errors when used with encoded audio such as Dolby E. However these drops have been observed with aplay when used in memory mapped mode so it is not believed to be an issue with this player. However, final testing is still outstanding
2020-07-30 12:28:11 -07:00

36 lines
509 B
Makefile

CFLAGS += -g
CC = g++
ARCH = Linux
SRC = wavplay_am824.cpp
HEADERS = am824_framer.h
EXE = bin/$(ARCH)/wavplay_am824
OBJ = bin/$(ARCH)/wavplay_am824.o
LIBS = -lportaudio -lrt -lm -lsndfile -lasound -lpthread
BIN = bin/$(ARCH)
LD = g++
LDFLAGS = -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu -pthread -g
all: $(BIN) $(EXE)
$(BIN) :
mkdir -p $(BIN)
$(OBJ) : $(SRC) $(HEADERS)
$(CC) -c $< -o $@ $(CFLAGS)
$(EXE): $(OBJ) $(PALIB)
$(LD) $(LDFLAGS) $(OBJ) $(LIBS) -o $@
clean:
rm -f bin/$(ARCH)/*