Krolyxon
Commit 03009f5

Branches

Refs →

nsxiv03009f5

Made Makefile POSIX compliant

Author
Bert
Date
2011-06-08 20:10 +0200
Parent
b563a0a
Commit
03009f59fc12902a7f21c6661a8260bf9ae1506b

+12 −18

1 file changed

  1. M Makefile +12 −18
M Makefile View
@@ -1,21 +1,21 @@
11 all: sxiv
22
3−VERSION=git-20110606
3+VERSION = git-20110606
44
5−CC?=gcc
6−DESTDIR?=
7−PREFIX?=/usr/local
8−CFLAGS+= -Wall -pedantic -DVERSION=\"$(VERSION)\"
9−LDFLAGS+=
10−LIBS+= -lX11 -lImlib2
5+CC = gcc
6+DESTDIR =
7+PREFIX = /usr/local
8+CFLAGS = -Wall -pedantic -DVERSION=\"$(VERSION)\"
9+LDFLAGS =
10+LIBS = -lX11 -lImlib2
1111
12−SRCFILES=$(wildcard *.c)
13−OBJFILES=$(SRCFILES:.c=.o)
12+SRC = image.c main.c options.c thumbs.c util.c window.c
13+OBJ = $(SRC:.c=.o)
1414
15−sxiv: $(OBJFILES)
15+sxiv: $(OBJ)
1616 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
1717
18−%.o: %.c Makefile config.h
18+.c.o: Makefile config.h
1919 $(CC) $(CFLAGS) -c -o $@ $<
2020
2121 install: all
@@ -25,10 +25,4 @@ install: all
2525 chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/sxiv.1
2626
2727 clean:
28− rm -f sxiv *.o
29−
30−tags: *.h *.c
31− ctags $^
32−
33−cscope: *.h *.c
34− cscope -b
28+ rm -f $(OBJ) sxiv