Antonio Niño Díaz
9829be1045
Enable -Wextra
...
-Wsign-compare has been disabled because flex generates a comparison
that triggers a warning and cannot be fixed in the code.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-04-01 01:42:55 +01:00
Antonio Niño Díaz
b28a16c0da
Enable -Wpedantic
...
Fix a few warnings related needed to build the source with this option.
Add new exception to .checkpatch.conf.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-04-01 00:56:00 +01:00
Antonio Niño Díaz
0e0e12a769
Add CSS file for the html documentation
...
It has been obtained from here:
http://mdocml.bsd.lv/cgi-bin/cvsweb/mandoc.css
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-02-24 16:40:55 +00:00
Antonio Niño Díaz
a6b244b12e
Move version files out of extern folder
...
The folder extern is reserved for external contributions, not common
files.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-28 13:07:21 +00:00
Antonio Niño Díaz
c071586ae5
Remove dependency of reallocarray()
...
By removing this dependency, all of the code of this repository is
licensed under the MIT license.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-27 00:30:13 +00:00
Antonio Niño Díaz
c6187be210
Remove dependency of strlcpy()
...
There was only one place where `strlcpy` was still used.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-27 00:02:44 +00:00
Antonio Niño Díaz
f9f3bb7761
Remove dependency of strlcat()
...
There was only one place where `strlcat` was used, and `snprintf`
actually does a better job at what the code was trying to achieve.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-27 00:02:26 +00:00
Antonio Niño Díaz
1a5c423984
Relicense codebase under MIT license
...
With permission from the main authors [1], most of the code has been
relicensed under the MIT license.
SPDX license identifiers are used so that the license headers in source
code files aren't too large.
Add CONTRIBUTORS.rst file.
[1] https://github.com/rednex/rgbds/issues/128
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-26 22:59:02 +00:00
Antonio Niño Díaz
b382dffdec
Split src/asm/charmap.c into two files
...
This way it is easier to identify the license of the code.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-26 22:55:13 +00:00
Antonio Niño Díaz
33e9eb098c
Exclude html files from checkpatch
...
Also, fix 2 nits in the codebase.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-26 18:57:25 +00:00
Antonio Niño Díaz
698ed9d5fc
Don't clean html files with make clean
...
Added a new target to remove html files: `cleanwwwman`.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-25 22:12:31 +00:00
Antonio Niño Díaz
494b98e46a
Fix html doc file name
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-24 20:29:09 +00:00
Antonio Niño Díaz
d1ff057889
Make clean target of Makefile clean html files
...
The html files generated with `make wwwman` weren't cleaned correctly
with `clean`.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-23 22:54:37 +00:00
Antonio Niño Díaz
292302c6d1
Move documentation to this repository
...
Modified Makefile wwwman target to output files inside docs/.
Modified .gitignore to allow *.html files.
Update README.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-23 21:28:10 +00:00
Antonio Niño Díaz
8d89ba39d4
Decouple commands in checkpatch Makefile target
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-04 21:54:10 +00:00
Antonio Niño Díaz
8e8865940a
Join list of keywords of locallex.c and globlex.c
...
It made sense to have them in different files when the toolchain
targeted systems other than the GB. Now, there are no generic and
system-specific keywords because there is only one supported system.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-04 01:28:23 +00:00
Antonio Niño Díaz
3c14f9760f
Fix echo command in checkpatch target in Makefile
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-03 19:46:48 +01:00
Antonio Niño Díaz
3c15b141e0
Add checkpatch.pl config file and Makefile targets
...
This is used to verify the coding style of patches.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-02 17:09:36 +01:00
Antonio Niño Díaz
318c981c00
Add code to determine a version string
...
If the folder where the code is compiled is a valid git repository, the
version string is generated with `git describe`. If it isn't a valid
repository, a string included in the source code is used instead. This
one must be updated regularly as the toolchain is developed.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-07-22 10:14:02 +01:00
Antonio Niño Díaz
f9a1aba0d8
Allow CFLAGS to be modified from make command line
...
Previously, if the user wanted to modify CFLAGS, it was necessary to add
the options used in the Makefile as well, which doesn't make sense.
This patch splits CFLAGS into CFLAGS and the previously removed
REALCFLAGS so that the user can modify the arguments passed to the
compiler without having to worry about things like passing the list of
include directories.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-07-15 20:10:28 +01:00
Antonio Niño Díaz
907ccfb280
Cleanup Makefile
2017-04-23 13:32:32 +02:00
NieDzejkob
ab2aef3f2b
Fix some man installation locations
2017-04-19 13:18:18 +02:00
Antonio Niño Díaz
83348100f3
Improve MinGW target of Makefile
...
It works now with an install of MinGW for both Win32 and Win64. It needs
libpng and zlib.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-17 17:28:07 +01:00
Antonio Niño Díaz
0030e0371a
Rename object file format description man page
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-17 14:15:46 +01:00
Antonio Niño Díaz
42400ec6a0
Fix links in HTML documentation
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-16 23:08:33 +01:00
Antonio Niño Díaz
2e793fb7dc
Clean wwwman target of Makefile
...
The substitution of OpenBSD by General is not portable.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-16 22:52:10 +01:00
Antonio Niño Díaz
d92c284b85
Add documentation about the object file format
...
Copied from the HTML documentation and updated.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-16 19:54:55 +01:00
Antonio Niño Díaz
26af7fcffe
Add complete documentation of rgbds to man pages
...
Copied from the old html documentation and fixed where it was needed.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-16 19:54:50 +01:00
Antonio Niño Díaz
7097b9885e
Fix clean target of the Makefile
...
Two html documentation files weren't cleaned as expected.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-09 22:06:49 +01:00
Antonio Niño Díaz
0b6438ae0a
Add GBZ80 opcode reference man page
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-08 17:38:04 +01:00
Daniel Hauck
bfcef01211
Add DESTDIR to Makefile
...
Allow separate definition of binary and manpage directory.
Document Makefile changes in README.
2017-04-06 20:47:14 +01:00
AntonioND
2138bb46fd
Fix generation of html man page in Makefile
...
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-02 21:08:53 +01:00
AntonioND
d61a0a8a8f
Cleanup Makefile
...
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-02 17:07:40 +01:00
AntonioND
53842cd07d
Create man5 folder when installing
...
`make install` would blindly try to copy `rgblink.5` even if the
destination folder didn't exist.
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-02 00:40:35 +01:00
AntonioND
f0d4750ebc
Fix rgblink.5 man page installation path
...
The man page rgblink.5 was installed in the `man1` folder instead of
`man5` as expected.
2017-04-01 15:06:26 +01:00
AntonioND
5947ca10dc
Document linkerscript format in manpage
...
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-03-28 22:19:50 +01:00
AntonioND
22d4a10cb6
Implement linkerscript parser
...
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-03-28 22:19:45 +01:00
Sanqui
011c2c953b
Parametrize install arguments in Makefile
2017-03-28 13:22:33 +02:00
Anthony J. Bentley
d86cb41972
Rename png.h to makepng.h, to avoid conflicts with libpng's png.h.
2016-10-22 14:03:14 -06:00
yenatch
95cd960b3b
Fix the order of flags when including libpng.
...
This apparently does matter.
2016-10-11 21:54:18 -06:00
Anthony J. Bentley
a8c603a7e8
Removed the wrong pkg-config.
2016-09-05 01:41:39 -06:00
Anthony J. Bentley
97a31c8fc0
Remove duplicate PKG_CONFIG.
2016-09-05 01:34:17 -06:00
Anthony J. Bentley
c3c31138dd
Add rgbgfx.
2016-09-05 01:29:45 -06:00
stag019
6438ae2591
Remove __progname; add progname set to argv[0] in each main().
2015-03-09 13:57:04 -04:00
stag019
ac78c37f9d
Add reallocarray to Makefile; clean up some things in main.c
2015-02-24 18:11:02 -05:00
Anthony J. Bentley
d81d128a04
Don't specify strict warnings on MinGW.
2015-02-22 04:02:30 -07:00
Anthony J. Bentley
c75b9d4d55
Makefile: don't expand variables in a non-POSIXish way.
2015-01-22 20:42:27 -07:00
Anthony J. Bentley
3b0e207036
Pass -Wimplicit (implicit + implicit-function-declaration) by default.
2015-01-07 18:43:16 -07:00
stag019
ab66b28fdf
yacc_pre is no longer needed, since all the files were merged into one.
2015-01-03 06:57:07 -05:00
Anthony J. Bentley
ef3a486845
Request POSIX 2008 for strdup().
2014-12-31 03:18:01 -07:00