home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / awm2 / part11 / Imakefile < prev    next >
Encoding:
Makefile  |  1989-02-21  |  2.9 KB  |  83 lines

  1.        MENU_LIB = menus
  2.       MENU_ARCH = $(MENU_LIB)/rtlmenu.a
  3.      NEATEN_LIB = /grgr/neaten
  4.     NEATEN_ARCH = $(NEATEN_LIB)/neaten.a
  5.   SYS_LIBRARIES = -ll -lm
  6.       OTHERSRCS = gram.y lex.l
  7.          YFLAGS = -d
  8.          HFILES = awm.h neaten.def.h neaten.ext.h support.h
  9.  
  10. # The following defines can be added to the approprate DEFINES macro
  11. # (see below) to enable additional features.
  12. #
  13. # -DCONSOLE if you want output (stderr and stdout) to go to the system console.
  14. #
  15. # -DWMSTATE if you want the XA_WM_STATE atom to reflect the state of each
  16. #     top-level window (I.E. iconified, not iconified, etc).
  17. #
  18. # -DRAINBOW if you want to be able to specify border colors on a client or
  19. #     class basis.
  20. #
  21. # -DLOCKSCR if for some reason you want a lockscreen function built into
  22. #     the window manager. Could be just as easily done by invoking a program,
  23. #     but some like to put all their eggs in one basket.
  24.  
  25. # Use these macros if you want the RTL Neaten package.
  26. # Also make sure that NEATEN_LIB points to the right place. See the README
  27. # file for instructions (though you can just define this and give it a shot).
  28. #       DEFINES = -DSYSFILE=\"$(AWMDIR)$(PATHSEP)system.awmrc\" -DNEATEN
  29. #       LOCAL_LIBRARIES = $(NEATEN_ARCH) $(MENU_ARCH) $(XMULIB) $(XLIB)
  30.  
  31.  
  32. # Use these macros if you don't want the RTL Neaten package.
  33.         DEFINES = -DSYSFILE=\"$(AWMDIR)$(PATHSEP)system.awmrc\" -DWMSTATE -DLOCKSCR
  34.         LOCAL_LIBRARIES = $(MENU_ARCH) $(XMULIB) $(XLIB)
  35.         LINTLIBS = $(LINTXLIB)
  36.  
  37. SRCS=    globals.c Beep.c Bindings.c CircleDown.c CircleUp.c\
  38.     Cursors.c Focus.c GetButton.c  GridBox.c Iconify.c Icons.c Lower.c\
  39.     Menu.c Move.c MoveOpaque.c NewIconify.c Pause.c Push.c Error.c\
  40.     Raise.c Refresh.c Resize.c Restart.c RubberBand.c StoreBox.c \
  41.     StoreZap.c XError.c awm.c FocusChng.c Titlebar.c errHndlr.c \
  42.     Grab.c menu_sup.c Gadget.c support.c exp_path.c Neaten.c \
  43.     lockscreen.c Lock.c
  44.  
  45. OBJS=    gram.o lex.o globals.o Beep.o Bindings.o CircleDown.o CircleUp.o\
  46.     Cursors.o Focus.o GetButton.o GridBox.o Iconify.o Icons.o Lower.o\
  47.     Menu.o Move.o MoveOpaque.o NewIconify.o Pause.o Push.o Error.o\
  48.     Raise.o Refresh.o Resize.o Restart.o RubberBand.o StoreBox.o \
  49.     StoreZap.o XError.o awm.o FocusChng.o Titlebar.o errHndlr.o \
  50.     Grab.o menu_sup.o Gadget.o support.o exp_path.o Neaten.o \
  51.     lockscreen.o Lock.o
  52.  
  53. ComplexProgramTarget(awm)
  54. NormalLintTarget($(SRCS) gram.c lex.c)
  55.  
  56. InstallNonExec(system.awmrc, $(AWMDIR))
  57.  
  58. $(MENU_ARCH)::
  59.     @echo Making menu package...
  60.     @(cd $(MENU_LIB); make CC=$(CC) CFLAGS="$(CFLAGS)")
  61.     @echo done.
  62.  
  63. $(NEATEN_ARCH)::
  64.     cp Makefile.rtl $(NEATEN_LIB)/Makefile
  65.     @echo Making Neaten package
  66.     @(cd $(NEATEN_LIB); make -f Makefile)
  67.     @echo done.
  68.  
  69. clean::
  70.     @echo Cleaning menus...
  71.     @(cd $(MENU_LIB); make clean)
  72.     @echo done.
  73.     rm -f y.tab.h
  74.  
  75. noident::
  76.     @echo Removing ident lines from awm...
  77.     @for i in $(SRCS) $(OTHERSRCS) $(HFILES); do \
  78.     sed -e '/#ident/D' < $$i > /tmp/x.$$i && \
  79.     mv /tmp/x.$$i $$i ; \
  80.     done
  81.     @(cd $(MENU_LIB); make noident)
  82.     @echo done.
  83.