~ubuntu-branches/ubuntu/utopic/pd-iemlib/utopic

« back to all changes in this revision

Viewing changes to .pc/linking.patch/Make.include

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, IOhannes m zmölnig, Felipe Sateler
  • Date: 2013-12-30 11:48:46 UTC
  • Revision ID: package-import@ubuntu.com-20131230114846-zro0zuk4aoej44jo
Tags: 1.20.1-1
[ IOhannes m zmölnig ]
* Initial release (Closes: #603183)

[ Felipe Sateler ]
* Add myself to Uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
current: all
 
2
 
 
3
PD_DEFINES = -DPD -DUNIX
 
4
 
 
5
#################################
 
6
# path to private Pd-headers 
 
7
PDSOURCE ?= /usr/local/src/pd/src
 
8
 
 
9
# path to iemlib.h
 
10
IEMLIB_INCLUDE = ../../include
 
11
 
 
12
#define to true if private Pd-header g_canvas.h is in out search-path
 
13
PD_DEFINES += -DHAVE_G_CANVAS_H 
 
14
#################################
 
15
 
 
16
 
 
17
.SUFFIXES: .pd_linux
 
18
 
 
19
EXT = pd_linux
 
20
 
 
21
STRIP = strip
 
22
 
 
23
PD_LDFLAGS = --export-dynamic -shared $(LD_FLAGS)
 
24
PD_LIB = -lm -lc $(LIB)
 
25
 
 
26
#select either the DBG and OPT compiler flags below:
 
27
 
 
28
DBG_CFLAGS=-W -Wno-parentheses -Wno-switch -Wno-unused
 
29
CFLAGS=-O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
 
30
PD_CFLAGS = $(PD_DEFINES) -fPIC -fno-stack-protector $(DBG_CFLAGS) $(CFLAGS)
 
31
 
 
32
PD_INCLUDES = -I. -I$(IEMLIB_INCLUDE) -I$(PDSOURCE) -I../../../../pd/src
 
33
 
 
34
# the sources
 
35
#SRC = $(sort $(filter %.c, $(wildcard *.c)))
 
36
        
 
37
OBJ = $(SRC:.c=.o) 
 
38
 
 
39
#
 
40
#  ------------------ targets ------------------------------------
 
41
#
 
42
 
 
43
clean:
 
44
        -rm -f ../../lib/$(TARGET).$(EXT) $(TARGET).$(EXT)
 
45
        -rm -f *.o
 
46
 
 
47
all: $(OBJ)
 
48
        @echo :: $(OBJ)
 
49
        $(LD) $(PD_LDFLAGS) -o $(TARGET).$(EXT) *.o $(PD_LIB)
 
50
        $(STRIP) --strip-unneeded $(TARGET).$(EXT)
 
51
        -cp $(TARGET).$(EXT) ../../lib/
 
52
 
 
53
$(OBJ) : %.o : %.c
 
54
        touch $*.c
 
55
        $(CC) $(PD_CFLAGS) $(PD_INCLUDES) -c -o $*.o $*.c
 
56