Brainfuck compiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 321B

1234567891011121314
  1. # All we need is C99 and POSIX, which this should make available
  2. CFLAGS = -std=gnu99
  3. NAMES = bfc-amd64-linux bfc-amd64-openbsd
  4. all: $(NAMES)
  5. %-linux: %.c
  6. $(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_LINUX
  7. %-openbsd: %.c
  8. $(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_OPENBSD
  9. clean:
  10. rm -f $(NAMES)
  11. .PHONY: all clean