File: Makefile.in

package info (click to toggle)
cdparanoia 3.10.2+debian-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,904 kB
  • sloc: ansic: 8,026; sh: 2,642; makefile: 61
file content (109 lines) | stat: -rw-r--r-- 3,087 bytes parent folder | download | duplicates (5)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

###############################################################################
# DO NOT EDIT BELOW! ##########################################################
# (unless, of course, you know what you are doing :) ##########################

VERSION=10.2
VPATH=@srcdir@
srcdir=@srcdir@

@SET_MAKE@
FLAGS=@TYPESIZES@ @CFLAGS@
OPT=@OPT@ $(FLAGS)
DEBUG=@DEBUG@ $(FLAGS)
CC=@CC@
LD=@CC@
LDFLAGS=@LDFLAGS@ $(FLAGS)
AR=@AR@
RANLIB=@RANLIB@
INSTALL=@INSTALL@
prefix=@prefix@
exec_prefix=@exec_prefix@
BINDIR=@bindir@
MANDIR=@mandir@
INCLUDEDIR=@includedir@
LIBDIR=@libdir@
PWD = $(shell pwd)

OFILES = main.o report.o header.o buffering_write.o cachetest.o

export STATIC 
export VERSION

ifeq ($(STATIC),TRUE)
	LIBS = interface/libcdda_interface.a paranoia/libcdda_paranoia.a \
		-static -lm -lrt @LIBCAM@
	LIBDEP = interface/libcdda_interface.a paranoia/libcdda_paranoia.a
else
	LIBS = -lcdda_interface -lcdda_paranoia -lm -lrt @LIBCAM@
	LIBDEP = interface/libcdda_interface.so paranoia/libcdda_paranoia.so
endif


all: 	
	cd interface && $(MAKE) all
	cd paranoia && $(MAKE) all
	$(MAKE) cdparanoia CFLAGS="$(OPT)" 

debug:  
	cd interface && $(MAKE) debug
	cd paranoia && $(MAKE) debug
	$(MAKE) cdparanoia CFLAGS="$(DEBUG)" STATIC=TRUE

test:	
	cd interface && $(MAKE) all
	cd paranoia && $(MAKE) test

lib:	
	cd interface && $(MAKE) lib
	cd paranoia && $(MAKE) lib

slib:
	cd interface && $(MAKE) slib
	cd paranoia && $(MAKE) slib

install:
	$(INSTALL) -d -m 0755 $(BINDIR)
	$(INSTALL) -m 755 $(srcdir)/cdparanoia $(BINDIR)
	$(INSTALL) -d -m 0755 $(MANDIR)
	$(INSTALL) -d -m 0755 $(MANDIR)/man1
	$(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(MANDIR)/man1
	$(INSTALL) -d -m 0755 $(INCLUDEDIR)
	$(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(INCLUDEDIR)
	$(INSTALL) -d -m 0755 $(LIBDIR)
	$(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(LIBDIR)
	$(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(LIBDIR)
	$(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(INCLUDEDIR)
	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(LIBDIR)
	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(LIBDIR)
	$(INSTALL) -m 0644 $(srcdir)/utils.h $(INCLUDEDIR)
	ln -fs libcdda_interface.so.0.$(VERSION) \
		$(LIBDIR)/libcdda_interface.so.0
	ln -fs libcdda_interface.so.0.$(VERSION) \
		$(LIBDIR)/libcdda_interface.so
	ln -fs libcdda_paranoia.so.0.$(VERSION) \
		$(LIBDIR)/libcdda_paranoia.so.0
	ln -fs libcdda_paranoia.so.0.$(VERSION) \
		$(LIBDIR)/libcdda_paranoia.so

cdparanoia:	$(OFILES) $(LIBDEP)
		$(LD) $(CFLAGS) $(LDFLAGS) $(OFILES) \
		-L$(PWD)/paranoia -L$(PWD)/interface \
		-o cdparanoia $(LIBS)

.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
	cd interface && $(MAKE) clean
	cd paranoia && $(MAKE) clean
	-rm -f cdparanoia *~ config.* *.o *.wav *.aifc *.raw \
		verify_test core gmon.out

distclean:
	cd interface && $(MAKE) distclean
	cd paranoia && $(MAKE) distclean
	-rm -f cdparanoia *~ config.* *.o *.wav *.aifc *.raw test.file \
		Makefile verify_test core gmon.out

.PHONY: all debug test lib slib install clean distclean