nsxiv8f99adb
Made XFLAGS & XLIBS macros only
+8 −9
2 files changed
| @@ -1,10 +1,14 @@ | |||
| 1 | − | VERSION = git-20110911 | |
| 1 | + | VERSION = git-20110912 | |
| 2 | 2 | ||
| 3 | 3 | CC = gcc | |
| 4 | 4 | CFLAGS = -Wall -pedantic -O2 | |
| 5 | 5 | LDFLAGS = | |
| 6 | 6 | LIBS = -lX11 -lImlib2 | |
| 7 | 7 | ||
| 8 | + | XFLAGS = | |
| 9 | + | XLIBS = | |
| 10 | + | ||
| 11 | + | DESTDIR = | |
| 8 | 12 | PREFIX = /usr/local | |
| 9 | 13 | MANPREFIX = $(PREFIX)/share/man | |
| 10 | 14 | ||
| @@ -17,8 +21,8 @@ options: | |||
| 17 | 21 | @echo "sxiv build options:" | |
| 18 | 22 | @echo "CC = $(CC)" | |
| 19 | 23 | @echo "CFLAGS = $(CFLAGS)" | |
| 20 | − | @echo "XFLAGS = $(XFLAGS)" | |
| 21 | 24 | @echo "LDFLAGS = $(LDFLAGS)" | |
| 25 | + | @echo "XFLAGS = $(XFLAGS)" | |
| 22 | 26 | @echo "XLIBS = $(XLIBS)" | |
| 23 | 27 | @echo "PREFIX = $(PREFIX)" | |
| 24 | 28 | ||
| @@ -74,16 +74,11 @@ enable the corresponding feature: | |||
| 74 | 74 | files according to their EXIF tag | | | | |
| 75 | 75 | ||
| 76 | 76 | For instance, to enable GIF and EXIF support, the giflib and libexif libraries | |
| 77 | − | need to be installed on your system and you either need to change the first | |
| 78 | − | build command to: | |
| 77 | + | need to be installed on your system and you need to change the first build | |
| 78 | + | command to: | |
| 79 | 79 | ||
| 80 | 80 | $ make XFLAGS="-DGIF_SUPPORT -DEXIF_SUPPORT" XLIBS="-lgif -lexif" | |
| 81 | 81 | ||
| 82 | − | Or you need to run the following commands before building sxiv: | |
| 83 | − | ||
| 84 | − | $ export XFLAGS="-DGIF_SUPPORT -DEXIF_SUPPORT" | |
| 85 | − | $ export XLIBS="-lgif -lexif" | |
| 86 | − | ||
| 87 | 82 | Usage | |
| 88 | 83 | ===== | |
| 89 | 84 | sxiv has two modes of operation: image and thumbnail mode. The default is | |