Makefile-keyspan_pda_fw 388 B

1234567891011121314151617
  1. # SPDX-License-Identifier: GPL-2.0
  2. # some rules to handle the quirks of the 'as31' assembler, like
  3. # insisting upon fixed suffixes for the input and output files,
  4. # and its lack of preprocessor support
  5. all: keyspan_pda_fw.h
  6. %.asm: %.S
  7. gcc -x assembler-with-cpp -P -E -o $@ $<
  8. %.hex: %.asm
  9. as31 -l $<
  10. mv $*.obj $@
  11. %_fw.h: %.hex ezusb_convert.pl
  12. perl ezusb_convert.pl $* < $< > $@