Makefile 323 B

1234567891011121314
  1. CFLAGS += -std=c99 -pedantic -Wall -Wextra
  2. LDLIBS += -lutil
  3. CPPFLAGS += -D_DEFAULT_SOURCE
  4. .PHONY: all clean test
  5. all: scroll
  6. clean:
  7. rm -f scroll
  8. test: scroll
  9. # return code passthrough of childs
  10. ./scroll /usr/bin/true && if [ $$? -ne 0 ]; then exit 1; fi
  11. ./scroll /usr/bin/false || if [ $$? -ne 1 ]; then exit 1; fi