浏览代码

Grouped optional dependencies in Makefile

master
Bert Münnich 10 年前
父节点
当前提交
e228594391
共有 1 个文件被更改,包括 14 次插入3 次删除
  1. +14
    -3
      Makefile

+ 14
- 3
Makefile 查看文件

@@ -1,13 +1,24 @@
VERSION := git-20141201 VERSION := git-20141208


PREFIX := /usr/local PREFIX := /usr/local
MANPREFIX := $(PREFIX)/share/man MANPREFIX := $(PREFIX)/share/man


CC ?= gcc CC ?= gcc
CFLAGS += -std=c99 -Wall -pedantic CFLAGS += -std=c99 -Wall -pedantic
CPPFLAGS += -I$(PREFIX)/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB CPPFLAGS += -I$(PREFIX)/include -D_XOPEN_SOURCE=500
LDFLAGS += -L$(PREFIX)/lib LDFLAGS += -L$(PREFIX)/lib
LIBS := -lX11 -lImlib2 -lexif -lgif LIBS := -lX11 -lImlib2

# optional dependencies:
# giflib: gif animations
CPPFLAGS += -DHAVE_GIFLIB
LIBS += -lgif
# libexif: jpeg auto-orientation, exif thumbnails
CPPFLAGS += -DHAVE_LIBEXIF
LIBS += -lexif


.PHONY: clean install uninstall


SRC := commands.c image.c main.c options.c thumbs.c util.c window.c SRC := commands.c image.c main.c options.c thumbs.c util.c window.c
DEP := $(SRC:.c=.d) DEP := $(SRC:.c=.d)


||||||
x
 
000:0
正在加载...
取消
保存