mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 17:58:27 +03:00
b2284a0ad1
Summary: We don't run this binary anymore, no reason to build and ship it. Reviewed By: quark-zju Differential Revision: D14437317 fbshipit-source-id: dd6da521783f18a2a518a7aa042be98950894e89
30 lines
571 B
Makefile
30 lines
571 B
Makefile
TARGET = chg
|
|
SRCS = chg.c hgclient.c procutil.c util.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
CFLAGS ?= -O2 -Wall -Wextra -pedantic -g
|
|
CPPFLAGS ?= -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
|
|
override CFLAGS += -std=gnu99
|
|
|
|
.PHONY: all
|
|
all: static
|
|
|
|
.PHONY: static
|
|
static:
|
|
$(CC) -c $(SRCS) $(CFLAGS) $(CPPFLAGS) -DCHG_STATIC_LIB -fPIC
|
|
ar rcs lib$(TARGET).a $(OBJS)
|
|
|
|
chg.o: hgclient.h procutil.h util.h
|
|
hgclient.o: hgclient.h procutil.h util.h
|
|
procutil.o: procutil.h util.h
|
|
util.o: util.h
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) $(OBJS)
|
|
$(RM) $(TARGET).a
|
|
|
|
.PHONY: distclean
|
|
distclean:
|
|
$(RM) $(OBJS) $(TARGET)
|