Makefile 319 B

123456789101112131415161718
  1. CC=gcc
  2. DEBUG=-O0
  3. RELEASE=-Ofast
  4. CFLAGS=-std=c99 -Wall -Wextra
  5. test:
  6. echo "Testing debug build..."
  7. ${CC} bits.c bits_test.c -o bits_test ${CFLAGS} ${DEBUG}
  8. ./bits_test
  9. echo "Starting release build..."
  10. ${CC} bits.c bits_test.c -o bits_test ${CFLAGS} ${RELEASE}
  11. ./bits_test
  12. clean:
  13. rm -rf bits_test 2> /dev/null