Mercurial > libunicode
view Makefile @ 17:6fa530cc1188
unicode: fix invalid uni8_length compute
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 11 Oct 2021 20:57:32 +0200 |
parents | b5bcb17b9115 |
children | 9b2038be6af4 |
line wrap: on
line source
# # Makefile -- basic Makefile for libunicode # # Copyright (c) 2013-2021 David Demelier <markand@malikania.fr> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # .POSIX: CC= cc CFLAGS= -O3 -DNDEBUG INCS= -Iextern/libgreatest -I. .SUFFIXES: .SUFFIXES: .c all: unicode.c .c: ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} unicode.c: gen/src/mkunicode-c gen/unicode-before.c gen/unicode-after.c cat gen/unicode-before.c > unicode.c gen/src/mkunicode-c unicode.c gen/UnicodeData.txt cat gen/unicode-after.c >> unicode.c test/unicode: unicode.c unicode.h test/unicode.c ${CC} ${INCS} ${CFLAGS} -o test/unicode unicode.c test/unicode.c ${LDFLAGS} tests: test/unicode test/unicode clean: rm -f gen/src/mkunicode-c rm -f test/unicode .PHONY: all clean tests