-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 812 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Makefile for fargo - Licensed under GPL v3.0 - See LICENSE for more info
CFLAGS = -c -std=c11 -Wall -Wextra -Wpedantic $(shell pkg-config vips --cflags)
LDFLAGS = $(shell pkg-config vips --libs)
SOURCES = src/main.c src/util.c src/alpha.c src/grayscale.c
OBJECTS = $(SOURCES:.c=.o)
EXECUTABLE = fargo
all: $(SOURCES) $(EXECUTABLE) doc
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.c.o:
$(CC) $(CFLAGS) $< -o $@
doc:
pod2man -u --release="fargo" --name="fargo" --center=" " fargo.1.pod > fargo.1
install:
install -m755 -D fargo $(DESTDIR)/usr/bin/fargo
install -m644 -D fargo.1 $(DESTDIR)/usr/share/man/man1/fargo.1
remove:
rm $(DESTDIR)/usr/bin/fargo
rm $(DESTDIR)/usr/share/man/man1/fargo.1
clean:
rm -f $(OBJECTS) $(EXECUTABLE) fargo.1
rm -f core.* vgcore.* callgrind.out.*