sapling/linelog/Makefile
Jun Wu 47b43030bc linelog: be compatible with gcc 4.4
Summary:
It's "Unnamed unions", a C11 feature.

Although it improves the code readability a bit, gcc 4.4 does not have a
complete for it. Since we have to support gcc 4.4 now, use plain `struct`
instead.

Test Plan: Run `cd linelog && make local` using gcc 4.4

Reviewers: #mercurial, ttung, rmcelroy

Reviewed By: rmcelroy

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3699216

Signature: t1:3699216:1470862720:85ee1c4f8c63805aeffca1048ff330b91a096222
2016-08-10 22:02:24 +01:00

12 lines
208 B
Makefile

.PHONY: all clean
CFLAGS ?= -std=c99 -O2 -Wall -Wextra -Wconversion -pedantic -g
all: linelogcli
linelogcli: linelogcli.c linelog.c linelog.h
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
clean:
rm -f linelogcli