forked from paule32/TurboVison_4_Cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
103 lines (76 loc) · 2.45 KB
/
Makefile
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
#!/usr/bin/make
#
# Copyright (c) 2003-2004 by Salvador E. Tropea.
# Covered by the GPL license.
#
ifeq ($(prefix),)
prefix=/usr
endif
ifeq ($(INSTALL),)
INSTALL=install
endif
EXE_EXT=
libdir=$(prefix)/lib
OS=UNIX
export
.PHONY: rhtv-config$(EXE_EXT) dynamic-lib install-dynamic install-headers install-config clean \
intl-dummy examples
all: rhtv-config$(EXE_EXT) dynamic-lib intl-dummy
dynamic-lib: intl-dummy
$(MAKE) DYNAMIC_LIB=1 -C makes -f librhtv.mkf
-cd makes; rm -f librhtv.so; ln -s librhtv.so.2.2.1 librhtv.so
-cd makes; rm -f librhtv.so.2; ln -s librhtv.so.2.2.1 librhtv.so.2
intl-dummy:
$(MAKE) -C intl/dummy
cp intl/dummy/libtvfintl.a makes
examples:
$(MAKE) -C examples
rhtv-config$(EXE_EXT): rhtv-config.c include/tv/configtv.h
gcc-5 -o rhtv-config$(EXE_EXT) -Iinclude rhtv-config.c
install-headers:
$(INSTALL) -d -m 0755 $(prefix)/include/rhtvision
rm -f $(prefix)/include/rhtvision/*.h
$(INSTALL) -m 0644 include/*.h $(prefix)/include/rhtvision
$(INSTALL) -d -m 0755 $(prefix)/include/rhtvision/tv
$(INSTALL) -m 0644 include/tv/*.h $(prefix)/include/rhtvision/tv
$(INSTALL) -d -m 0755 $(prefix)/include/rhtvision/tv/linux
$(INSTALL) -m 0644 include/tv/linux/*.h $(prefix)/include/rhtvision/tv/linux
$(INSTALL) -d -m 0755 $(prefix)/include/rhtvision/tv/x11
$(INSTALL) -m 0644 include/tv/x11/*.h $(prefix)/include/rhtvision/tv/x11
$(INSTALL) -d -m 0755 $(prefix)/include/rhtvision/cl
$(INSTALL) -m 0644 include/cl/*.h $(prefix)/include/rhtvision/cl
install-dynamic: dynamic-lib
$(INSTALL) -d -m 0755 $(libdir)
rm -f $(libdir)/librhtv.so
rm -f $(libdir)/librhtv.so.2
rm -f $(libdir)/librhtv.so.2.2.1
cd $(libdir); ln -s librhtv.so.2.2.1 librhtv.so
$(INSTALL) -m 0644 makes/librhtv.so.2.2.1 $(libdir)
-ldconfig
install-intl-dummy: intl-dummy
$(INSTALL) -d -m 0755 $(libdir)
$(INSTALL) -m 0644 intl/dummy/libtvfintl.a $(libdir)
install-config:
$(INSTALL) -d -m 0755 $(prefix)/bin
$(INSTALL) -m 0755 rhtv-config$(EXE_EXT) $(prefix)/bin
install: install-dynamic install-headers install-intl-dummy install-config
clean:
rm -f makes/librhtv.so*
rm -f makes/obj/*.o
rm -f makes/obj/*.lo
rm -f makes/librhtv.a
rm -f compat/obj/*.o
rm -f compat/obj/*.lo
rm -f intl/dummy/*.o
rm -f intl/dummy/*.lo
rm -f intl/dummy/*.a
-$(MAKE) -C examples clean
-$(MAKE) -C intl clean
rm -f configure.cache
rm -f rhtv-config$(EXE_EXT)
#
# For compatibility with automake:
# needed to 'make dist' of tiger
#
distdir: clean
@cp -pR * $(distdir)