-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (25 loc) · 898 Bytes
/
Makefile
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
PROGS = v4l2_wayland
all: $(PROGS)
LFLAGS = $(shell pkg-config --libs wayland-client) \
$(shell pkg-config --libs wayland-cursor) \
$(shell pkg-config --libs cairo) \
$(shell pkg-config --libs pangocairo) \
$(shell pkg-config --libs gtk+-3.0) \
$(shell pkg-config --libs fftw3) \
-lccv -lm -lpng -ljpeg -lswscale -lavutil -lswresample \
-lavformat -lavcodec -lpthread -ljack
LIBS =
CFLAGS = -Wall -g $(shell pkg-config --cflags pangocairo) \
$(shell pkg-config --cflags gtk+-3.0) \
$(shell pkg-config --cflags fftw3)
SRCS = v4l2_wayland.c muxing.c sound_shape.c midi.c kmeter.c
OBJS = $(SRCS:.c=.o)
HDRS = muxing.h sound_shape.h midi.h v4l2_wayland.h kmeter.h
.SUFFIXES:
.SUFFIXES: .c
%.o : %.c ${HDRS}
$(CC) ${CFLAGS} -c $< -o $@
v4l2_wayland: v4l2_wayland.c ${OBJS}
${CC} -o $@ ${OBJS} ${LFLAGS}
clean:
rm -f ${OBJS} $(PROGS) $(PROGS:%=%.o)