Imakefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. XCOMM $TOG: Imakefile /main/16 1998/03/11 20:19:03 mgreess $
  2. XCOMM
  3. XCOMM @OSF_COPYRIGHT@
  4. XCOMM COPYRIGHT NOTICE
  5. XCOMM Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  6. XCOMM ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  7. XCOMM the full copyright text.
  8. INCLUDES = -I. -I$(INCLUDESRC) -I$(MINCLUDESRC) -I$(MLIBSRC) -I$(MTOP)/include
  9. DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  10. LOCAL_LIBRARIES = $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB)
  11. SRCS1 = wml.c wmlouth.c wmloutmm.c \
  12. wmloutp1.c wmlresolve.c wmlsynbld.c wmlutils.c \
  13. wmldbcreate.c
  14. OBJS1 = wml.o wmloutkey.o wmlouth.o wmloutmm.o \
  15. wmloutp1.o wmlresolve.o wmlsynbld.o wmlutils.o
  16. SRCS2 = wmluiltok.l
  17. OBJS2 = wmlparse.o
  18. SRCS = $(SRCS1) $(SRCS2)
  19. YACCTARGETS = UilLexPars.c UilLexPars.h
  20. WMLTARGETS = UilConst.h UilKeyTab.h \
  21. UilSymArTa.h UilSymArTy.h UilSymCSet.h UilSymCtl.h \
  22. UilSymEnum.h UilSymGen.h UilSymNam.h UilSymRArg.h \
  23. UilSymReas.h UilTokName.h UilUrmClas.h UilSymChCl.h \
  24. UilSymChTa.h
  25. TARGETS = $(YACCTARGETS) $(WMLTARGETS)
  26. TABLE = motif.wml
  27. WMDTABLE = motif.wmd
  28. WMLTOOLS = wml wmluiltok
  29. REPORT = wml.report
  30. NormalLibraryObjectRule()
  31. all:: DONE
  32. DONE: $(WMDTABLE) $(TARGETS)
  33. (cd $(UILSRC); $(RM) $(TARGETS) UilDBDef.h)
  34. cp $(TARGETS) UilDBDef.h $(UILSRC)
  35. touch DONE
  36. NormalLibraryTarget(wml,$(OBJS2) $(OBJS1))
  37. install:: all
  38. wml:: libwml.a
  39. $(CC) $(CFLAGS) libwml.a -o wml
  40. NormalProgramTarget(wmldbcreate,wmldbcreate.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(SYSLIBS))
  41. wmlparse.c: wmlparse.y wmllex.l
  42. $(LEX) wmllex.l
  43. $(MV) lex.yy.c wmllex.c
  44. $(YACC) -d $(YACCFLAGS) wmlparse.y
  45. $(RM) wmlparse.c wmlparse.h
  46. $(MV) y.tab.c wmlparse.c
  47. $(MV) y.tab.h wmlparse.h
  48. wmlparse.h:: wmlparse.y wmllex.l
  49. $(LEX) wmllex.l
  50. $(MV) lex.yy.c wmllex.c
  51. $(YACC) -d $(YACCFLAGS) wmlparse.y
  52. $(MV) y.tab.c wmlparse.c
  53. $(MV) y.tab.h wmlparse.h
  54. wmluiltok:: wmluiltok.l
  55. $(LEX) wmluiltok.l
  56. $(CC) $(CFLAGS) lex.yy.c $(LEXLIB) -o wmluiltok
  57. $(TARGETS): $(WMLTOOLS) $(TABLE)
  58. $(RM) $(TARGETS) $(REPORT) wml-uil.mm
  59. $(YACC) -d $(YACCFLAGS) Uil.y
  60. $(MV) y.tab.c UilLexPars.c
  61. $(MV) y.tab.h UilLexPars.h
  62. $(CLIENTENVSETUP) ./wmluiltok < Uil.y > tokens.dat
  63. $(RM) wml-uil.mm
  64. $(CLIENTENVSETUP) ./wml $(TABLE)
  65. $(RM) tokens.dat
  66. $(WMDTABLE): wmldbcreate
  67. $(CLIENTENVSETUP) ./wmldbcreate -o $@
  68. clean::
  69. $(RM) $(TARGETS) $(WMDTABLE) $(REPORT) lex.yy.c libwml.a wml \
  70. *.mm *.sdml *.txt wmlparse.c wmlparse.h wmluiltok wmllex.c \
  71. tokens.dat DONE
  72. depend:: wmlparse.h
  73. DependTarget()
  74. includes:: $(TARGETS)
  75. (cd $(UILSRC); $(RM) $(TARGETS) UilDBDef.h)
  76. cp $(TARGETS) UilDBDef.h $(UILSRC)