XCOMM $TOG: Imakefile /main/16 1998/03/11 20:19:03 mgreess $ XCOMM XCOMM @OSF_COPYRIGHT@ XCOMM COPYRIGHT NOTICE XCOMM Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. XCOMM ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for XCOMM the full copyright text. INCLUDES = -I. -I$(INCLUDESRC) -I$(MINCLUDESRC) -I$(MLIBSRC) -I$(MTOP)/include DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB) LOCAL_LIBRARIES = $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) SRCS1 = wml.c wmlouth.c wmloutmm.c \ wmloutp1.c wmlresolve.c wmlsynbld.c wmlutils.c \ wmldbcreate.c OBJS1 = wml.o wmloutkey.o wmlouth.o wmloutmm.o \ wmloutp1.o wmlresolve.o wmlsynbld.o wmlutils.o SRCS2 = wmluiltok.l OBJS2 = wmlparse.o SRCS = $(SRCS1) $(SRCS2) YACCTARGETS = UilLexPars.c UilLexPars.h WMLTARGETS = UilConst.h UilKeyTab.h \ UilSymArTa.h UilSymArTy.h UilSymCSet.h UilSymCtl.h \ UilSymEnum.h UilSymGen.h UilSymNam.h UilSymRArg.h \ UilSymReas.h UilTokName.h UilUrmClas.h UilSymChCl.h \ UilSymChTa.h TARGETS = $(YACCTARGETS) $(WMLTARGETS) TABLE = motif.wml WMDTABLE = motif.wmd WMLTOOLS = wml wmluiltok REPORT = wml.report NormalLibraryObjectRule() all:: DONE DONE: $(WMDTABLE) $(TARGETS) (cd $(UILSRC); $(RM) $(TARGETS) UilDBDef.h) cp $(TARGETS) UilDBDef.h $(UILSRC) touch DONE NormalLibraryTarget(wml,$(OBJS2) $(OBJS1)) install:: all wml:: libwml.a $(CC) $(CFLAGS) libwml.a -o wml NormalProgramTarget(wmldbcreate,wmldbcreate.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(SYSLIBS)) wmlparse.c: wmlparse.y wmllex.l $(LEX) wmllex.l $(MV) lex.yy.c wmllex.c $(YACC) -d $(YACCFLAGS) wmlparse.y $(RM) wmlparse.c wmlparse.h $(MV) y.tab.c wmlparse.c $(MV) y.tab.h wmlparse.h wmlparse.h:: wmlparse.y wmllex.l $(LEX) wmllex.l $(MV) lex.yy.c wmllex.c $(YACC) -d $(YACCFLAGS) wmlparse.y $(MV) y.tab.c wmlparse.c $(MV) y.tab.h wmlparse.h wmluiltok:: wmluiltok.l $(LEX) wmluiltok.l $(CC) $(CFLAGS) lex.yy.c $(LEXLIB) -o wmluiltok $(TARGETS): $(WMLTOOLS) $(TABLE) $(RM) $(TARGETS) $(REPORT) wml-uil.mm $(YACC) -d $(YACCFLAGS) Uil.y $(MV) y.tab.c UilLexPars.c $(MV) y.tab.h UilLexPars.h $(CLIENTENVSETUP) ./wmluiltok < Uil.y > tokens.dat $(RM) wml-uil.mm $(CLIENTENVSETUP) ./wml $(TABLE) $(RM) tokens.dat $(WMDTABLE): wmldbcreate $(CLIENTENVSETUP) ./wmldbcreate -o $@ clean:: $(RM) $(TARGETS) $(WMDTABLE) $(REPORT) lex.yy.c libwml.a wml \ *.mm *.sdml *.txt wmlparse.c wmlparse.h wmluiltok wmllex.c \ tokens.dat DONE depend:: wmlparse.h DependTarget() includes:: $(TARGETS) (cd $(UILSRC); $(RM) $(TARGETS) UilDBDef.h) cp $(TARGETS) UilDBDef.h $(UILSRC)