summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/Makefile
blob: a69615bdce7fd56e8144bb9f537ff158d769e19f (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
# Makefile for linuxtv.org v4l2-apps/lib

CPPFLAGS += -I../../linux/include -I..

includes = v4l2.h

objects  = frequencies.o

sharedlib = libv4l2.so
staticlib = libv4l2.a

ifeq ($(prefix),)
prefix = /usr
endif

.PHONY: all clean install

all: $(sharedlib) $(staticlib)

$(sharedlib): $(objects)

$(staticlib): $(objects)

clean::
	rm -f $(objects) $(sharedlib) $(staticlib)

install:
	mkdir -p $(prefix)/include
	cp $(includes) $(prefix)/include
	mkdir -p $(prefix)/lib
	cp $(sharedlib) $(staticlib) $(prefix)/lib

include ../Make.rules