Makefile 205 B

12345678910111213141516
  1. CC=gcc
  2. CFLAGS=-std=c99 -Wall -Werror
  3. SOURCES=hex0.c hex2.c hex86.c
  4. BINARIES=$(SOURCES:.c=.bin)
  5. .PHONY: all
  6. all: $(BINARIES)
  7. .PHONY: clean
  8. clean:
  9. rm -f $(BINARIES)
  10. %.bin: %.c
  11. $(CC) $(CFLAGS) $< -o $@