srcdir=@srcdir@
VPATH=$(srcdir)

include ../Make.config

CFLAGS=-g @CFLAGS@ $(WARN_FLAGS) $(LFS_FLAGS) -I..	\
	-DNG_PRIVATE -DLIBDIR='"$(libdir)"'
OBJS=grab-ng.o devices.o writefile.o			\
	color_common.o color_packed.o color_lut.o	\
	color_yuv2rgb.o

all build: libng.a

libng.a: $(OBJS)
	rm -f $@
	ar -r $@ $(OBJS)
	ranlib $@

clean:
	rm -f libng.a $(OBJS)

distclean realclean: clean
	rm -f Makefile *~ *.bak

install:

depend dep:
	$(DEPEND) -- $(CFLAGS) -- *.c

#-------------------------------------------------------------------------
# DO NOT DELETE THIS LINE -- make depend depends on it.
