summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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