include ../../../config.mak
LDFLAGS=

all:	luma create_lumas
	@./create_lumas 

luma:	luma.c
# When cross-compiling, use the host OS compiler to build the luma
# binary because the files are generated at build time.
# Strips the CROSS prefix from the C compiler variable.
ifdef CROSS
	$(subst $(CROSS),,$(CC)) -o $@ luma.c
else
	$(CC) -o $@ luma.c
endif

create_lumas:

depend:

distclean:
	rm -rf luma 9_16 16_9 NTSC PAL square

clean:
	rm -f luma 

install:	all
	install -d "$(DESTDIR)$(mltdatadir)/lumas/9_16"
	install -d "$(DESTDIR)$(mltdatadir)/lumas/16_9"
	install -d "$(DESTDIR)$(mltdatadir)/lumas/NTSC"
	install -d "$(DESTDIR)$(mltdatadir)/lumas/PAL"
	install -d "$(DESTDIR)$(mltdatadir)/lumas/square"
	install -m 644 9_16/* "$(DESTDIR)$(mltdatadir)/lumas/9_16"
	install -m 644 16_9/* "$(DESTDIR)$(mltdatadir)/lumas/16_9"
	install -m 644 NTSC/* "$(DESTDIR)$(mltdatadir)/lumas/NTSC"
	install -m 644 PAL/*  "$(DESTDIR)$(mltdatadir)/lumas/PAL"
	install -m 644 square/* "$(DESTDIR)$(mltdatadir)/lumas/square"
