xscreen

X11 screenshot utility
git clone https://git.porkepik.fr/xscreen
Log | Files | Refs | README | LICENSE

Makefile (442B)


      1 .POSIX:
      2 PREFIX = /usr/local
      3 CFLAGS = -Os -std=c99 -D_DEFAULT_SOURCE -Wall -Wextra -I/usr/X11R6/include
      4 LDFLAGS = -L/usr/X11R6/lib
      5 LDLIBS = -lX11
      6 SRC = xscreen.c
      7 BIN = xscreen
      8 
      9 $(BIN): $(SRC)
     10 	$(CC) $(CFLAGS) $(SRC) -o $(BIN) $(LDFLAGS) $(LDLIBS)
     11 
     12 clean:
     13 	rm -f $(BIN)
     14 
     15 install:
     16 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     17 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
     18 	chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
     19 
     20 uninstall:
     21 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)