-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathchip.mk
40 lines (36 loc) · 1.24 KB
/
chip.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Gmu Music Player
#
# Copyright (c) 2016 NeoTheFox
#
# File: chip.mk Created: 060916
#
# Description: Makefile configuration (unknown default target)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2 of
# the License. See the file COPYING in the Gmu's main directory
# for details.
#
ifeq (0,$(STATIC))
# normal build
DECODERS_TO_BUILD?=decoders/vorbis.so decoders/flac.so decoders/wavpack.so decoders/mpg123.so decoders/mikmod.so decoders/speex.so
FRONTENDS_TO_BUILD?=frontends/sdl.so frontends/gmuhttp.so
else
# static build
DECODERS_TO_BUILD=vorbis.o flac.o mpg123.o mikmod.o speex.o
FRONTENDS_TO_BUILD=sdl.o gmuhttp.o
PLUGIN_OBJECTFILES+=$(PLUGIN_FE_SDL_OBJECTFILES) $(PLUGIN_FE_HTTP_OBJECTFILES)
endif
CC?=gcc
CXX?=g++
STRIP?=strip
SDL_LIB=$(shell sdl-config --libs)
SDL_CFLAGS=$(shell sdl-config --cflags)
MIKMOD_LIB=$(shell libmikmod-config --libs)
MIKMOD_CFLAGS=$(shell libmikmod-config --cflags)
COPTS?=-O0 -fno-short-enums -g
CFLAGS=$(SDL_CFLAGS) -fsigned-char -D_REENTRANT -DUSE_MEMORY_H
LFLAGS=-I/usr/local/include -L/usr/local/lib -Wl,-export-dynamic
DISTFILES=$(COMMON_DISTBIN_FILES) gmuinput.chip.conf gmu-chip.sh