home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl_BETA-0.13.src.tar.gz / enl_BETA-0.13.src.tar / enl-0.13 / Imakefile < prev    next >
Makefile  |  1997-11-20  |  2KB  |  72 lines

  1. XCOMM            Enlightenment Configuration File
  2. XCOMM    ------------------------------------------------------
  3.  
  4. XCOMM    First, a few must-have definitions...
  5.  
  6. NAME=enlightenment
  7. VERSION=0.13
  8.  
  9. AllTarget($(NAME))
  10.  
  11. SRC1 = main.c lists.c draw.c events.c wininfo.c actions.c ewin.c 
  12. SRC2 = loadcfg.c root.c text.c status.c buttons.c alert.c iconify.c 
  13. SRC3 = menus.c globals.c infobox.c file.c regexp.c desktops.c misc.c 
  14. SRC4 = states.c keys.c windowops.c
  15.  
  16. SRCS = $(SRC1) $(SRC2) $(SRC3) $(SRC4)
  17.  
  18. OBJ1 = main.o lists.o draw.o events.o wininfo.o actions.o ewin.o
  19. OBJ2 = loadcfg.o root.o text.o status.o buttons.o alert.o iconify.o
  20. OBJ3 = globals.o menus.o infobox.o file.o regexp.o desktops.o misc.o
  21. OBJ4 = states.o keys.o windowops.o
  22.  
  23. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  24.  
  25. XCOMM    Let's grab the silly user setup stuff...
  26. #include "Enl.tmpl"
  27.  
  28. #if ThemesDirPresent
  29. #define IHaveSubdirs
  30. SUBDIRS = themes
  31. #endif
  32.  
  33. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  34.  
  35. INCLUDES += -I. -I/usr/local/include
  36. SYS_LIBRARIES += $(XLIB) -lm -ljpeg -lpng -lz
  37. LOCAL_LIBRARIES += -lIm 
  38.  
  39. XCOMM    Now, based on that, we can decided how fancy we want to be...
  40.  
  41. XCOMM    For thread support...
  42. #if ThreadedE
  43. #define LocalThreadsDefines -D_USE_PTHREADS
  44. #include <Threads.tmpl>
  45. #endif
  46.  
  47. XCOMM    Define _our_ places to install stuff...
  48. ENLBINDIR=$(ENLROOT)/bin
  49. ENLTHMDIR=$(ENLROOT)/themes
  50. ENLETCDIR=$(ENLROOT)/etc
  51.  
  52. XCOMM    Once we know these...
  53. DEFINES += -DSYSCONFIG_DIR=\"$(ENLETCDIR)/\"
  54. DEFINES += -DTHEMES_DIR=\"$(ENLTHMDIR)/\"
  55. DEFINES += -DVERSION=\"$(VERSION)\"
  56.  
  57. XCOMM    I prefer using this method, since we don't have to redfine
  58. XCOMM    ProjectRoot or the other xxxDIR entries, which screws up
  59. XCOMM    make Makefile, make Makefiles, xmkmf -a and other calls...
  60.  
  61. NormalProgramTarget($(NAME),$(OBJS),,$(LOCAL_LIBRARIES),$(SYS_LIBRARIES))
  62. InstallProgram($(NAME),$(ENLBINDIR))
  63.  
  64. DependTarget()
  65. LintTarget()
  66.  
  67. #if ThemesDirPresent
  68. MakeSubdirs($(SUBDIRS))
  69. DependSubdirs($(SUBDIRS))
  70. #endif
  71.  
  72.