1 # 2 # CDDL HEADER START 3 # 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. 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 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 26 LIBRARY= libmenu.a 27 VERS= .1 28 29 OBJECTS= \ 30 affect.o \ 31 chk.o \ 32 connect.o \ 33 curitem.o \ 34 driver.o \ 35 global.o \ 36 itemcount.o \ 37 itemopts.o \ 38 itemusrptr.o \ 39 itemvalue.o \ 40 link.o \ 41 menuback.o \ 42 menucursor.o \ 43 menufore.o \ 44 menuformat.o \ 45 menugrey.o \ 46 menuitems.o \ 47 menumark.o \ 48 menuopts.o \ 49 menupad.o \ 50 menuserptr.o \ 51 menusub.o \ 52 menuwin.o \ 53 newitem.o \ 54 newmenu.o \ 55 pattern.o \ 56 post.o \ 57 scale.o \ 58 show.o \ 59 terminit.o \ 60 topitem.o \ 61 visible.o 62 63 # include library definitions 64 include ../../../Makefile.lib 65 66 LIBS = $(DYNLIB) $(LINTLIB) 67 68 SRCDIR= ../common 69 70 $(LINTLIB) := SRCS=$(SRCDIR)/$(LINTSRC) 71 72 CPPFLAGS += -I../inc 73 CFLAGS += $(CCVERBOSE) 74 LDLIBS += -lcurses -lc 75 76 CERRWARN += -_gcc=-Wno-parentheses 77 78 COMPATLINKS= /usr/ccs/lib/libmenu.so \ 79 /usr/ccs/lib/$(MACH64)/libmenu.so 80 81 $(ROOT)/usr/ccs/lib/libmenu.so := COMPATLINKTARGET= ../../lib/libmenu.so.1 82 $(ROOT)/usr/ccs/lib/$(MACH64)/libmenu.so:= \ 83 COMPATLINKTARGET=../../../lib/$(MACH64)/libmenu.so.1 84 85 .KEEP_STATE: 86 87 all: $(LIBS) 88 89 lint: lintcheck 90 91 # include library targets 92 include ../../../Makefile.targ 93 94 pics/%.o: ../common/%.c 95 $(COMPILE.c) -o $@ $< 96 $(POST_PROCESS_O)