Mercurial > hg > dmlib
view Makefile @ 2547:71f04d8e791e
Implement a simple shell script for finding C64 chargen ROM image file
(if any can be found) for *NIX builds and note the existence of the
DM_DEF_CHARGEN define in MinGW Makefile with an example.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 18 Oct 2021 16:58:02 +0300 |
parents | 8abdd95139d6 |
children | 8ab923fe23ef |
line wrap: on
line source
### ### Generic UNIX targets ### DMLIB ?= ./ BINPATH ?= ./ OBJPATH ?= ./obj/unix/ PREFIX ?= /usr/local INSTALL ?= install RANLIB ?= ranlib SDL_CFLAGS ?= $(shell pkg-config --cflags sdl2) SDL_LDFLAGS ?= $(shell pkg-config --libs sdl2) SDL_TTF_CFLAGS ?= $(shell pkg-config --cflags SDL2_ttf) SDL_TTF_LDFLAGS ?= $(shell pkg-config --libs SDL2_ttf) TREMOR_CFLAGS ?= $(shell pkg-config --cflags ogg) TREMOR_LDFLAGS ?= /usr/lib/libvorbisidec.a $(shell pkg-config --variable=libdir ogg)/libogg.a LIBPNG_CFLAGS ?= $(shell pkg-config --cflags libpng) LIBPNG_LDFLAGS ?= $(shell pkg-config --libs libpng) ZLIB_CFLAGS ?= $(shell pkg-config --cflags zlib) ZLIB_LDFLAGS ?= $(shell pkg-config --libs zlib) FINDCHARGEN := $(shell sh $(DMLIB)/tools/findchargen.sh) CFLAGS += $(FINDCHARGEN) TOOL_LDFLAGS ?= include $(DMLIB)Makefile.gen install: all @for fn in $(TOOL_TARGETS); do echo " INSTALL $$fn $(DESTDIR)$(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(DESTDIR)$(PREFIX)/bin/; done