4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # ident "%Z%%M% %I% %E% SMI"
28 include ..
/Makefile.lib
31 $(BUILD64
)SUBDIRS
+= $(MACH64
)
33 # conditional assignments
35 install := TARGET
= install
36 clean := TARGET
= clean
37 clobber := TARGET
= clobber
41 SCRFILES
= screen
/keycaps \
52 # definitions for install_h target
53 HDRS
= curses.h term.h unctrl.h
57 TEXT_DOMAIN
= SUNW_OST_OSLIB
60 POFILE
= $(LIBRARY
:.a
=.po
)
62 CLEANFILES
+= $(SCRFILES
)
64 # term.h doesn't pass cstyle due to numerous lines exceeding the 80 character
65 # limit. maketerm.ed can probably be fixed to prevent this, but it is arguable
66 # if this work would ever be worth it.
68 screen
/term.
check := CSTYLE_TAIL
= | grep
-v
"line > 80 characters" | true
72 all: $(SCRFILES
) .WAIT
$(SUBDIRS
)
74 install: all .WAIT
$(SUBDIRS
)
76 clean clobber lint
test: $(SUBDIRS
)
78 install_h
: $(ROOTHDRS
)
85 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
89 screen
/curses.h
: screen
/curses.ed screen
/keycaps screen
/tmp
90 (cd screen
; $(ED
) - < curses.ed
)
92 screen
/keycaps
: screen
/caps
93 grep
"KEY_" screen
/caps
> screen
/keycaps
94 @if tail
-1 screen
/keycaps | grep
'KEY_MOUSE' > /dev
/null
;then
:; \
95 else echo new keys
!! must change setkeymap.c
; exit
1;fi
97 screen
/keyname.c
: screen
/keyname.sh screen
/keycaps
98 (cd screen
; sh keyname.sh
)
100 screen
/termcap.c
: screen
/termcap.ed
101 (cd screen
; $(ED
) - < termcap.ed
)
102 (cd screen
; $(RM
) bool num str
)
104 screen
/tifget.c
: screen
/tifget.ed
105 (cd screen
; $(ED
) - < tifget.ed
)
107 screen
/tiget.c
: screen
/tiget.ed
108 (cd screen
; $(ED
) - < tiget.ed
)
110 screen
/tnames.c screen
/tinames.c screen
/tifnames.c \
111 screen
/term.h
: screen
/maketerm.ed
112 (cd screen
; $(ED
) - < maketerm.ed
)
118 _msg
: $(MSGDOMAIN
) .WAIT
$(POFILE
)
119 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
120 $(CP
) $(POFILE
) $(MSGDOMAIN
)
122 $(POFILE
): $(POFILES
)
124 $(CAT
) $(POFILES
) > $@
128 $(XGETTEXT
) $(XGETFLAGS
) `$(GREP) -l gettext *.[ch]* */*.[ch]*`
129 $(SED
) -e
'/^# msg/d' -e
'/^domain/d' messages.po
> $@
134 include ..
/Makefile.targ