projects
/
img2tiles
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added readme and license
[img2tiles]
/
Makefile
1
PREFIX = /usr/local
2
3
src = $(wildcard src/*.c)
4
obj = $(src:.c=.o)
5
bin = img2tiles
6
7
CFLAGS = -pedantic -Wall -g
8
LDFLAGS = -lpng -lz
9
10
$(bin): $(obj)
11
$(CC) -o $@ $(obj) $(LDFLAGS)
12
13
.PHONY: clean
14
clean:
15
rm -f $(obj) $(bin)
16
17
.PHONY: install
18
install: $(bin)
19
mkdir -p $(DESTDIR)$(PREFIX)/bin
20
cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
21
22
.PHONY: uninstall
23
uninstall:
24
rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)