-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (28 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CC = gcc
CFLAGS = -ansi -pedantic -Wall -g
CFLAGS += -O0
#CLAGS += -fprofile-arcs -ftest-coverage
LINKFLAGS = -Wl
LTP_GENHTML = genhtml
all: src/fatdump
src/fatdump: src/fatdump.o src/fat.o src/fat16.o src/fat32.o
$(CC) $(CFLAGS) $(LINKFLAGS) -o src/fatdump src/fatdump.o src/fat.o src/fat16.o src/fat32.o
src/fatdump.o: src/fatdump.c include/fat.h fat_conf.h
$(CC) $(CFLAGS) -c src/fatdump.c -o src/fatdump.o
src/fat.o: src/fat.c include/fat.h fat_conf.h
$(CC) $(CFLAGS) -c src/fat.c -o src/fat.o
src/fat16.o: src/fat16.c include/fat.h fat_conf.h
$(CC) $(CFLAGS) -c src/fat16.c -o src/fat16.o
src/fat32.o: src/fat32.c include/fat.h fat_conf.h
$(CC) $(CFLAGS) -c src/fat32.c -o src/fat32.o
ccov: ccov-html
fat.info: all
@find . -name \*.gcda -o -name \*.da -o -name \*.bbg? | xargs rm -f
$(LCOV) --directory . --zerocounters
./tests/run.sh
$(LCOV) --directory . --capture --output-file fat.info
ccov-html: fat.info
@mkdir -p ./ccov_html
@$(LTP_GENHTML) --legend --output-directory ccov_html/ --title "FAT Code Coverage" --show-details fat.info
clean:
@-rm src/*.o *~ src/core src/fatdump *.gcda *.da *-bbg? src/*.map