Mercurial > ~darius > hgwebdir.cgi > modulator
diff q/makefile @ 14:388074ff9474
Add fixed point code
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Tue, 25 Feb 2025 13:28:29 +1030 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/q/makefile Tue Feb 25 13:28:29 2025 +1030 @@ -0,0 +1,34 @@ +QVERSION=0x000902 +CFLAGS=-std=c99 -Wall -Wextra -O2 -pedantic -fwrapv -DQVERSION=${QVERSION} -Wmissing-prototypes +CC=cc +TARGET=q +RM=rm -fv +AR=ar +RANLIB=ranlib + +.PHONY: all run clean + +all: ${TARGET} expr + +run: test ${TARGET} t.q + ./${TARGET} t.q + +test: ${TARGET} + ./${TARGET} -t + + +q.o: q.c q.h + +lib${TARGET}.a: q.o + ${AR} rcs $@ $< + ${RANLIB} $@ + +check: *.c *.h + cppcheck --enable=all *.c *.h + +${TARGET}: lib${TARGET}.a t.o + +expr: lib${TARGET}.a expr.o + +clean: + git clean -dffx