~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

« back to all changes in this revision

Viewing changes to tutorials/sndkit/dsp/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-16 20:37:48 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110616203748-jbrxik6ql33z54co
Tags: 4.2-build2004-1ubuntu1
* Merge from Debian unstable.
  - Supports our current kernel (LP: #746048)
  Remaining changes:
  - debian/oss4-dkms.dkms.in: s/source/build/ in Kernel headers paths.
* ld-as-needed.patch: Re-order CC arguments to enable building with ld
  --as-needed (LP: #770972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#CC     = gcc
 
2
#CFLAGS = -O6 -m486 -funroll-loops -Wall
 
3
CFLAGS  = -O -I../../../include
 
4
#LD     = gcc
 
5
LD      = cc
 
6
#LDFLAGS        = -s -N
 
7
LDFLAGS = -s 
 
8
 
 
9
INSTALLDIR      = /usr/local/bin
 
10
 
 
11
.c.o:
 
12
#       $(CC) -c $(CFLAGS) -o $*.o $<
 
13
        $(CC) -c $(CFLAGS) $<
 
14
 
 
15
all: srec
 
16
 
 
17
install: all
 
18
        cp srec $(INSTALLDIR)
 
19
        ln -sf $(INSTALLDIR)/srec $(INSTALLDIR)/splay
 
20
        chown root $(INSTALLDIR)/splay $(INSTALLDIR)/srec
 
21
        chmod 755 $(INSTALLDIR)/splay $(INSTALLDIR)/srec
 
22
        cd str;make install
 
23
 
 
24
srec: recplay.o help.o
 
25
        $(LD) $(LDFLAGS) recplay.o help.o -o srec
 
26
 
 
27
clean:
 
28
        rm -f $(OBJS) *.o srec a.out core
 
29
        cd str;make clean
 
30
 
 
31
recplay.o: recplay.c