Improve how to redefine macros in 2004/gavare
Now one can do
make clobber XX=640 YY=480 AA=3 alt
or whatever, rather than the more awkward setting of CDEFINE.
This commit is contained in:
1 parent
b8473b5b6a
commit
c3fdf7c917
2 files changed
+9
-5
No files matched your search
@@ -56,9 +56,13 @@ CSTD= -std=gnu99
|
||||
#
|
||||
ARCH=
|
||||
|
||||
# variables for the macros for easier redefining
|
||||
XX= 1024
|
||||
YY= 768
|
||||
AA= 3
|
||||
# Defines that are needed to compile
|
||||
#
|
||||
CDEFINE= -DXX=1024 -DYY=768 -DAA=3
|
||||
CDEFINE= -DXX=${XX} -DYY=${YY} -DAA=${AA}
|
||||
|
||||
# Include files that are needed to compile
|
||||
#
|
||||
|
||||
@@ -46,17 +46,17 @@ make alt
|
||||
To change the default size from 1024x768 try:
|
||||
|
||||
```sh
|
||||
make clobber CDEFINE="-DXX=640 -DYY=480" alt
|
||||
make clobber XX=640 YY=480 alt
|
||||
```
|
||||
|
||||
You might also wish to change the anti-alias setting:
|
||||
|
||||
```sh
|
||||
make clobber CDEFINE="-DAA=2" alt
|
||||
make clobber AA=2 alt
|
||||
```
|
||||
|
||||
This is not possible with the author's version but it is with the Windows
|
||||
version (see below).
|
||||
This is not possible with the author's version but it is with the alt versions
|
||||
(Windows - see below - and otherwise).
|
||||
|
||||
As the Windows version will not compile on most viewers' systems we do not build
|
||||
it with `make alt`; instead try:
|
||||
|
||||
Reference in new issue
Block a user