summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..1bea07c
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,22 @@
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -O2 -W -Wall -Wno-unused-parameter -I$(KDIR)/usr/include -I$(topdir)/include -I. -fPIC
+LDFLAGS := -L$(topdir)/lib
+LIBS := -lxlnxvideo
+
+OBJECTS := main.o
+
+TARGET := xlnx-video
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+%.o : %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+ -$(RM) *.o
+ -$(RM) $(TARGET)
+
+install: