From 03693a7e4af4e5f49ffa81bbc655ed1e6816828e Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 27 Jan 2021 13:33:40 +0000 Subject: add interaction main code with audio types; update Makefile for few source --- parecord/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'parecord/Makefile') diff --git a/parecord/Makefile b/parecord/Makefile index eec4ab1..05ed2fc 100644 --- a/parecord/Makefile +++ b/parecord/Makefile @@ -1,8 +1,16 @@ CFLAGS = -Wall -g PULSEFLAGS = -lpulse -lpulse-simple +SOURCES = parecord.c audio_types.c +OBJECTS = ${SOURCES:.c=.o} +EXECUTABLE = parecord -all: - @gcc $(CFLAGS) $(PULSEFLAGS) parecord.c -o parecord +all: $(EXECUTABLE) + +$(EXECUTABLE): $(OBJECTS) + @gcc $(CFLAGS) $(PULSEFLAGS) -o $(EXECUTABLE) $(OBJECTS) + +$(OBJECTS): + @gcc -c $(CFLAGS) $(PULSEFLAGS) $(SOURCES) clean: - @rm -f parecord \ No newline at end of file + @rm -f $(OBJECTS) $(EXECUTABLE) \ No newline at end of file -- cgit v1.2.3-18-g5258