summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-05-19 00:15:52 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-05-19 00:15:52 +0200
commitabbd1a3b585c685426196f066ad7fd417ed730a0 (patch)
tree1c02e17f5f44470552ae22ab9fcb3a031c37f530 /Makefile
Initial import
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bf4cf55
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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