summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l2util/Makefile
blob: f3f413071f6da1b7c27fa1fe202d609d77a734cc (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../include -I..

includes = libv4l2util.h

objects  = frequencies.o v4l2_driver.o

sharedlib = libv4l2util.so
staticlib = libv4l2util.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