contrib/hgsh/Makefile
author David Soria Parra <davidsp@fb.com>
Wed, 24 Sep 2014 13:16:20 -0700
changeset 22540 9a860ac8c216
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
parsers: fix uninitialize variable warning The heads pointer is not initialized correctly if filter is false, causing both clang and gcc to issue a warning. Correctly initialize heads to NULL.

CC := gcc
CFLAGS := -g -O2 -Wall -Werror

prefix ?= /usr/bin

hgsh: hgsh.o
	$(CC) -o $@ $<

install: hgsh
	install -m755 hgsh $(prefix)

clean:
	rm -f *.o hgsh