summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-05-19 11:59:00 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-05-19 11:59:00 +0200
commitf2ff2bfef299e3ebddeb4962aef50d3c3012edb6 (patch)
tree9b3f4272ebff19c181bcc07cf8169b02020099d1 /Makefile
Initial import
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5c9cc68
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+CROSS_COMPILE ?=
+
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -O2 -W -Wall
+LDFLAGS :=
+
+%.o : %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+all: yavta
+
+yavta: yavta.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
+clean:
+ -rm -f *.o
+ -rm -f yavta
+