img2gba
view Makefile @ 0:c359fcbd2422
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 25 Jun 2014 18:19:52 +0300 |
parents | |
children |
line source
1 PREFIX = /usr/local
3 src = $(wildcard src/*.c)
4 obj = $(src:.c=.o)
5 bin = img2gba
7 CFLAGS = -pedantic -Wall -g
8 LDFLAGS = -limago
10 $(bin): $(obj)
11 $(CC) -o $@ $(obj) $(LDFLAGS)
14 .PHONY: clean
15 clean:
16 rm $(obj) $(bin)
18 .PHONY: install
19 install:
20 cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)