Debian Codegraph @

librplay/Makefile.in

raw ◀ ▶
2 Debian patches touch this file
1 include @RPLAY_TOP@/Makefile.config
2
3 srcdir = @srcdir@
4 VPATH = @srcdir@
5
6 INSTALL = @INSTALL@
7 INSTALL_PROGRAM = @INSTALL_PROGRAM@
8 INSTALL_DATA = @INSTALL_DATA@
9 MKINSTALLDIRS= @srcdir@/../mkinstalldirs
10
•11 CPPFLAGS+= $(CC_OPTIONS) -I. -I../include -I@srcdir@/../include @DEFS@
•12 LDFLAGS+= $(LD_OPTIONS) -shared -Xlinker -soname -Xlinker librplay.so.3 @LDFLAGS@
13
14 .c.o:
15 $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
16
17 .SUFFIXES: .lo
18 .c.lo:
19 $(CC) -c -fPIC $(CPPFLAGS) $(CFLAGS) -o $@ $<
20
21 TARGET= $(LIBRPLAY_NAME)
22 SRCS= rplay.c rptp.c async.c
23 OBJS= rplay.o rptp.o async.o
24 SHAREDOBJS= rplay.lo rptp.lo async.lo
25
26 all: $(TARGET) librplay.so
27
28 #
29 # Use the following for SunOS 4.1.x, Solaris 2.x, Linux, NetBSD
30 #
31 $(TARGET): $(OBJS)
32 $(AR) rcv $@ $?
33 $(RANLIB) $@
34
35 librplay.so: $(SHAREDOBJS)
•36 $(CC) -o $@.@RPLAY_VERSION@ $(SHAREDOBJS) $(LDFLAGS)
37 ln -fs $@.@RPLAY_VERSION@ [email protected]
38 ln -fs $@.@RPLAY_VERSION@ $@
39
40
41 #
42 # For HP-UX comment above and uncomment below.
43 #
44 #CFLAGS= +z
45 #
46 #$(TARGET): $(OBJS)
47 # ld -b -s +FPD -o $@ $(OBJS)
48 # -$(MKINSTALLDIRS) $(libdir)
49 # -$(INSTALL) $@ $(libdir)
50 # -chmod a+rx $(libdir) $(libdir)/$@
51 #
52
53 install: all
54 $(MKINSTALLDIRS) $(libdir)
55 $(INSTALL_DATA) $(TARGET) $(libdir)
•56 $(INSTALL_DATA) librplay.so.@RPLAY_VERSION@ $(libdir)
57 (cd $(libdir) && ln -s librplay.so.@RPLAY_VERSION@ librplay.so.3)
58 (cd $(libdir) && ln -s librplay.so.@RPLAY_VERSION@ librplay.so)
59
60 uninstall:
61 $(RM) $(libdir)/$(TARGET)
62 $(RM) $(libdir)/librplay.so
63
64 clean:
•65 $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so* a.out core *~ *.bak *.orig TAGS
66
67 distclean: clean
68 $(RM) Makefile
69
70 tags:
71 $(TAGS) *.[ch]
72
73 TAGS: tags
74
75 etags: tags
76
77 depend:
78 $(MAKEDEPEND) -- $(CPPFLAGS) $(CFLAGS) -- $(SRCS)
79