Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.8.2
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (21 sloc) 0.621 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
all: sxiv

VERSION = 0.8.2

CC = gcc
DESTDIR =
PREFIX = /usr/local
CFLAGS = -Wall -pedantic -DVERSION=\"$(VERSION)\"
LDFLAGS =
LIBS = -lX11 -lImlib2

SRC = image.c main.c options.c thumbs.c util.c window.c
OBJ = $(SRC:.c=.o)

sxiv: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)

.c.o: Makefile config.h
$(CC) $(CFLAGS) -c -o $@ $<

install: all
install -D -m 755 -o root -g root sxiv $(DESTDIR)$(PREFIX)/bin/sxiv
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(DESTDIR)$(PREFIX)/share/man/man1/sxiv.1
chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/sxiv.1

clean:
rm -f $(OBJ) sxiv
Something went wrong with that request. Please try again.