view Makefile @ 2576:812b16ee49db

I had been living under apparent false impression that "realfft.c" on which the FFT implementation in DMLIB was basically copied from was released in public domain at some point, but it could very well be that it never was. Correct license is (or seems to be) GNU GPL. Thus I removing the code from DMLIB, and profusely apologize to the author, Philip Van Baren. It was never my intention to distribute code based on his original work under a more liberal license than originally intended.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Mar 2022 16:32:50 +0200
parents 8ab923fe23ef
children 669b71e8b868
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)

# NOTE! If you want to define the default path for C64 chargen
# 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 CHARGEN='/usr/local/share/vice/C64/chargen'
#
# If not specified, the shellscript findchargen.sh will be
# run to detect if the file can be found from VICE installations.
#
ifneq ($(CHARGEN),)
CFLAGS += -DDM_DEF_CHARGEN='"$(CHARGEN)"'
else
FINDCHARGEN := $(shell sh $(DMLIB)/tools/findchargen.sh)
CFLAGS += $(FINDCHARGEN)
endif

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