8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / cmd / eqn / neqn.d / Makefile
blob2863de28744e045c6a7a1e275dd1af1d07c1432f
2 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
6 include ../../Makefile.cmd
8 PROG = neqn
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:%=../%)
17 YACCSRC = e.y
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)
25 YFLAGS = -d
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
34 # for message catalog
36 POFILE= neqn.d.po
37 POFILES= e.po
39 .KEEP_STATE:
41 all : $(PROG)
43 $(PROG) : $(OBJS) $(MAPFILE.NGB)
44 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
45 $(POST_PROCESS)
47 catalog: $(POFILE)
49 $(POFILE): $(POFILES)
50 $(RM) $@
51 cat $(POFILES) > $@
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)
64 clean:
65 $(RM) $(OBJS) $(CLEANFILES)
67 lint: lint_SRCS
69 strip :
70 $(STRIP) $(PROG)
72 include ../../Makefile.targ