2 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
6 include ..
/..
/Makefile.cmd
10 CSRCS
= diacrit.c eqnbox.c font.c fromto.c funny.c \
11 glob.c integral.c io.c
lex.c lookup.c \
12 mark.c matrix.c move.c over.c paren.c \
13 pile.c shift.c size.c sqrt.c text.c
15 SRCS
= $(CSRCS
:%=..
/%)
19 COBJS
= $(CSRCS
:%.c
=%.o
)
20 OBJS
= $(YACCSRC
:%.y
=%.o
) $(COBJS
)
23 CLEANFILES
= y.tab.c y.tab.h
$(YACCSRC
:%.y
=%.c
) $(YACCSRC
:%.y
=%.def
)
26 CPPFLAGS
= -DNEQN
-I.
-I..
$(CPPFLAGS.master
)
27 LDFLAGS
+= $(MAPFILE.NGB
:%=-M
%)
29 CERRWARN
+= -_gcc
=-Wno-implicit-function-declaration
30 CERRWARN
+= -_gcc
=-Wno-uninitialized
31 CERRWARN
+= -_gcc
=-Wno-unused-label
43 $(PROG
) : $(OBJS
) $(MAPFILE.NGB
)
44 $(LINK.c
) -o
$@
$(OBJS
) $(LDFLAGS
) $(LDLIBS
)
54 $(YACCSRC
:%.y
=%.c
) + $(YACCSRC
:%.y
=%.def
) : ..
/$(YACCSRC
)
55 $(YACC.y
) ..
/$(YACCSRC
)
56 $(MV
) y.tab.c
$(YACCSRC
:%.y
=%.c
)
57 $(MV
) y.tab.h
$(YACCSRC
:%.y
=%.def
)
59 $(COBJS
) : $$(@
:%.o
=..
/%.c
)
60 $(COMPILE.c
) ..
/$(@
:%.o
=%.c
)
62 install : all $(ROOTPROG
)
65 $(RM
) $(OBJS
) $(CLEANFILES
)
72 include ..
/..
/Makefile.targ