home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl_DR-0.10.tar.gz / enl_DR-0.10.tar / enl / Imakefile < prev    next >
Makefile  |  1997-06-23  |  2KB  |  87 lines

  1. /* Uncomment this if you want to install under /usr/local
  2.  * instead of the places imake picks. */
  3. #define UseUsrLocal     
  4.  
  5. /* You shouldn't have to change anything below this line. */
  6. /* ---------------------------------------------------------------- */
  7.  
  8. NAME=enlightenment
  9.  
  10. #ifdef UseUsrLocal
  11. LIBDIR=/usr/local
  12. #else
  13. /* use default  LIBDIR */
  14. #endif
  15.  
  16. ENLROOT=$(LIBDIR)/$(NAME)
  17.  
  18. #ifdef UseUsrLocal
  19. BINDIR=$(ENLROOT)/bin
  20. MANDIR=$(ENLROOT)/man
  21. ETCDIR=$(ENLROOT)/system_config
  22. IMGDIR=$(ENLROOT)/images/default
  23. THMDIR=$(ENLROOT)/themes
  24.  
  25. #else
  26. /* use default BINDIR, MANDIR */
  27. ETCDIR=/etc/X11/$(NAME)
  28. #endif /* UseUsrLocal */
  29.  
  30. CNFDIR=$(ETCDIR)
  31.  
  32. DEFINES = -DSYSCONFIG_DIR=\"$(ETCDIR)/\" -DTHEMES_DIR=\"$(THMDIR)/\"
  33.  
  34. /* if you have pgcc.. why the hell not... */
  35. /* CC=pgcc */
  36.  
  37. /* 
  38.  * add -g to use gdb debugging and make use of those extra optimisations in
  39.  * pgcc...
  40.  */
  41. INCLUDES = -I. /* -g */ -s /* -mpentium -O6 */
  42. SYS_LIBRARIES = $(XLIB)
  43. LOCAL_LIBRARIES = -lm -lIm
  44.  
  45. SRCS = main.c lists.c draw.c events.c wininfo.c actions.c ewin.c loadcfg.c \
  46.        root.c text.c status.c buttons.c alert.c iconify.c globals.c menus.c \
  47.        infobox.c file.c regexp.c
  48. OBJS = main.o lists.o draw.o events.o wininfo.o actions.o ewin.o loadcfg.o \
  49.        root.o text.o status.o buttons.o alert.o iconify.o globals.o menus.o \
  50.        infobox.o file.o regexp.o
  51.  
  52. ComplexProgramTarget($(NAME))
  53.  
  54. /* Create a link to /usr/local/enlightenment/bin/enlightenment
  55.  * if we're putting stuff under /usr/local/. */
  56. #ifdef UseUsrLocal
  57. install::
  58.     $(RM) $(LIBDIR)/bin/$(NAME)
  59.     $(LN) ../$(NAME)/bin/$(NAME) $(LIBDIR)/bin/$(NAME)
  60. #endif /* def UseUsrLocal */
  61.  
  62. /* Install configuration files in the right place. */
  63. CNFSRC = ./sys_conf
  64. CNFS = $(CNFSRC)/README
  65. CNFFLAGS = -m 0644 -o root -g root 
  66. InstallMultipleFlags($(CNFS),$(CNFDIR),$(CNFFLAGS))
  67.  
  68. /* Install images in the right place. */
  69. IMGSRC = ./pixmaps
  70. IMGS = $(wildcard $(IMGSRC)//**/*[^~])
  71. IMGFLAGS = -m 0644 -o root -g root
  72. InstallMultipleFlags($(IMGS),$(IMGDIR),$(IMGFLAGS))
  73.  
  74. /* Install any themes */
  75. THEMESRC = ./themes
  76. THEMES = $(wildcard $(THEMESRC)//**/*[^~])
  77. THEMEFLAGS = -m 0644 -o root -g root
  78. InstallMultipleFlags($(THEMES),$(THMDIR),$(THEMEFLAGS))
  79.  
  80. /* This allows `-I.' to work for the imlib header. */
  81. includes::
  82.     
  83.  
  84. clean::
  85.     rm -f Makefile
  86.  
  87.