Debian Codegraph @

Makefile

raw symbols SCIP
1 # Make file for parallel BZIP2
2 SHELL = /bin/sh
3
4
5 # Compiler to use
6 # CXX = g++
7
8
9 # Thread-related flags
10 # On some compilers -pthreads
11 CXXFLAGS_PTHREAD = -pthread
12
13 # Comment out CXXFLAGS line below to disable pthread semantics in code
14 CXXFLAGS_PTHREAD += -D_POSIX_PTHREAD_SEMANTICS
15
16 LDLIBS_PTHREAD = -lpthread
17
18
19 # Optimization flags
20 CXXFLAGS += $(CPPFLAGS)
21
22 #CXXFLAGS += -g -Wall
23 #CXXFLAGS += -ansi
24 #CXXFLAGS += -pedantic
25 #CXXFLAGS += -std=c++0x
26
27 # Comment out CXXFLAGS line below for compatability mode for 32bit file sizes
28 # (less than 2GB) and systems that have compilers that treat int as 64bit
29 # natively (ie: modern AIX)
30 CXXFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
31
32 # Uncomment CXXFLAGS line below if you want to compile pbzip2 without load
33 # average support for systems that do not support it
34 #CXXFLAGS += -DPBZIP_NO_LOADAVG
35
36 # Uncomment CXXFLAGS line below to get debug output
37 #CXXFLAGS += -DPBZIP_DEBUG
38
39 # Comment out CXXFLAGS line below to disable Thread stack size customization
40 CXXFLAGS += -DUSE_STACKSIZE_CUSTOMIZATION
41
42 # Comment out CXXFLAGS line below to explicity set ignore trailing garbage
43 # default behavior: 0 - disabled; 1 - enabled (ignore garbage by default)
44 # If IGNORE_TRAILING_GARBAGE is not defined: behavior is automatically determined
45 # by program name: bzip2, bunzip2, bzcat - ignore garbage; otherwise - not.
46 #CXXFLAGS += -DIGNORE_TRAILING_GARBAGE=1
47
48 # Add thread-related flags
49 CXXFLAGS += $(CXXFLAGS_PTHREAD)
50
51
52
53 # External libraries
54 LDLIBS = -lbz2
55 LDLIBS += $(LDLIBS_PTHREAD)
56
57
58 # Where you want pbzip2 installed when you do 'make install'
59 PREFIX = /usr
60 DESTDIR =
61
62
63 all: pbzip2
64
65 # Standard pbzip2 compile
66 pbzip2: pbzip2.cpp BZ2StreamScanner.cpp ErrorContext.cpp
67 $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o pbzip2 $(LDLIBS)
68
69 # Choose this if you want to compile in a static version of the libbz2 library
70 pbzip2-static: pbzip2.cpp BZ2StreamScanner.cpp ErrorContext.cpp libbz2.a
71 $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o pbzip2 -I. -L. $(LDLIBS)
72
73 # Install the binary pbzip2 program and man page
74 install: pbzip2
75 if ( test ! -d $(DESTDIR)$(PREFIX)/bin ) ; then mkdir -p $(DESTDIR)$(PREFIX)/bin ; fi
76 if ( test ! -d $(DESTDIR)$(PREFIX)/share ) ; then mkdir -p $(DESTDIR)$(PREFIX)/share ; fi
77 if ( test ! -d $(DESTDIR)$(PREFIX)/share/man ) ; then mkdir -p $(DESTDIR)$(PREFIX)/share/man ; fi
78 if ( test ! -d $(DESTDIR)$(PREFIX)/share/man/man1 ) ; then mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 ; fi
79 cp -f pbzip2 $(DESTDIR)$(PREFIX)/bin/pbzip2
80 chmod a+x $(DESTDIR)$(PREFIX)/bin/pbzip2
81 cp -f pbzip2.1 $(DESTDIR)$(PREFIX)/share/man/man1
82 chmod a+r $(DESTDIR)$(PREFIX)/share/man/man1/pbzip2.1
83
84 clean:
85 rm -f *.o pbzip2