-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.gimptool
41 lines (33 loc) · 877 Bytes
/
Makefile.gimptool
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
33
34
35
36
37
38
39
40
41
# Older version of Makefile before autotools versions.
# You may try this one if the autotools version does not work.
# Use gimptool-2.0 to set these variables
GIMPTOOL=gimptool-2.0
PLUGIN_BUILD=$(GIMPTOOL) --build
PLUGIN_INSTALL=$(GIMPTOOL) --install-bin
GCC=gcc
LIBS=$(shell pkg-config fftw3 gimp-2.0 --libs) -lm
CFLAGS=-O2 $(shell pkg-config fftw3 gimp-2.0 --cflags)
VERSION=0.4.3
DIR=fourier-$(VERSION)
export
FILES= \
fourier.c \
Makefile \
Makefile.win \
README \
README.Moire \
fourier.dev
all: fourier
# Use of pkg-config is the recommended way
fourier: fourier.c
$(GCC) $(CFLAGS) -o fourier fourier.c $(LIBS)
# To avoid gimptool use, just copy the fourier in the directory you want
install: fourier
$(PLUGIN_INSTALL) fourier
dist:
mkdir $(DIR)
cp $(FILES) $(DIR)
tar czf "$(DIR).tar.gz" $(DIR)
rm -Rf $(DIR)
clean:
rm -f fourier