summaryrefslogtreecommitdiffstats
path: root/parecord/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-01-27 13:33:40 +0000
committerJoursoir <chat@joursoir.net>2021-01-27 13:33:40 +0000
commit03693a7e4af4e5f49ffa81bbc655ed1e6816828e (patch)
treea6235d2bbf0b7983687e6a8dbd13d98b5b586105 /parecord/Makefile
parent075693faeaa6420de653ad6e81c2d708e354b314 (diff)
downloadaudio-tools-03693a7e4af4e5f49ffa81bbc655ed1e6816828e.tar.gz
audio-tools-03693a7e4af4e5f49ffa81bbc655ed1e6816828e.tar.bz2
audio-tools-03693a7e4af4e5f49ffa81bbc655ed1e6816828e.zip
add interaction main code with audio types; update Makefile for few source
Diffstat (limited to 'parecord/Makefile')
-rw-r--r--parecord/Makefile14
1 files changed, 11 insertions, 3 deletions
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