xref: /titanic_41/usr/src/ucblib/libcurses/Makefile.com (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
1#
2# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7# ucblib/libcurses/Makefile.com
8#
9
10LIBRARY=	libcurses.a
11VERS=		.1
12
13OBJECTS= 		\
14	addch.o		\
15	addstr.o	\
16	box.o		\
17	clear.o		\
18	clrtobot.o	\
19	clrtoeol.o	\
20	cr_put.o	\
21	cr_tty.o	\
22	curses.o	\
23	delch.o		\
24	deleteln.o	\
25	delwin.o	\
26	endwin.o	\
27	erase.o		\
28	fullname.o	\
29	getch.o		\
30	getstr.o	\
31	id_subwins.o	\
32	idlok.o		\
33	initscr.o	\
34	insch.o		\
35	insertln.o	\
36	longname.o	\
37	move.o		\
38	mvprintw.o	\
39	mvscanw.o	\
40	mvwin.o		\
41	newwin.o	\
42	overlay.o	\
43	overwrite.o	\
44	printw.o	\
45	putchar.o	\
46	refresh.o	\
47	scanw.o		\
48	scroll.o	\
49	standout.o	\
50	toucholap.o	\
51	touchwin.o	\
52	tstp.o		\
53	unctrl.o
54
55# include library definitions
56include $(SRC)/lib/Makefile.lib
57
58ROOTLIBDIR=	$(ROOT)/usr/ucblib
59ROOTLIBDIR64=	$(ROOT)/usr/ucblib/$(MACH64)
60
61MAPFILE=	$(MAPDIR)/mapfile
62SRCS=		$(OBJECTS:%.o=../%.c)
63
64LIBS = $(DYNLIB) $(LINTLIB)
65
66LINTSRC= $(LINTLIB:%.ln=%)
67ROOTLINTDIR= $(ROOTLIBDIR)
68ROOTLINTDIR64= $(ROOTLIBDIR)/$(MACH64)
69ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
70ROOTLINT64= $(LINTSRC:%=$(ROOTLINTDIR64)/%)
71
72# install rule for lint source file target
73$(ROOTLINTDIR)/%: ../%
74	$(INS.file)
75$(ROOTLINTDIR64)/%: ../%
76	$(INS.file)
77
78$(LINTLIB):= SRCS=../llib-lcurses
79
80CFLAGS	+=	$(CCVERBOSE)
81CFLAGS64 +=	$(CCVERBOSE)
82DYNFLAGS +=
83DYNFLAGS32 =	-M$(MAPFILE) -R/usr/ucblib
84DYNFLAGS64 =	-M$(MAPFILE) -R/usr/ucblib/$(MACH64)
85LDLIBS +=	-ltermcap -lucb -lc
86
87CPPFLAGS = -I$(ROOT)/usr/ucbinclude -I../../../lib/libc/inc $(CPPFLAGS.master)
88
89.KEEP_STATE:
90
91all: $(LIBS)
92
93lint: lintcheck
94
95$(DYNLIB): 	$(MAPFILE)
96
97$(MAPFILE):
98	@cd $(MAPDIR); $(MAKE) mapfile
99
100#
101# Include library targets
102#
103include $(SRC)/lib/Makefile.targ
104
105objs/%.o pics/%.o: ../%.c
106	$(COMPILE.c) -o $@ $<
107	$(POST_PROCESS_O)
108