aboutsummaryrefslogtreecommitdiff
path: root/src/config/libobj.in
blob: 5e2a2c126fd827d787cfac311e50b32b1dc26e60 (plain)
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
### config/libobj.in
#
# Makefile fragment that builds object files for libraries.
#
# The following variables must be set in Makefile.in:
#
# STLIBOBJS	list of .o objects; this must not contain variable
#		references.

# Set to "OBJS.ST OBJS.SH OBJS.PF" or some subset thereof by
# configure; determines which types of object files get built.
OBJLISTS=@OBJLISTS@

# Note that $(LIBSRCS) *cannot* contain any variable references, or
# the suffix substitution will break on some platforms!
SHLIBOBJS=$(STLIBOBJS:.o=@SHOBJEXT@)
PFLIBOBJS=$(STLIBOBJS:.o=@PFOBJEXT@)

# "$(CC) -G", "$(LD) -Bshareable", etc.
LDCOMBINE=@LDCOMBINE@

# "-h $@", "-h lib$(LIBNAME).$(LIBMAJOR)", etc.
SONAME=@SONAME@

#
# rules to make various types of object files
#
PICFLAGS=@PICFLAGS@
PROFFLAGS=@PROFFLAGS@
.SUFFIXES: .c .so .po
.c.so:
	$(CC) $(DEFS) $(DEFINES) $(LOCALINCLUDES) $(PICFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.so.o && \
		$(MV) $*.so.o $*.so
.c.po:
	$(CC) $(DEFS) $(DEFINES) $(LOCALINCLUDES) $(PROFFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.po.o && \
		$(MV) $*.po.o $*.po

# rules to generate object file lists

OBJS.ST: $(STLIBOBJS)
	@echo $(STLIBOBJS) > $@

OBJS.SH: $(SHLIBOBJS)
	@echo $(SHLIBOBJS) > $@

OBJS.PF: $(PFLIBOBJS)
	@echo $(PFLIBOBJS) > $@

all-libobjs: $(OBJLISTS)

clean-libobjs:
	$(RM) OBJS.ST OBJS.SH OBJS.PF
	$(RM) $(STLIBOBJS)
	$(RM) $(SHLIBOBJS)
	$(RM) $(PFLIBOBJS)

Makefile: $(SRCTOP)/config/libobj.in

# clean-unix:: clean-libobjs
# all-unix:: all-libobjs

###
### end config/libobj.in