2
0

Makefile 427 B

12345678910111213141516171819202122
  1. TOOLS = ../../tools
  2. PERLINC = $(TOOLS)/perlinc
  3. PERL = /usr/bin/perl
  4. PERLOPT = -I$(PERLINC)
  5. TARGETS = usb_desc.v
  6. ALSO = usb_desc.bin
  7. all: $(TARGETS) $(ALSO)
  8. %.v: %.conf $(TOOLS)/usbdescgen.pl
  9. $(PERL) $(PERLOPT) $(TOOLS)/usbdescgen.pl v $< $@
  10. %.bin: %.conf $(TOOLS)/usbdescgen.pl
  11. $(PERL) $(PERLOPT) $(TOOLS)/usbdescgen.pl bin $< $@
  12. clean:
  13. rm -f $(ALSO) *.bin
  14. spotless: clean
  15. rm -f $(TARGETS) *~ .\#* \#* *.bak