summaryrefslogtreecommitdiffstats
path: root/parecord/Makefile
blob: 05ed2fc138d9530c324f392277a039178556b37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS = -Wall -g
PULSEFLAGS = -lpulse -lpulse-simple
SOURCES = parecord.c audio_types.c
OBJECTS = ${SOURCES:.c=.o}
EXECUTABLE = parecord

all: $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	@gcc $(CFLAGS) $(PULSEFLAGS) -o $(EXECUTABLE) $(OBJECTS)

$(OBJECTS):
	@gcc -c $(CFLAGS) $(PULSEFLAGS) $(SOURCES)

clean:
	@rm -f $(OBJECTS) $(EXECUTABLE)