-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
131 lines (111 loc) · 3.92 KB
/
Makefile.in
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = 0.1.3
bindir = @bindir@
DESTDIR=/var/bpack/
bpack: src/error.o src/search.o src/terminal.o src/remove.o src/update.o src/main.o src/config.o src/installscript.o src/storage.o src/packinst.o src/version.o src/install.o src/package.o src/scan.o libs/hijack.so.1.0 src/qhttp.o src/sync.o
$(CXX) $(CXXFLAGS) src/sync.o src/error.o src/update.o src/qhttp.o src/terminal.o src/search.o src/remove.o src/main.o src/config.o src/installscript.o src/storage.o src/packinst.o src/version.o src/install.o src/package.o src/scan.o -o bpack
src/qhttp.o: src/qhttp.c src/qhttp.h
$(CC) -c $(CFLAGS) src/qhttp.c -o src/qhttp.o
src/terminal.o: src/terminal.cpp src/terminal.hpp
$(CXX) -c $(CXXFLAGS) src/terminal.cpp -o src/terminal.o
src/error.o: src/error.cpp src/error.hpp
$(CXX) -c $(CXXFLAGS) src/error.cpp -o src/error.o
src/search.o: src/search.cpp src/search.hpp
$(CXX) -c $(CXXFLAGS) src/search.cpp -o src/search.o
src/remove.o: src/remove.cpp src/remove.hpp
$(CXX) -c $(CXXFLAGS) src/remove.cpp -o src/remove.o
src/main.o: src/main.cpp
$(CXX) -c $(CXXFLAGS) src/main.cpp -o src/main.o
src/config.o: src/config.cpp src/config.hpp
$(CXX) -c $(CXXFLAGS) src/config.cpp -o src/config.o
src/installscript.o: src/installscript.cpp src/installscript.hpp
$(CXX) -c $(CXXFLAGS) src/installscript.cpp -o src/installscript.o
src/storage.o: src/storage.cpp src/storage.hpp
$(CXX) -c $(CXXFLAGS) src/storage.cpp -o src/storage.o
src/packinst.o: src/packinst.cpp src/packinst.hpp
$(CXX) -c $(CXXFLAGS) src/packinst.cpp -o src/packinst.o
src/version.o: src/version.cpp src/version.hpp
$(CXX) -c $(CXXFLAGS) src/version.cpp -o src/version.o
src/install.o: src/install.cpp src/install.hpp
$(CXX) -c $(CXXFLAGS) src/install.cpp -o src/install.o
src/package.o: src/package.cpp src/package.hpp
$(CXX) -c $(CXXFLAGS) src/package.cpp -o src/package.o
src/scan.o: src/scan.cpp src/scan.hpp
$(CXX) -c $(CXXFLAGS) src/scan.cpp -o src/scan.o
src/update.o: src/update.cpp src/update.hpp
$(CXX) -c $(CXXFLAGS) src/update.cpp -o src/update.o
src/sync.o: src/sync.cpp src/sync.hpp
$(CXX) -c $(CXXFLAGS) src/sync.cpp -o src/sync.o
clean:
rm -f src/*.o bpack
libs/hijack.so.1.0: src/hijack.c
mkdir -p libs/
$(CC) -fPIC -c src/hijack.c -fno-stack-protector
$(LD) -shared -soname hijack.so.1 -o libs/hijack.so.1.0 -lc hijack.o -ldl
install: bpack libs/hijack.so.1.0
mkdir -p $(DESTDIR)
mkdir -p $(DESTDIR)/installed
mkdir -p $(DESTDIR)/tarballs
mkdir -p $(DESTDIR)/packs
mkdir -p $(DESTDIR)/libs
mkdir -p $(DESTDIR)/options
mkdir -p $(DESTDIR)/deptree
cp -f bpack $(bindir)/bpack
cp -f libs/hijack.so.1.0 $(DESTDIR)/libs/
ln -sf $(bindir)/bpack $(bindir)/versioncmp
cp -f binpack $(bindir)/binpack
cp -f packmaker $(bindir)/packmaker
touch /etc/bpack.conf
echo -e "$(bindir)/bpack\n$(bindir)/binpack\n$(DESTDIR)/libs/hijack.so.1.0" > $(DESTDIR)/installed/bpack-$(VERSION)