Non-working skeleton

This commit is contained in:
Bert
2011-01-17 14:57:59 +01:00
commit e7bc3bb71b
10 changed files with 262 additions and 0 deletions

28
Makefile Normal file
View 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