aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: d205b70d4651cc37d29e30e7c7eb6e658a490d29 (plain) (blame)
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

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

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

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

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