Krolyxon
Commit eeb5888

Branches

Refs →

nsxivMakefile

28 lines · 424 B · Makefile

1all: sxiv
2
3CC?=gcc
4PREFIX?=/usr/local
5CFLAGS+= -std=c99 -Wall -pedantic -g
6LDFLAGS+=
7LIBS+= -lX11 -lImlib2
8
9SRCFILES=$(wildcard *.c)
10OBJFILES=$(SRCFILES:.c=.o)
11
12sxiv: $(OBJFILES)
13 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
14
15%.o: %.c Makefile config.h
16 $(CC) $(CFLAGS) -c -o $@ $<
17
18install: all
19 install -D -m 4755 -o root -g root sxiv $(PREFIX)/sbin/sxiv
20
21clean:
22 rm -f sxiv *.o
23
24tags: *.h *.c
25 ctags $^
26
27cscope: *.h *.c
28 cscope -b