Makefile 558 B

1234567891011121314151617181920212223242526
  1. HEX0=(../c/hex0.bin)
  2. HEX2=(../c/hex2.bin)
  3. HEX86=(../c/hex86.bin)
  4. HEX0SRCS=helloworld.hex0 hex0a.hex0 xeh.hex0 robinhoksberg_elfhowto.hex0 hex0b1.hex0
  5. HEX2SRCS=stage1_assembler-2.hex2 x86-enc-jumps.hex2 cat.hex2 \
  6. cat2.hex2 cat3.hex2 hex0b2.hex2 glo.hex2 hex0glo.hex2 strcmp.hex2
  7. HEX86SRCS=hex0b3.hex86
  8. BINARIES=$(HEX0SRCS:.hex0=.bin) $(HEX2SRCS:.hex2=.bin) $(HEX86SRCS:.hex86=.bin)
  9. .PHONY: all
  10. all: $(BINARIES)
  11. .PHONY: clean
  12. clean:
  13. rm -f $(BINARIES)
  14. %.bin: %.hex0
  15. $(HEX0) < $< > $@
  16. %.bin: %.hex2
  17. $(HEX2) < $< > $@
  18. %.bin: %.hex86
  19. $(HEX86) < $< > $@