comparison Makefile @ 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
comparison
equal deleted inserted replaced
2567:b205c60aa657 2568:8ab923fe23ef
21 LIBPNG_LDFLAGS ?= $(shell pkg-config --libs libpng) 21 LIBPNG_LDFLAGS ?= $(shell pkg-config --libs libpng)
22 22
23 ZLIB_CFLAGS ?= $(shell pkg-config --cflags zlib) 23 ZLIB_CFLAGS ?= $(shell pkg-config --cflags zlib)
24 ZLIB_LDFLAGS ?= $(shell pkg-config --libs zlib) 24 ZLIB_LDFLAGS ?= $(shell pkg-config --libs zlib)
25 25
26 # NOTE! If you want to define the default path for C64 chargen
27 # ROM image file, you can set it with this define and/or Make
28 # parameter. Do take note of the somewhat peculiar quotation and
29 # escape of backlash '\'. Example: (notice the single quotes)
30 #
31 # make CHARGEN='/usr/local/share/vice/C64/chargen'
32 #
33 # If not specified, the shellscript findchargen.sh will be
34 # run to detect if the file can be found from VICE installations.
35 #
36 ifneq ($(CHARGEN),)
37 CFLAGS += -DDM_DEF_CHARGEN='"$(CHARGEN)"'
38 else
26 FINDCHARGEN := $(shell sh $(DMLIB)/tools/findchargen.sh) 39 FINDCHARGEN := $(shell sh $(DMLIB)/tools/findchargen.sh)
27 CFLAGS += $(FINDCHARGEN) 40 CFLAGS += $(FINDCHARGEN)
41 endif
28 42
29 TOOL_LDFLAGS ?= 43 TOOL_LDFLAGS ?=
30 44
31 include $(DMLIB)Makefile.gen 45 include $(DMLIB)Makefile.gen
32 46