1#
2#ident	"%Z%%M%	%I%	%E% SMI"
3#
4# Copyright (c) 1998 by Sun Microsystems, Inc.
5# All rights reserved.
6#
7
8include ../../../../../Makefile.cmd
9
10CXXFLAGS=$(DEBUG) $(OPTIMIZE) $(WARN)
11ALL_CXXFLAGS=$(CXXFLAGS) -I$(srcdir) -I$(srcdir)/../include $(INCLUDE) \
12 $(DEFINES)
13ALL_CFLAGS=$(CFLAGS) $(DEBUG) $(OPTIMIZE) $(INCLUDE) $(DEFINES)
14MSGGENFLAGS=
15CXXDEPGENFLAGS=-MM
16AR=ar
17RANLIB=:
18M4=m4
19GENSRCS=
20OBJS=
21COBJS=
22PROG=
23#PERL=perl
24
25.SUFFIXES: .cxx .c .o .m4 .msg
26
27.cxx.o:
28	$(CCC) $(ALL_CXXFLAGS) $(CCFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<
29	$(POST_PROCESS_O)
30
31#.c.o:
32#	$(CC) $(ALL_CFLAGS) -c $<
33
34.m4.cxx:
35	$(RM) $@
36	$(M4) $(srcdir)/../lib/instmac.m4 $< >$@
37	$(CHMOD) -w $@
38
39# We don't use perl... just use static .h files
40#.msg.h:
41#	$(PERL) -w $(srcdir)/../msggen.pl $(MSGGENFLAGS) $<
42
43depend_src: depend.temp
44	$(MV) depend.temp Makefile.dep
45
46depend.temp: FORCE
47	$(CXX) $(CXXDEPGENFLAGS) $(ALL_CXXFLAGS) $(OBJS:.o=.cxx) \
48	  | sed -e 's; \([^/ ][^/ ]*\)/; $$(srcdir)/\1/;g' >depend.temp
49
50clean: FORCE
51	-$(RM) $(CLEANFILES)
52
53clobber: FORCE
54	-$(RM) -r SunWS_cache
55	-$(RM) $(CLEANFILES)
56
57FORCE:
58
59%: RCS/%,v
60	test -w $@ || co -u $@
61