File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ # minimalist makefile
2
+ .SUFFIXES :
3
+ #
4
+ .SUFFIXES : .cpp .o .c .h
5
+ ifeq ($(DEBUG ) ,1)
6
+ CFLAGS = -fPIC -std=c99 -ggdb -msse4.1 -march=native -Wall -Wextra -Wshadow -fsanitize=undefined -fno-omit-frame-pointer -fsanitize=address
7
+ else
8
+ CFLAGS = -fPIC -std=c99 -O3 -msse4.1 -march=native -Wall -Wextra -Wshadow
9
+ endif # debug
10
+ all : unit
11
+ test :
12
+ ./unit
13
+
14
+ HEADERS =./include/fastdelta.h
15
+
16
+ OBJECTS = fastdelta.o
17
+
18
+ fastdelta.o : ./src/fastdelta.c $(HEADERS )
19
+ $(CC ) $(CFLAGS ) -c ./src/fastdelta.c -Iinclude
20
+
21
+ example : ./example.c $(HEADERS ) $(OBJECTS )
22
+ $(CC ) $(CFLAGS ) -o example ./example.c -Iinclude $(OBJECTS )
23
+
24
+ unit : ./tests/unit.c $(HEADERS ) $(OBJECTS )
25
+ $(CC ) $(CFLAGS ) -o unit ./tests/unit.c -Iinclude $(OBJECTS )
26
+ clean :
27
+ rm -f unit * .o example
You can’t perform that action at this time.
0 commit comments