Pxtrix is a image procressing and drawing kit in C. Pxtrix mean "Pixels Matrix". It can be used to process or draw a picture.
Author: smgdream
Version: 0.2.3 dev
Tab: Four space per tab
MIT License
Copyright (c) 2024 Smgdream
Enviroment requirement
C version: C99
Compiler: >= gcc-5 or >= tcc-0.28rc ( >= clang-3 may can)
Used: C Complier, printf, find, xargs, uname, cloc, tar, xz, sed, and etc.
NOTE: For Win, tar and sed of busybox version have something wrong. I using git
version to compile it in Windows.
Compile
Compile the main example
$ make [OPTIONS]
make pxtrix as static library
$ make lib [OPTIONS]
make pxtrix as shared library (experiment)
$ make so_lib [OPTIONS]
Library files are output to the build directory
NOTE: It can not use tcc to compile the library and link it by GNU linker. But
you can use gcc to compile it and use tcc linker to link. Remake the
library should make distclean at first.
General options:
-j [N] allow N jobs at once
V=(0 | 1) show the datil or not (default: 0)
S=(0 | 1) static link or not (if the CC is tcc it will be set to 0 in the
end, no metter what you set. if the CC is not tcc it's 1 as
default)
CC=COMPILER the compiler you want (default: CC=gcc)
e.g. $ make -j 16 CC=tcc V=1 S=0
Delete all of the intermediate files and output files. (include: *.a, *.o)
$ make clean
Delete all of the intermediate files, executable files, image files and build
directory in the pxtrix's project directory. (include: *.a, *.o,
*.exe,*.png, *.bmp, *.qoi, *.pgm, ect.)
$ make distclean
Count lines of code
$ make count
package the pxtrix (in NT tar of git version can)
$ make dist
or
$ fakeroot make dist