##// END OF EJS Templates
chg: define PRINTF_FORMAT_ for non gnu C compiler...
chg: define PRINTF_FORMAT_ for non gnu C compiler Before this patch, if __GNUC__ is not defined, PRINTF_FORMAT_ will not be defined and will cause compilation error. This patch solves the issue by making sure PRINTF_FORMAT_ is defined. It allows chg to be compiled with tcc (http://bellard.org/tcc/) by: tcc -o chg *.c

File last commit:

r2341:dbbe7f72 default
r28604:d4d8a3c8 default
Show More
Makefile
13 lines | 160 B | text/x-makefile | MakefileLexer
Vadim Gelfer
contrib: add restricted shell.
r2341 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