Makefile 493 B

123456789101112131415161718192021222324
  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. includes = ../../iodevs.conf usbparam.vh
  8. all: $(TARGETS) $(ALSO)
  9. %.v: %.conf $(TOOLS)/usbdescgen.pl $(includes)
  10. $(PERL) $(PERLOPT) $(TOOLS)/usbdescgen.pl v $< $@
  11. %.bin: %.conf $(TOOLS)/usbdescgen.pl $(includes)
  12. $(PERL) $(PERLOPT) $(TOOLS)/usbdescgen.pl bin $< $@
  13. clean:
  14. rm -f $(ALSO) *.bin
  15. spotless: clean
  16. rm -f $(TARGETS) *~ .\#* \#* *.bak