forked from unwind/gimpilbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (28 loc) · 929 Bytes
/
Makefile
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
42
43
44
#
# Initial attempt and hand-writing a Makefile to build "gimpilbm".
#
GIMPTOOL="gimptool-2.0"
# Trust people named emil to know what works. This is rather heavily heuristical. :)
ifeq "$(shell whoami)" "emil"
DEVMODE=1
else
DEVMODE=0
endif
CFLAGS=`$(GIMPTOOL) --cflags` -std=c99 -Wall -Wextra -pedantic -DDEVMODE=$(DEVMODE) -DDEBUGLEVEL=0
LDFLAGS=`$(GIMPTOOL) --libs`
# --------------------------------------------------------------------------
.PHONY: clean install
gimpilbm.so: byterun1.o grayscale.o gui.o hamehb.o iff.o ilbm.o plugin.o
$(CC) -o $@ $^ $(LDFLAGS)
byterun1.o: byterun1.c byterun1.h
grayscale.o: grayscale.c grayscale.h
gui.o: gui.c gui.h
hamehb.o: hamehb.c hamehb.h
iff.o: iff.c iff.h
ilbm.o: ilbm.c ilbm.h
plugin.o: plugin.c plugin.h
# --------------------------------------------------------------------------
clean:
rm -f *.so *.o
install: gimpilbm.so
$(GIMPTOOL) --install-bin $^