blob: a89b79c4fb74787ca7833d8c55c9c6d8ee8a69e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CROSS_COMPILE ?=
KDIR ?=
KINC := -I$(KDIR)/usr/include
CC := $(CROSS_COMPILE)gcc
CFLAGS += -O2 -Wall -fpic -I. $(KINC)
OBJS = media.o main.o options.o subdev.o
all: media-ctl
media-ctl: $(OBJS)
$(CC) $(CFLAGS) -o media-ctl $(OBJS)
$(CROSS_COMPILE)strip media-ctl
clean:
rm -f $(OBJS) media-ctl
.PHONY: clean all
|