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

« back to all changes in this revision

Viewing changes to lib/libOSSlib/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
OBJS=libmain.o midiparser.o play_event.o
 
2
INSTALLLIB=/lib
 
3
LDFLAGS=-shared -fPIC
 
4
CFLAGS+=-fPIC
 
5
#LDFLAGS=-Bdynamic
 
6
AROPTS=rc
 
7
AR=ar
 
8
 
 
9
all:    
 
10
        sh ./compile.sh $(INSTALLLIB) "$(CC)" "$(CFLAGS)" "$(MAKE)"
 
11
 
 
12
install: all
 
13
        cp libOSSlib.* $(INSTALLLIB)
 
14
        cp drums.o3 std.o3 /etc
 
15
 
 
16
static: libOSSlib.a
 
17
        cp libOSSlib.a $(INSTALLLIB)
 
18
 
 
19
libOSSlib.so:   $(OBJS)
 
20
        ${CC} $(LDFLAGS) -o libOSSlib.so $(OBJS)
 
21
 
 
22
dep:
 
23
 
 
24
clean:
 
25
        rm -f *.o *.so x y z core *.a
 
26
 
 
27
libOSSlib.a:    $(OBJS)
 
28
        $(AR) $(AROPTS) libOSSlib.a $(OBJS)
 
29
        #-ranlib libOSSlib.a