patch-Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --- evilwm-1.0.1.orig/Makefile 2009-03-30 12:37:06.000000000 +0200
  2. +++ evilwm-1.0.1/Makefile 2010-01-22 17:14:53.000000000 +0100
  3. @@ -1,11 +1,11 @@
  4. # If you don't use CC
  5. -CC = gcc
  6. +CC ?= gcc
  7. # Edit this line if you don't want evilwm to install under /usr.
  8. # Note that $(DESTDIR) is used by the Debian build process.
  9. prefix = $(DESTDIR)/usr
  10. -XROOT = /usr/X11R6
  11. +XROOT ?= /usr/X11R6
  12. INCLUDES = -I$(XROOT)/include
  13. LDPATH = -L$(XROOT)/lib
  14. LIBS = -lX11
  15. @@ -35,8 +35,8 @@ LIBS += -lXext
  16. # Be sure that libXrandr is in your library search directory (e.g., under
  17. # Solaris, it is in /usr/X11R6/lib, so can be built against with the default
  18. # XPATH above, but won't necessarily be in the library search path).
  19. -DEFINES += -DRANDR
  20. -LIBS += -lXrandr
  21. +#DEFINES += -DRANDR
  22. +#LIBS += -lXrandr
  23. # Uncomment for mouse support. You probably want this.
  24. DEFINES += -DMOUSE
  25. @@ -71,7 +71,7 @@ distname = evilwm-$(version)
  26. #DEFINES += -DXDEBUG # show some X calls
  27. DEFINES += -DVERSION=\"$(version)\" $(DEBIAN)
  28. -CFLAGS += $(INCLUDES) $(DEFINES) -Os -Wall
  29. +CFLAGS += $(INCLUDES) $(DEFINES) -Wall
  30. #CFLAGS += $(INCLUDES) $(DEFINES) -g -Wall
  31. CFLAGS += -W -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wnested-externs -Winline -Wwrite-strings -Wundef -Wsign-compare -Wmissing-prototypes -Wredundant-decls
  32. LDFLAGS += $(LDPATH) $(LIBS)