Watt-32 icon indicating copy to clipboard operation
Watt-32 copied to clipboard

Configure options

Open jwt27 opened this issue 11 months ago • 2 comments

Work in progress, pushing what I have so far:

First commit saves the user's $CFLAGS in the makefile, which I think is generally a good idea. Though there are some targets that produce multiple makefiles, not sure how practical it is for those.

Second commit then allows users to override the config.h macros via $CFLAGS. For example, to make a "release" version of the library for djgpp:

$ export CFLAGS='-O3 -DNDEBUG -DWANT_DEBUG=0 -DWANT_BSD_FATAL=0'
$ ./configur.sh djgpp
$ make -f djgpp.mak

This is just the easiest way to implement it, but maybe not the nicest to use. I'm looking into adding autoconf-style options like --enable-dhcp, and a --help that explains all of them.

jwt27 avatar Jul 15 '23 19:07 jwt27