wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

config.mk (1563B)


      1 # Customize below to fit your system
      2 
      3 # Paths
      4 PREFIX = /usr/local
      5   BIN = $(PREFIX)/bin
      6   MAN = $(PREFIX)/share/man
      7   DOC = $(PREFIX)/share/doc/wmii
      8   ETC = $(PREFIX)/etc
      9   LIBDIR = $(PREFIX)/lib
     10   INCLUDE = $(PREFIX)/include
     11   PYPREFIX = --prefix=$(PREFIX)
     12 
     13 # Includes and libs
     14 INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include
     15 LIBS = -L$(ROOT)/lib -L/usr/lib
     16 
     17 TERMINAL = xterm
     18 
     19 # Flags
     20 include $(ROOT)/mk/gcc.mk
     21 CFLAGS += -Os $(DEBUGCFLAGS)
     22 LDFLAGS += -g
     23 
     24 # Compiler, Linker. Linker should usually *not* be ld.
     25 CC = cc -c
     26 LD = cc
     27 # Archiver
     28 AR = ar crs
     29 
     30 PYTHON = python
     31 
     32 X11PACKAGES = x11 xinerama xrender xrandr
     33 INCX11 = $$(pkg-config --cflags $(X11PACKAGES))
     34 LIBIXP = $(LIBDIR)/libixp.a
     35 
     36 # Enable RTLD. Only necessary for Xft support.
     37 CFLAGS += -DHAVE_RTLD
     38 LDFLAGS += -ldl # Comment this out on BSD systems.
     39 
     40 SOLDFLAGS += $(LDFLAGS)
     41 SHARED = -shared -Wl,-soname=$(SONAME)
     42 STATIC = -static
     43 
     44 # Your make shell. By default, the first found of /bin/dash, /bin/ksh,
     45 # /bin/sh. Except with bsdmake, which assumes /bin/sh is sane. bash and zsh
     46 # are painfully slow, and should be avoided.
     47 #BINSH = /bin/ash
     48 
     49 ## Operating System Configurations
     50 
     51 # KenCC
     52 # Note: wmii *must* always compile under KenCC. It's vital for
     53 # argument checking in formatted IO, and similar diagnostics.
     54 #CFLAGS = -wF
     55 #STATIC = # Implied
     56 #CC=pcc -c
     57 #LD=pcc
     58 
     59 # Darwin
     60 #STATIC = # Darwin doesn't like static linking
     61 #SHARED = -dynamiclib
     62 #SOEXT = dylib
     63 
     64 # Solaris
     65 #SHELL = /bin/bash
     66 #CFLAGS = -fast $(INCS)
     67 #LDFLAGS = $(LIBS) -R$(PREFIX)/lib -lsocket -lnsl
     68 #CFLAGS += -xtarget=ultra
     69