diff options
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile new file mode 100644 index 0000000..cb91e0e --- /dev/null +++ b/lib/Makefile @@ -0,0 +1,26 @@ +AR := $(CROSS_COMPILE)ar +CC := $(CROSS_COMPILE)gcc +CFLAGS := -O2 -W -Wall -Wno-unused-parameter -I$(KDIR)/usr/include -I$(topdir)/3rdparty/media-ctl/include -I$(topdir)/3rdparty/media-enum/include -I$(topdir)/include -I. -fPIC +LDFLAGS := -L$(topdir)/3rdparty/media-ctl -L$(topdir)/3rdparty/media-enum +LIBS := -lmediaenum -lmediactl -ldl + +OBJECTS := xlnx-buffers.o \ + xlnx-events.o \ + xlnx-plugin.o \ + xlnx-video.o + +TARGET := libxlnxvideo.so + +all: $(TARGET) + +$(TARGET): $(OBJECTS) + $(CC) -o $@ -shared $^ $(LDFLAGS) $(LIBS) + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +clean: + -$(RM) *.o + -$(RM) $(TARGET) + +install: |