forked from coin3d/superglu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
96 lines (81 loc) · 2.49 KB
/
Makefile.am
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
SUBDIRS = include libnurbs libtess libutil .
EXTRA_DIST = \
cfg/genheader.pl \
specs/glu.spec \
specs/enumglu.spec \
include/gluos.h
if BUILD_WITH_MSVC
lib_LIBRARIES = @[email protected]
else
lib_LTLIBRARIES = lib@[email protected]
endif
lib@LIBPREFIX@GLU_la_SOURCES =
lib@LIBPREFIX@GLU_la_LIBADD = \
libnurbs/interface/libinterface.la \
libnurbs/internals/libinternals.la \
libnurbs/nurbtess/libnurbtess.la \
libtess/libtess.la \
libutil/libutil.la
lib@LIBPREFIX@GLU_la_LDFLAGS = \
-no-undefined \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
@LIBPREFIX@GLU_lib_SOURCES =
@LIBPREFIX@GLU_lib_LIBADD = \
libnurbs/interface/interface.lst \
libnurbs/internals/internals.lst \
libnurbs/nurbtess/nurbtess.lst \
libtess/tess.lst \
libutil/util.lst
@[email protected]: Makefile \
$(lib@LIBPREFIX@GLU_lib_OBJECTS) \
$(lib@LIBPREFIX@GLU_lib_DEPENDENCIES) \
@basename="@LIBPREFIX@GLU"; \
rm -f "$$basename.dll" "$$basename.lib"; \
echo "Linking $$basename.lib..."; \
echo $(CC) $(LDFLAGS) $(LIBFLAGS) \
$(@LIBPREFIX@GLU_lib_OBJECTS) \
$(@LIBPREFIX@GLU_lib_LIBADD) $(LIBS); \
$(CC) $(LDFLAGS) $(LIBFLAGS) \
$(@LIBPREFIX@GLU_lib_OBJECTS) \
$(@LIBPREFIX@GLU_lib_LIBADD) $(LIBS);
# This file is need when superglu is used from Coin.
@[email protected]: $(@LIBPREFIX@GLU_lib_LIBADD)
@echo "Linking $@..."; \
rm -f $@; \
for i in $(@LIBPREFIX@GLU_lib_LIBADD); do \
LSTDIRCAT=`dirname $$i`; \
cat $$i | sed s%^%$$LSTDIRCAT/% >> $@; \
done
# **************************************************************************
install-exec-local:
@basename="@LIBPREFIX@GLU"; \
for ext in dll pdb; do \
file="$$basename.$$ext"; \
if test -s "$$file"; then \
$(mkinstalldirs) "$(DESTDIR)$(bindir)"; \
echo $(INSTALL_PROGRAM) "$$file" "$(DESTDIR)$(bindir)/$$file"; \
$(INSTALL_PROGRAM) "$$file" "$(DESTDIR)$(bindir)/$$file"; \
fi \
done
install-data-local:
@basename="@LIBPREFIX@GLU"; \
for ext in lib; do \
file="$$basename.$$ext"; \
if test -s "$$file"; then \
$(mkinstalldirs) "$(DESTDIR)$(libdir)"; \
echo $(INSTALL_PROGRAM) "$$file" "$(DESTDIR)$(libdir)/$$file"; \
$(INSTALL_PROGRAM) "$$file" "$(DESTDIR)$(libdir)/$$file"; \
fi \
done
uninstall-local:
@basename="@LIBPREFIX@GLU"; \
for file in \
"$(DESTDIR)$(bindir)/$$basename.dll" \
"$(DESTDIR)$(bindir)/$$basename.pdb" \
"$(DESTDIR)$(libdir)/$$basename.lib"; do \
if test -f "$$file"; then \
echo " rm -f" "$$file"; \
rm -f "$$file"; \
fi \
done;