-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile.in
66 lines (54 loc) · 2.07 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
.PHONY: regressions amalgamated clean distribution
include @BUILD_DIR@/build/bcd.build
all:
$(MAKE) -C src all
amalgamated:
$(MAKE) -C src amalgamated
regressions: amalgamated
$(MAKE) -C regressions all
install-headers:
mkdir -p $(DESTDIR)$(HEADERS) || exit
cp $(SRC_DIR)/include/bcd.h $(DESTDIR)$(HEADERS) || exit
chmod 644 $(DESTDIR)$(HEADERS)/bcd.h || exit
install-so:
mkdir -p $(DESTDIR)$(LIBRARY)
cp $(BUILD_DIR)/src/libbcd.so $(DESTDIR)$(LIBRARY)/$(LDNAME_VERSION)
ln -sf $(LDNAME_VERSION) $(DESTDIR)$(LIBRARY)/$(LDNAME)
ln -sf $(LDNAME_VERSION) $(DESTDIR)$(LIBRARY)/$(LDNAME_MAJOR)
chmod 744 $(DESTDIR)$(LIBRARY)/$(LDNAME_VERSION) \
$(DESTDIR)$(LIBRARY)/$(LDNAME) \
$(DESTDIR)$(LIBRARY)/$(LDNAME_MAJOR)
cp $(BUILD_DIR)/src/libbcd_preload.so $(DESTDIR)$(LIBRARY)/$(LDNAME_PRELOAD_VERSION)
ln -sf $(LDNAME_PRELOAD_VERSION) $(DESTDIR)$(LIBRARY)/$(LDNAME_PRELOAD)
ln -sf $(LDNAME_PRELOAD_VERSION) $(DESTDIR)$(LIBRARY)/$(LDNAME_PRELOAD_MAJOR)
chmod 744 $(DESTDIR)$(LIBRARY)/$(LDNAME_PRELOAD_VERSION) \
$(DESTDIR)$(LIBRARY)/$(LDNAME_PRELOAD) \
$(DESTDIR)$(LIBRARY)/$(LDNAME_PRELOAD_MAJOR)
install-lib:
mkdir -p $(DESTDIR)$(LIBRARY)
cp $(BUILD_DIR)/src/libbcd.a $(DESTDIR)$(LIBRARY)/libbcd.a
chmod 644 $(DESTDIR)$(LIBRARY)/libbcd.a
install: all install-headers @INSTALL_LIBS@
mkdir -p $(DESTDIR)$(LIBRARY) || exit
mkdir -p $(DESTDIR)$(PKGCONFIG_DATA) || exit
chmod 755 $(DESTDIR)$(PKGCONFIG_DATA)
cp $(BUILD_DIR)/build/bcd.pc $(DESTDIR)$(PKGCONFIG_DATA)/bcd.pc || exit
@echo
@echo
@echo ---[ BCD has installed successfully.
uninstall:
rm -f $(DESTDIR)$(LIBRARY)/$(LDNAME_VERSION) \
$(DESTDIR)$(LIBRARY)/$(LDNAME) \
$(DESTDIR)$(LIBRARY)/$(LDNAME_MAJOR)
rm -f $(DESTDIR)$(LIBRARY)/libbcd.so* \
$(DESTDIR)$(LIBRARY)/libbcd.a
rm -f $(DESTDIR)$(HEADERS)/bcd.h
dist:
git archive --remote=$(BUILD_DIR) --format=tar --prefix=bcd-$(VERSION)/ HEAD \
| gzip > $(BUILD_DIR)/bcd-$(VERSION).tar.gz
distclean: clean
rm -f $(BUILD_DIR)/Makefile
rm -f $(BUILD_DIR)/build/bcd.pc
rm -f $(BUILD_DIR)/build/bcd.build
clean:
$(MAKE) -C src clean