Makefile 305 B

123456789101112131415
  1. CC = $(CROSS_COMPILE)gcc
  2. BUILD_FLAGS = -DKTEST
  3. CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
  4. LDFLAGS += -lrt -lpthread
  5. bins = posix_timers nanosleep inconsistency-check nsleep-lat
  6. all: ${bins}
  7. run_tests: all
  8. ./posix_timers
  9. ./nanosleep
  10. ./nsleep-lat
  11. ./inconsistency-check
  12. clean:
  13. rm -f ${bins}