aboutsummaryrefslogtreecommitdiff
path: root/Makefile.config
blob: ab45cdce131829f9b0ba1c3de49b89674d86104e (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
# 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-test-2
PDP_DEFINES = $(PDP_PWC)

# build flags

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
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
# -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)