Check-in [bd13c51e79]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Moved generation of version script into Makefile for enhanced release support
Timelines: family | ancestors | descendants | both | new-driver
Files: files | file ages | folders
SHA1: bd13c51e79950262d85b37aea3357b8537350adc
User & Date: rkeene 2013-03-11 18:51:49
Context
2013-03-11
19:21
Cleanup check-in: a759e2c3a1 user: rkeene tags: new-driver
18:51
Moved generation of version script into Makefile for enhanced release support check-in: bd13c51e79 user: rkeene tags: new-driver
2013-03-08
16:44
Updated to create libdact.a that can be linked to a shared object, and has stripped symbols check-in: 7a3071e176 user: rkeene tags: new-driver
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Makefile.in.

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
SHLIBOBJS = libdact_shr.o
SRCOBJS = $(LIBOBJS:.o=.c)

# Default build target
all: libdact.@SHOBJEXT@ libdact.@AREXT@

# Specific build rules
libdact.@SHOBJEXT@: $(SHLIBOBJS)
	$(CC) $(CFLAGS) $(SHOBJLDFLAGS) -o libdact.@SHOBJEXT@ $(LDFLAGS) $(SHLIBOBJS)
	@WEAKENSYMS@ libdact.@SHOBJEXT@
	@REMOVESYMS@ libdact.@SHOBJEXT@

libdact.@AREXT@: libdact_combined_shr.o
	@WEAKENSYMS@ libdact_combined_shr.o
	@REMOVESYMS@ libdact_combined_shr.o
	$(AR) cr libdact.@AREXT@ libdact_combined_shr.o
	$(RANLIB) libdact.@AREXT@

libdact_combined.c: $(SRCOBJS)
	cat $(SRCOBJS) > libdact_combined.c











# Generic build rules
%.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$^"

%_shr.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) -o "$@" -c "$^"







|












>
>
>
>
>
>
>
>
>
>







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
SHLIBOBJS = libdact_shr.o
SRCOBJS = $(LIBOBJS:.o=.c)

# Default build target
all: libdact.@SHOBJEXT@ libdact.@AREXT@

# Specific build rules
libdact.@SHOBJEXT@: $(SHLIBOBJS) libdact.vers
	$(CC) $(CFLAGS) $(SHOBJLDFLAGS) -o libdact.@SHOBJEXT@ $(LDFLAGS) $(SHLIBOBJS)
	@WEAKENSYMS@ libdact.@SHOBJEXT@
	@REMOVESYMS@ libdact.@SHOBJEXT@

libdact.@AREXT@: libdact_combined_shr.o
	@WEAKENSYMS@ libdact_combined_shr.o
	@REMOVESYMS@ libdact_combined_shr.o
	$(AR) cr libdact.@AREXT@ libdact_combined_shr.o
	$(RANLIB) libdact.@AREXT@

libdact_combined.c: $(SRCOBJS)
	cat $(SRCOBJS) > libdact_combined.c

libdact.vers: libdact.syms.in
	echo '{' > libdact.vers
	echo '  global:' >> libdact.vers
	for symbol in `cat libdact.syms.in | sed 's/^@''SYMPREFIX@//'`; do \
		echo "          $${symbol};"; \
	done >> libdact.vers
	echo '  local:' >> libdact.vers
	echo '          *;' >> libdact.vers
	echo '};' >> libdact.vers

# Generic build rules
%.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$^"

%_shr.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) -o "$@" -c "$^"

Changes to build/autogen.sh.

59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

		break
	fi
done

# Create "libdact.vers" (GNU ld version script) from "libdact.syms.in" which
# is a list of public symbols
echo '{' > libdact.vers
echo '  global:' >> libdact.vers
for symbol in `cat libdact.syms.in | sed 's/^@''SYMPREFIX@//'`; do
	echo "          ${symbol};"
done >> libdact.vers
echo '  local:' >> libdact.vers
echo '          *;' >> libdact.vers
echo '};' >> libdact.vers

# Terminate
exit 0







<
<
<
<
|
<
<
|



59
60
61
62
63
64
65




66


67
68
69
70

		break
	fi
done

# Create "libdact.vers" (GNU ld version script) from "libdact.syms.in" which
# is a list of public symbols




rm -f libdact.vers


make -f Makefile.in libdact.vers

# Terminate
exit 0