File: config.mk

package info (click to toggle)
effectv 0.3.11-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 748 kB
  • ctags: 1,316
  • sloc: ansic: 12,575; makefile: 216; perl: 38
file content (90 lines) | stat: -rw-r--r-- 2,054 bytes parent folder | download | duplicates (3)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
###Common configuration file for Makefiles of EffecTV

### Install
## the following lines set destination directory for a compiled program and
## manual page.
prefix = /usr
exec_prefix = ${prefix}

bindir = $(DESTDIR)${exec_prefix}/bin
mandir = $(DESTDIR)${prefix}/man

### Architecture
## choose your architecture (only one)
## Linux for intel architecture
ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
## Linux for PlayStation2
# ARCH = ps2-linux

### Multimedia extension code set
## MMX
## comment out next line if you want not to enable MMX operation.
ifeq ($(ARCH), i386)
USE_MMX = yes
endif

### NASM
## comment out next line if you want not to use NASM.
ifeq ($(ARCH), i386)
USE_NASM = yes
endif

### vloopback
## comment out next line if you want to disable vloopback support.
USE_VLOOPBACK = yes

## choose vloopback version (only one).
# version 0.91 or later
VLOOPBACK_VERSION = 91
## version 0.83 or former (obsolete!!)
# VLOOPBACK_VERSION = 83

### Default settings
## Set a default device file name of the video input.
DEFAULT_VIDEO_DEVICE = "/dev/video0"


### Memory debug
#MEM_DEBUG = yes

###############################################################################
### none user configurable settings

## architecture dependent settings
## i686-linux
#ifeq ($(ARCH), i686-linux)
#CONFIG.arch = -DI686
#CFLAGS.opt = -mpentiumpro -O3 -fomit-frame-pointer -funroll-loops
CFLAGS.opt = -O3 -fomit-frame-pointer -funroll-loops
#endif

## PlayStaion2
ifeq ($(ARCH), ps2-linux)
CONFIG.arch = -DPS2
CFLAGS.opt = -O3 -fomit-frame-pointer -funroll-loops
USE_NASM = no
USE_MMX = no
USE_VLOOPBACK = no
CONFIG += -DRGB_BGR_CONVERSION
LIBS.extra = -ldl -L/usr/X11R6/lib -lX11 -lXext
endif

ifeq ($(USE_NASM), yes)
CONFIG += -DUSE_NASM
endif

ifeq ($(USE_MMX), yes)
CONFIG += -DUSE_MMX
endif

ifeq ($(USE_VLOOPBACK), yes)
CONFIG += -DUSE_VLOOPBACK
CONFIG += -DVLOOPBACK_VERSION=$(VLOOPBACK_VERSION)
endif

CONFIG += -DDEFAULT_VIDEO_DEVICE=\"$(DEFAULT_VIDEO_DEVICE)\"

ifeq ($(MEM_DEBUG), yes)
CONFIG += -DMEM_DEBUG
CFLAGS.opt = -g -O2
endif