Makefile 283 B

1234567891011121314
  1. CFLAGS=-ansi -pedantic -Wall -Wextra
  2. CC?=gcc
  3. all: test_simple test_async
  4. test_simple: test_simple.c
  5. $(CC) $(CFLAGS) test_simple.c -o test_simple
  6. test_async: test_async.c
  7. $(CC) $(CFLAGS) test_async.c -o test_async -lpthread
  8. clean:
  9. rm test_simple test_async 2>/dev/null || true