4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 include ..
/Makefile.cmd
29 PROG1
= refer addbib lookbib sortbib
30 PROG2
= roffbib indxbib
32 PROG
= $(PROG1
) $(PROG2
)
34 OBJS
= addbib.o deliv2.o glue1.o glue2.o glue3.o glue4.o \
35 glue5.o hunt1.o hunt2.o hunt3.o hunt5.o hunt6.o \
36 hunt7.o hunt8.o inv1.o inv2.o inv3.o \
37 inv5.o inv6.o lookbib.o mkey1.o mkey2.o mkey3.o \
38 refer..o refer0.o refer1.o refer2.o refer3.o refer4.o \
39 refer5.o refer6.o refer7.o refer8.o
shell.o sortbib.o \
43 # for messaging catalog
45 POFILES
= $(OBJS
:%.o
=%.po
)
48 CERRWARN
+= -_gcc
=-Wno-implicit-function-declaration
49 CERRWARN
+= -_gcc
=-Wno-parentheses
50 CERRWARN
+= -_gcc
=-Wno-unused-variable
51 CERRWARN
+= -_gcc
=-Wno-uninitialized
53 CLOBBERFILES
+= $(PROG3
)
55 addbib.po
:= XGETFLAGS
+= -a
-x addbib.xcl
60 REFDIR
= $(ROOTLIB
)/refer
61 TMACDIR
= $(ROOTSHLIB
)/tmac
62 #Don't re-install dir already installed by Targetdirs
63 #ROOTDIRS = $(REFDIR) $(TMACDIR)
68 REFDIRPROG
= $(PROG3
:%=$(REFDIR
)/%)
69 IOTXTS
= $(OTXTS
:%=$(TMACDIR
)/%)
71 $(IOTXTS
):= FILEMODE
= 0644
74 install:= TARGET
= install
76 clobber:= TARGET
= clobber
78 mkey
:= POBJS
= mkey1.o mkey2.o mkey3.o deliv2.o
79 inv
:= POBJS
= inv1.o inv2.o inv3.o inv5.o inv6.o deliv2.o
80 hunt
:= POBJS
= hunt1.o hunt2.o hunt3.o hunt5.o hunt6.o \
81 hunt7.o glue5.o refer3.o
shell.o \
82 deliv2.o hunt8.o glue4.o tick.o
83 refer
:= POBJS
= glue1.o refer1.o refer2.o refer4.o refer5.o \
84 refer6.o mkey3.o refer7.o refer8.o hunt2.o \
85 hunt3.o deliv2.o hunt5.o hunt6.o hunt8.o \
86 glue3.o hunt7.o glue2.o glue4.o \
87 glue5.o refer0.o
shell.o
88 addbib
:= POBJS
= addbib.o
89 lookbib
:= POBJS
= lookbib.o
90 sortbib
:= POBJS
= sortbib.o
96 all: $(PROG
) $(PROG3
) $(OTXTS
)
98 $(PROG1
) $(PROG3
): $$(POBJS
)
99 $(LINK.c
) -o
$@
$(POBJS
) $(LDFLAGS
) $(LDLIBS
)
102 $(POFILE
): $(POFILES
)
110 install: all .WAIT
$(ROOTDIRS
) \
111 $(ROOTPROG
) $(REFDIRPROG
) $(IOTXTS
) $(SUBDIRS
)
122 clobber : $(SUBDIRS
) local_clobber
125 $(LINT.c
) mkey1.c mkey2.c mkey3.c deliv2.c
$(LDLIBS
)
126 $(LINT.c
) inv1.c inv2.c inv3.c inv5.c inv6.c deliv2.c
$(LDLIBS
)
127 $(LINT.c
) hunt1.c hunt2.c hunt3.c hunt5.c hunt6.c \
128 hunt7.c glue5.c refer3.c
shell.c \
129 deliv2.c hunt8.c glue4.c tick.c
$(LDLIBS
)
130 $(LINT.c
) glue1.c refer1.c refer2.c refer4.c refer5.c \
131 refer6.c mkey3.c refer7.c refer8.c hunt2.c \
132 hunt3.c deliv2.c hunt5.c hunt6.c hunt8.c \
133 glue3.c hunt7.c glue2.c glue4.c \
134 glue5.c refer0.c
shell.c
$(LDLIBS
)
135 $(LINT.c
) addbib.c
$(LDLIBS
)
136 $(LINT.c
) lookbib.c
$(LDLIBS
)
137 $(LINT.c
) sortbib.c
$(LDLIBS
)
140 $(RM
) $(PROG
) $(OBJS
) $(CLOBBERFILES
)
145 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
152 include ..
/Makefile.targ