Check-in [7a3071e176]

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

Overview
Comment:Updated to create libdact.a that can be linked to a shared object, and has stripped symbols
Timelines: family | ancestors | descendants | both | new-driver
Files: files | file ages | folders
SHA1: 7a3071e17651c7bb1b44b46685d374fa9cdd0fd2
User & Date: rkeene 2013-03-08 16:44:24
Context
2013-03-11
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
2013-03-07
21:53
Makefile now has targets that work check-in: dd614d904f user: rkeene tags: new-driver
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to 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

CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
SHOBJFLAGS = @SHOBJFLAGS@
SHOBJLDFLAGS = @SHOBJLDFLAGS@


prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@


LIBOBJS = libdact.o
SHLIBOBJS = libdact_shr.o



all: libdact.@SHOBJEXT@ libdact.@AREXT@


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

libdact.@AREXT@: $(LIBOBJS)


	$(AR) cr libdact.@AREXT@ $(LIBOBJS)
	$(RANLIB) libdact.@AREXT@





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

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




libdact.o: libdact.c



clean:
	rm -f $(LIBOBJS) $(SHLIBOBJS)
	rm -f libdact.@SHOBJEXT@ libdact.@AREXT@ dact@EXE@


distclean: clean
	rm -f config.h Makefile libdact.syms
	rm -f config.status config.log

mrproper: distclean
	./build/autogen.sh distclean


.PHONY: all clean distclean mrproper
>









>





>


>

>


>





|
>
>
|


>
>
>
>






>
>
>

>

>



>








>

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
# Tools
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
SHOBJFLAGS = @SHOBJFLAGS@
SHOBJLDFLAGS = @SHOBJLDFLAGS@

# Paths
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@

# Target objects
LIBOBJS = libdact.o
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 "$^"

# Dependencies
libdact_combined.o: libdact_combined.c
libdact_combined_shr.o: libdact_combined.c
libdact.o: libdact.c
libdact_shr.o: libdact.c

# Cleanup targets
clean:
	rm -f $(LIBOBJS) $(SHLIBOBJS)
	rm -f libdact.@SHOBJEXT@ libdact.@AREXT@ dact@EXE@
	rm -f libdact_combined_shr.o libdact_combined.c

distclean: clean
	rm -f config.h Makefile libdact.syms
	rm -f config.status config.log

mrproper: distclean
	./build/autogen.sh distclean

# Make directive targets
.PHONY: all clean distclean mrproper