Non-working skeleton
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@ -0,0 +1,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
|
Reference in New Issue
Block a user