Mercurial > hg > dmlib
diff Makefile.cross-mingw @ 2568:8ab923fe23ef
Add Make parameter/variable CHARGEN= for easier defining of
the chargen ROM file path.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Mar 2022 00:04:30 +0200 |
parents | 71f04d8e791e |
children | 669b71e8b868 |
line wrap: on
line diff
--- a/Makefile.cross-mingw Mon Feb 28 12:03:23 2022 +0200 +++ b/Makefile.cross-mingw Wed Mar 02 00:04:30 2022 +0200 @@ -15,10 +15,17 @@ # # NOTE! If you want to define the default path for C64 chargen -# ROM image file, you can set it with this define. Do take note of -# the somewhat peculiar quotation and escape of backlash '\', these -# are REQUIRED. +# ROM image file, you can set it with this define and/or Make +# parameter. Do take note of the somewhat peculiar quotation and +# escape of backlash '\'. Example: (notice the single quotes) +# +# make -f Makefile.cross-mingw CHARGEN='C:\\VICE-3.5\\C64\\chargen' +# +ifneq ($(CHARGEN),) +CFLAGS += -DDM_DEF_CHARGEN='"$(CHARGEN)"' +else CFLAGS += -DDM_DEF_CHARGEN='"C:\\VICE-3.5\\C64\\chargen"' +endif ifeq ($(MINGW),64)