Makefile 550 B

12345678910111213141516171819202122
  1. include ../../common/make.config
  2. CC = gcc
  3. CC_FLAGS = -std=c99 -O3
  4. ifdef VERIFY
  5. override VERIFY = -DVERIFY
  6. endif
  7. ifdef OUTPUT
  8. override OUTPUT = -DOUTPUT
  9. endif
  10. ifdef TIMER
  11. override TIMER = -DTIMER
  12. endif
  13. hybridsort: hybridsort.c bucketsort.h mergesort.h bucketsort.c mergesort.c
  14. $(CC) $(CC_FLAGS) -o hybridsort $(VERIFY) $(OUTPUT) $(TIMER) -I$(OPENCL_INC) $(HISTO_WG_SIZE_0) $(BUCKET_WG_SIZE_0) $(BUCKET_WG_SIZE_1) $(MERGE_WG_SIZE_0) $(MERGE_WG_SIZE_1) hybridsort.c bucketsort.c mergesort.c -L$(OPENCL_LIB) -lOpenCL -lm
  15. clean:
  16. rm -f hybridsort