I-Nex/i-nex.mk

54 lines
1.2 KiB
Makefile
Raw Normal View History

2014-02-07 02:22:16 +08:00
#!/usr/bin/make -f
2014-02-09 20:46:55 +08:00
PWD = $(shell pwd)
PN = i-nex
PREFIX = /usr
DOCSDIR = /share/doc/i-nex
MANDIR = /share/man/man1
APP_NAME = $(PN)
LSB_CS = $(shell lsb_release -cs)
CC_OPTS_LIBCPUID = $(shell pkg-config libcpuid --cflags --libs)
libgl = $(shell pkg-config gl --cflags --libs)
libx11 = $(shell pkg-config x11 --cflags --libs)
libxext = $(shell pkg-config xext --cflags --libs)
ARCH = $(shell uname -m)
GBC = /usr/bin/gbc3
GBCOPTS = -eagtpm
GBA = gba3
CC = gcc
CFLAGS = -g -Wall
2014-02-11 09:25:31 +08:00
bindir = $(PREFIX)/bin
2014-02-09 20:46:55 +08:00
INSTALL = install -m
2014-07-13 21:42:26 +08:00
MKDIR_P = mkdir -p
2014-02-09 20:46:55 +08:00
RM_COM = rm
RMFILE_OPT = -f
RMDIR_OPT = -Rf
STATIC = true
ifeq ($(STATIC),true)
2014-02-09 20:46:55 +08:00
YESNO_LINK = -static
else
YESNO_LINK =
endif
2014-02-07 02:22:16 +08:00
ifeq ($(ARCH),x86)
2014-02-09 20:46:55 +08:00
additional_confflags := --disable-sse2
2014-02-07 02:22:16 +08:00
endif
ifeq ($(ARCH),x86_64)
2014-02-09 20:46:55 +08:00
additional_confflags := -O2
2014-02-07 02:22:16 +08:00
endif
2014-02-07 02:22:16 +08:00
ifeq ($(LSB_CS),precise)
2014-02-09 20:46:55 +08:00
CC_OPTS_LIBPROCPS = -lproc
2014-02-07 02:22:16 +08:00
else
2014-02-09 20:46:55 +08:00
CC_OPTS_LIBPROCPS = $(shell pkg-config libprocps --cflags --libs)
2014-02-07 02:22:16 +08:00
endif
2014-02-07 10:54:14 +08:00
2014-02-09 20:46:55 +08:00
NO_COLOR = \033[0m
OK_COLOR = \033[92m
ERROR_COLOR = \033[91m
WARN_COLOR = \033[93m
ACTION_COLOR = \033[95m
OK_STRING = $(OK_COLOR)
ERROR_STRING = $(ERROR_COLOR)
2014-06-30 20:43:49 +08:00
WARN_STRING = $(WARN_COLOR)