Makefile-keyspan_pda_fw 353 B

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