From 4e5e5f8f6a59be55b0eba83c8128011ef24ca8ff Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 17 Jun 2012 10:15:22 +0000 Subject: Tentatives pour capture que le micro et pas la sortie de mixer (mais j'ai pas tout compris encore...) Tentative compilation -O2. Ca marche mais ça change un peu le comportement des buffers... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-violon-leds/trunk@22 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- src/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 6b93d4c..f8b0aaf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +1,18 @@ CC=gcc -CFLAGS=-W -Wall -Werror -Wno-error=unused-parameter -g -LDFLAGS=-Werror -g +# For debug +#CFLAGS=-W -Wall -Werror -Wno-error=unused-parameter -g +#LDFLAGS=-Werror -g + +# For release +CFLAGS=-W -Wall -Werror -Wno-error=unused-parameter -O2 +LDFLAGS=-Werror EXEC=music2light CFLAGS+=$(shell pkg-config --cflags gtk+-2.0 gthread-2.0 libpulse) -# Maths for FFT related code, libftdi is the driver for USB2DMX module, rt is for ftdi +# Maths for FFT related code, libftdi is the driver for USB2DMX module LDFLAGS+=-lm -lftdi -# -lrt +# -lrt for nanosleep but create many tiny buffers from PulseAudio +#LDFLAGS+=-lm -lftdi -lrt LDFLAGS+=$(shell pkg-config --libs gtk+-2.0 gthread-2.0 libpulse) SRC= $(wildcard *.c) -- cgit v1.2.3