blob: 203420c26f950abc820130062ead507e3bd7e569 (
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
|
prefix = /usr/local
PDP_VERSION=0.12.5-darcs
PDP_DIR = ../../include
PDP_OGL_DIR = ../include
CFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \
-Wall -W -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch -g
CPPFLAGS = -I$(PDP_DIR) -I$(PDP_OGL_DIR) -I/usr/X11R6/include -DPDP_VERSION=\"$(PDP_VERSION)\"
# CPPFLAGS = -I$(PD_DIR) -I$(PDP_DIR) -I$(PDP_OGL_DIR) -I/usr/X11R6/include
LDFLAGS = -lGL -lglut
TARGET=linux
PDP_OPENGL_LIBRARY_NAME=pdp_opengl.pd_$(TARGET)
#uncomment these for darwin:
#TARGET=darwin
#CPPFLAGS+=-I/sw/include
#PD_EXECUTABLE=/usr/local/bin/pd
#LDFLAGS = -lGL -lGLU -lglut -lX11 -L/sw/lib -L/usr/X11R6/lib
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $*.o -c $*.c
|