AR := $(CROSS_COMPILE)ar CC := $(CROSS_COMPILE)gcc CFLAGS := -O2 -W -Wall -I$(KDIR)/usr/include -fPIC LDFLAGS := OBJECTS := controls.o \ media.o \ omap3isp.o \ subdev.o \ v4l2.o \ v4l2-pool.o %.o : %.c $(CC) $(CFLAGS) -c -o $@ $< all: libomap3isp.so libomap3isp.so: $(OBJECTS) $(CC) -o $@ -shared $^ clean: -$(RM) *.o -$(RM) libomap3isp.so