Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Makefile written by Amin and Mona
- HOME = /research/jalal
- CC = gcc
- LIBS = -lpthread
- COMMON_DIR=common
- INPUT=cif
- INCLUDES= -I$(COMMON_DIR)
- CHECK=CHECK #change CHECK to something else for not checking the output
- 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.
- CFLAGS= -ggdb3 -DGCC -D$(CHECK) -D$(GEN_OUT) -D$(INPUT) -lm -O2 $(INCLUDES) -static
- GFLAGS=-DGCC -D$(CHECK) -D$(GEN_OUT) -D$(INPUT) -lm -O0 -g $(INCLUDES) -static
- COMMON_SRC=$(wildcard $(COMMON_DIR)/*.c) $(wildcard $(COMMON_DIR)/*.h)
- COMMON_SRC_C=$(wildcard $(COMMON_DIR)/*.c)
- SRC=$(wildcard *.c)
- all: svm
- svm:
- $(CC) -pg $(SRC) $(COMMON_SRC_C) --coverage -fprofile-arcs -ftest-coverage -lgcov -o $@ $^ $(CFLAGS) $(LIBS)
- #mser-debug: $(SRC) $(COMMON_SRC)
- # $(CC) -o $@ $^ $(GFLAGS) $(LIBS)
- clean:
- rm -rf *.o *.gcda *.gcno *.gcov; rm -f svm; rm -f svm-debug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement