blob: 694b79e4b1b0aabdd6d500a41d302294c84f8f48 (
plain)
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
|
# pd's directory
PD_DIR = /home/tom/pd/distro/pd
PDP_DIR = /home/tom/pd/packet
#PD_DIR = /usr/local/pd
#PDP_DIR = /usr/local/pdp
# uncomment for philips webcam support
# PDP_PWC = -DHAVE_V4LPWC
# specify target
#PDP_TARGET = linux
PDP_TARGET = linux_mmx
#################################################
PDP_VERSION = 0.8.3
PDP_DEFINES = $(PDP_PWC)
# build flags
#SDL_CFLAGS := $(shell sdl-config --cflags)
#SDL_LDFLAGS := $(shell sdl-config --libs)
SDL_FLAGS = -D_REENTRANT
SDL_LDFLAGS = -lSDL
PDP_INCLUDE = -I$(PD_DIR)/src -I. -I/usr/X11R6/include -I../include
PDP_LIBS = -L/usr/X11R6/lib -lX11 -lXv -lXext -lm -lquicktime -ldl $(SDL_LDFLAGS)
PDP_AFLAGS =
#--gstabs
PDP_CFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \
-Wall -W -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch $(PDP_DEFINES)\
-DPDP_VERSION=\"$(PDP_VERSION)\" \
-g $(SDL_CFLAGS)
# -Wshadow
# compiler and assembler
#CC = gcc-3.2
CC = gcc
AS = as
# build rules
.c.o:
$(CC) $(PDP_CFLAGS) $(PDP_INCLUDE) -o $*.o -c $*.c
.s.o:
$(AS) -o $*.o $*.s $(PDP_AFLAGS)
|