herbe

[fork] notifications
git clone https://hhvn.uk/herbe
git clone git://hhvn.uk/herbe
Log | Files | Refs | README | LICENSE

Makefile (486B)


      1 CFLAGS = -Wall -Wextra -pedantic -lX11 -lXft -I/usr/include/freetype2 -pthread
      2 
      3 CFLAGS += -g3 -O0
      4 
      5 CFLAGS += -DXINERAMA
      6 LDFLAGS += -lXinerama
      7 
      8 PREFIX ?= /usr/local
      9 CC ?= cc
     10 
     11 all: herbe
     12 
     13 config.h:
     14 	cp config.def.h config.h
     15 
     16 herbe: herbe.c config.h
     17 	$(CC) herbe.c $(LDFLAGS) $(CFLAGS) -o herbe
     18 
     19 install: herbe
     20 	mkdir -p ${DESTDIR}${PREFIX}/bin
     21 	cp -f herbe ${DESTDIR}${PREFIX}/bin
     22 
     23 uninstall:
     24 	rm -f ${DESTDIR}${PREFIX}/bin/herbe
     25 
     26 clean:
     27 	rm -f herbe
     28 
     29 .PHONY: all install uninstall clean