CC = cc #CC = tcc CFLAGS = -Wall -I/usr/include CFLAGS += -static -std=c89 -Iinclude LDFLAGS = DEST=$$(pwd)/bin all: hyp ext/hyphen-2.8.8/README: cd ext && tar zxf hyphen-2.8.8.tar.gz lib/libhyphen.a: ext/hyphen-2.8.8/README cd ext/hyphen-2.8.8 && ./configure --prefix=$$(pwd)/../.. && make install hyp: lib/libhyphen.a $(CC) $(CFLAGS) $(HYPFLAGS) $(LDFLAGS) -o $@ -DBUILD_PATH=\"$$(pwd)\" hyp.c lib/libhyphen.a clean: rm -f hyp hyp-es && rm -rf lib include bin && cd ext/hyphen-2.8.8 && make clean install: all strip hyp cp hyp $(DEST)/hyp cp unhyp $(DEST)/unhyp