aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 326ecd4e12116cf7d0d41d0ad38dd923905e2527 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                  
                                    
          
                     



                          
                   

                                         
                          












                                                                   
all: sxiv

CC?=gcc
PREFIX?=/usr/local
CFLAGS+= -std=c99 -Wall -pedantic -g
LDFLAGS+= 
LIBS+= -lX11 -lImlib2

SRCFILES=$(wildcard *.c)
OBJFILES=$(SRCFILES:.c=.o)

sxiv:	$(OBJFILES)
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

%.o: %.c Makefile config.h
	$(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