Skip to content
Snippets Groups Projects
Commit b57a42e4 authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

git2graph Makefile: be more strict (-Werror) and pass cflags to ld too

parent 7bedb1da
No related tags found
No related merge requests found
CC = gcc
LD = gcc
CFLAGS = -Wall $(shell pkg-config --cflags libgit2)
CFLAGS = -Wall -Werror $(shell pkg-config --cflags libgit2)
LDFLAGS = $(shell pkg-config --libs libgit2)
all: git2graph
git2graph: git2graph.o
$(LD) -o $@ $^ $(LDFLAGS)
$(LD) -o $@ $^ $(CFLAGS) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $<
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment