You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nsxiv/Makefile

29 lines
406 B
Makefile

all: sxiv
CC?=gcc
PREFIX?=/usr/local
CFLAGS+= -std=c99 -Wall -pedantic -g
LDFLAGS+=
LIBS+= -lX11
SRCFILES=$(wildcard *.c)
OBJFILES=$(SRCFILES:.c=.o)
sxiv: $(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