6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # ident "%Z%%M% %I% %E% SMI"
27 #
28 # cmd/sendmail/libsm/Makefile
29 #
30
31 include ../../Makefile.cmd
32 include ../Makefile.cmd
33
34 INCPATH= -I. -I../src -I../include
35 CPPFLAGS= $(INCPATH) $(DBMDEF) $(CPPFLAGS.sm)
36
37 ARFLAGS= cq
38
39 OBJS= assert.o cf.o clock.o clrerr.o config.o debug.o errstring.o exc.o \
40 fclose.o feof.o ferror.o fflush.o fget.o findfp.o flags.o fopen.o \
41 fpos.o fprintf.o fpurge.o fput.o fread.o fscanf.o fseek.o fvwrite.o \
42 fwalk.o fwrite.o get.o heap.o ldap.o makebuf.o match.o mbdb.o \
43 memstat.o niprop.o path.o put.o refill.o rewind.o rpool.o setvbuf.o \
44 sem.o shm.o signal.o smstdio.o snprintf.o sscanf.o stdio.o \
45 strcasecmp.o strdup.o strerror.o strexit.o string.o stringf.o strio.o \
46 strl.o strrevcmp.o strto.o test.o ungetc.o util.o vasprintf.o \
47 vfprintf.o vfscanf.o vprintf.o vsnprintf.o wbuf.o wsetup.o xtrap.o
48
49 SRCS= $(OBJS:%.o=%.c)
50
51 TESTS= t-event t-exc t-rpool t-string t-smstdio t-match t-strio t-heap \
52 t-fopen t-strl t-strrevcmp t-path t-float t-scanf t-sem t-shm \
53 t-memstat t-qic
54
55 libsm= libsm.a
56
57 .KEEP_STATE:
58 all: $(libsm)
59
60 .PARALLEL: $(OBJS)
61
62 $(libsm): $(OBJS)
63 $(RM) $@
64 $(AR) $(ARFLAGS) $@ $(OBJS)
65
66 clean:
67 $(RM) $(OBJS) $(libsm) $(TESTS) foo t-smstdio.1
68
69 depend obj:
70
71 install: all
72
73 LDLIBS += -lldap
74
75 lint: lint_SRCS
76
|
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 include ../../Makefile.cmd
28 include ../Makefile.cmd
29
30 INCPATH= -I. -I../src -I../include
31 CPPFLAGS= $(INCPATH) $(DBMDEF) $(CPPFLAGS.sm)
32
33 ARFLAGS= cq
34
35 OBJS= assert.o cf.o clock.o clrerr.o config.o debug.o errstring.o exc.o \
36 fclose.o feof.o ferror.o fflush.o fget.o findfp.o flags.o fopen.o \
37 fpos.o fprintf.o fpurge.o fput.o fread.o fscanf.o fseek.o fvwrite.o \
38 fwalk.o fwrite.o get.o heap.o ldap.o makebuf.o match.o mbdb.o \
39 memstat.o niprop.o path.o put.o refill.o rewind.o rpool.o setvbuf.o \
40 sem.o shm.o signal.o smstdio.o snprintf.o sscanf.o stdio.o \
41 strcasecmp.o strdup.o strerror.o strexit.o string.o stringf.o strio.o \
42 strl.o strrevcmp.o strto.o test.o ungetc.o util.o vasprintf.o \
43 vfprintf.o vfscanf.o vprintf.o vsnprintf.o wbuf.o wsetup.o xtrap.o
44
45 SRCS= $(OBJS:%.o=%.c)
46
47 TESTS= t-event t-exc t-rpool t-string t-smstdio t-match t-strio t-heap \
48 t-fopen t-strl t-strrevcmp t-path t-float t-scanf t-sem t-shm \
49 t-memstat t-qic
50
51 libsm= libsm.a
52
53 CERRWARN += -_gcc=-Wno-type-limits
54
55 .KEEP_STATE:
56 all: $(libsm)
57
58 .PARALLEL: $(OBJS)
59
60 $(libsm): $(OBJS)
61 $(RM) $@
62 $(AR) $(ARFLAGS) $@ $(OBJS)
63
64 clean:
65 $(RM) $(OBJS) $(libsm) $(TESTS) foo t-smstdio.1
66
67 depend obj:
68
69 install: all
70
71 LDLIBS += -lldap
72
73 lint: lint_SRCS
74
|