summaryrefslogtreecommitdiff
path: root/Makefile
blob: b1e6bfc5d2e04cfa3ebfef234a33871b83609158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SRCARCH ?= arm
CROSS_COMPILE ?= arm-none-linux-gnueabi-
KDIR ?= /usr/src/linux

KINC := -I$(KDIR)/include -I$(KDIR)/arch/$(SRCARCH)/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