mirror of
https://codeberg.org/nsxiv/nsxiv
synced 2024-11-03 23:15:46 +00:00
29 lines
396 B
Makefile
29 lines
396 B
Makefile
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
|