mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 08:39:49 +02:00
20 lines
492 B
Makefile
20 lines
492 B
Makefile
VERSION = 0.01
|
|
CC = /usr/bin/g++
|
|
CFLAGS = -std=gnu++0x -Wall -Wno-unused-function -D_REENTRANT -DVERSION=\"$(VERSION)\" -I..
|
|
LDFLAGS = -lrt -lpthread -lboost_system -lboost_program_options -lvorbis -lvorbisenc -logg
|
|
|
|
OBJ = snapServer.o pcmEncoder.o oggEncoder.o ../common/pcmChunk.o ../common/sampleFormat.o
|
|
BIN = snapserver
|
|
|
|
all: server
|
|
|
|
server: $(OBJ)
|
|
$(CC) $(CFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS)
|
|
strip $(BIN)
|
|
|
|
%.o: %.cpp
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -rf $(BIN) $(OBJ)
|
|
|