Advertisement
lamiastella

SVM_Makefile_X86

Sep 9th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.99 KB | None | 0 0
  1. #Makefile written by Amin and Mona
  2. HOME = /research/jalal
  3. CC = gcc
  4. LIBS = -lpthread
  5.  
  6. COMMON_DIR=common
  7. INPUT=cif
  8. INCLUDES= -I$(COMMON_DIR)
  9.  
  10. CHECK=CHECK #change CHECK to something else for not checking the output
  11. GEN_OUT=NO_GENERATE_OUTPUT #change GENERATE_OUTPUT to something else for not generating the output. This overwrites the expected_C.txt in data directory, so be careful not ruin your expected data.
  12.  
  13. CFLAGS= -ggdb3 -DGCC -D$(CHECK) -D$(GEN_OUT) -D$(INPUT) -lm -O2 $(INCLUDES) -static
  14. GFLAGS=-DGCC -D$(CHECK) -D$(GEN_OUT) -D$(INPUT) -lm -O0 -g $(INCLUDES) -static
  15.  
  16. COMMON_SRC=$(wildcard $(COMMON_DIR)/*.c) $(wildcard $(COMMON_DIR)/*.h)
  17. COMMON_SRC_C=$(wildcard $(COMMON_DIR)/*.c)
  18. SRC=$(wildcard *.c)
  19.  
  20. all: svm
  21.  
  22. svm:
  23.     $(CC) -pg $(SRC) $(COMMON_SRC_C) --coverage -fprofile-arcs -ftest-coverage  -lgcov -o $@ $^ $(CFLAGS) $(LIBS)
  24.  
  25. #mser-debug: $(SRC) $(COMMON_SRC)
  26. #       $(CC) -o $@ $^ $(GFLAGS) $(LIBS)
  27.  
  28. clean:
  29.     rm -rf *.o *.gcda *.gcno *.gcov; rm -f svm; rm -f svm-debug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement