blob: 7180226fb43b14a591fc58d86a48846562e80013 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
BIN=pa-sink-ctl
SRCS=interface.c sink.c sink_input.c pa-sink-ctl.c
OBJS=$(SRCS:%.c=%.o)
HEADS=$(SRCS:%.c=%.h)
CC=gcc
CFLAGS=-std=c99 -Wall -Werror -pedantic
LDFLAGS=-lncurses -lpulse -lform
DEPENDFILE=.depend
.PHONY: all clean
.SILENT: all
all: $(DEPENDFILE)
$(MAKE) --no-print-directory $(BIN)
$(BIN): $(OBJS)
$(CC) $(LDFLAGS) $(CFLAGS) $+ -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $<
$(DEPENDFILE): $(SRCS) $(HEADS)
$(CC) -MM $(SRCS) > $(DEPENDFILE)
-include $(DEPENDFILE)
clean:
rm -f $(OBJS) $(DEPENDFILE)
distclean: clean
rm -f $(BIN)
|