zeniba-nsxiv/Makefile

31 lines
468 B
Makefile
Raw Normal View History

2011-01-17 14:57:59 +01:00
all: sxiv
2011-01-23 17:27:44 +01:00
VERSION=git-20110123
2011-01-17 14:57:59 +01:00
CC?=gcc
PREFIX?=/usr/local
2011-01-23 17:27:44 +01:00
CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\"
2011-01-17 14:57:59 +01:00
LDFLAGS+=
2011-01-18 16:40:37 +01:00
LIBS+= -lX11 -lImlib2
2011-01-17 14:57:59 +01:00
SRCFILES=$(wildcard *.c)
OBJFILES=$(SRCFILES:.c=.o)
2011-01-17 16:18:47 +01:00
sxiv: $(OBJFILES)
2011-01-17 14:57:59 +01:00
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
%.o: %.c Makefile config.h
2011-01-17 14:57:59 +01:00
$(CC) $(CFLAGS) -c -o $@ $<
install: all
install -D -m 4755 -o root -g root sxiv $(PREFIX)/sbin/sxiv
clean:
rm -f sxiv *.o
tags: *.h *.c
ctags $^
cscope: *.h *.c
cscope -b