Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (31 sloc) 1.37 KB
CC=gcc
#CFLAGS=-std=gnu99 -Wall -pthread -ggdb -lm -Os
CFLAGS=-std=gnu99 -Wall -pthread -ggdb3 -lm -O1
LFLAGS=-llvm2cmd -pthread -lconfuse
all: lvmtscd lvmtscat lvmls lvmtsd lvmdefrag
lvmtsd: lvmtsd.c lvmls.o extents.o volumes.o activity_stats.o config.o
$(CC) $(CFLAGS) lvmtsd.c lvmls.o extents.o volumes.o activity_stats.o config.o $(LFLAGS) -o lvmtsd
config.o: config.c
$(CC) $(CFLAGS) -c config.c
volumes.o: volumes.c
$(CC) $(CFLAGS) -c volumes.c
extents.o: extents.c
$(CC) $(CFLAGS) -c extents.c
lvmls.o: lvmls.c
$(CC) $(CFLAGS) -c lvmls.c
lvmls: lvmls.c
$(CC) $(CFLAGS) lvmls.c $(LFLAGS) -DSTANDALONE -o lvmls
lvmdefrag: lvmdefrag.c
$(CC) $(CFLAGS) lvmdefrag.c lvmls.o $(LFLAGS) -o lvmdefrag
lvmtscd: lvmtscd.c activity_stats.o config.o lvmls.o volumes.o extents.o
$(CC) $(CFLAGS) lvmtscd.c activity_stats.o config.o lvmls.o volumes.o extents.o $(LFLAGS) -o lvmtscd
lvmtscat: lvmtscat.c activity_stats.o lvmls.o
$(CC) $(CFLAGS) lvmtscat.c activity_stats.o lvmls.o $(LFLAGS) -o lvmtscat
activity_stats.o: activity_stats.c
$(CC) $(CFLAGS) -c activity_stats.c
clean:
rm -f lvmtscd lvmtscat lvmls lvmtsd activity_stats_test lvmdefrag *.o
test: activity_stats_test
./activity_stats_test
activity_stats_test: activity_stats_test.c activity_stats.c activity_stats.h
$(CC) $(CFLAGS) -fprofile-arcs -ftest-coverage activity_stats_test.c $(LFLAGS) -lcheck -o activity_stats_test