aboutsummaryrefslogtreecommitdiff
path: root/tests/lru_cache/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lru_cache/Makefile')
-rw-r--r--tests/lru_cache/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/lru_cache/Makefile b/tests/lru_cache/Makefile
new file mode 100644
index 000000000..aa3a2cb89
--- /dev/null
+++ b/tests/lru_cache/Makefile
@@ -0,0 +1,21 @@
+CC=gcc
+
+CFLAGS+=-W -Werror -Wall -Wextra -std=c99 \
+ -D_FORTIFY_SOURCE=2 -fstack-protector -g \
+ -Wformat=2 -pedantic -pedantic-errors \
+ -D_GNU_SOURCE=1 -D_BSD_SOURCE=1 \
+ -I../../src
+
+LDFLAGS+=-pthread
+
+cache: main.o cache.o
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) main.o cache.o -o cache
+
+main.o: main.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c main.c -o main.o
+
+cache.o: cache.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c cache.c -o cache.o
+
+clean:
+ rm -f cache *.o