Fast IFS using RPN notation
python
c
x86-64
nasm
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 469B

123456789101112131415161718192021222324
  1. CC=gcc
  2. LD=ld
  3. SOURCES=$(wildcard test_*.c)
  4. OBJS=$(patsubst %.c,%.o, $(SOURCES))
  5. BINARIES=$(patsubst %.o, %, $(OBJS))
  6. all: checks
  7. checks: $(BINARIES)
  8. for test_bin in $(BINARIES); do echo "Running $${test_bin}.c"; ./$$test_bin && echo "OK" || echo "fail"; done
  9. ../%.o:
  10. make -C ..
  11. %.o: %.c
  12. $(CC) -I.. $(CFLAGS) -c -o $@ $<
  13. test_%: test_%.o ../rpn_lib.o ../rpn_jit.o ../rpn_parse.o
  14. $(CC) -I.. $(CFLAGS) -o $@ $^
  15. .PHONY: clean
  16. clean:
  17. -rm -v $(BINARIES) $(OBJS)