File: Makefile

package info (click to toggle)
uthash 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,788 kB
  • sloc: ansic: 9,838; makefile: 178; perl: 88; sh: 37; cpp: 30
file content (21 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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