img2gba

diff Makefile @ 0:c359fcbd2422

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 25 Jun 2014 18:19:52 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Wed Jun 25 18:19:52 2014 +0300
     1.3 @@ -0,0 +1,20 @@
     1.4 +PREFIX = /usr/local
     1.5 +
     1.6 +src = $(wildcard src/*.c)
     1.7 +obj = $(src:.c=.o)
     1.8 +bin = img2gba
     1.9 +
    1.10 +CFLAGS = -pedantic -Wall -g
    1.11 +LDFLAGS = -limago
    1.12 +
    1.13 +$(bin): $(obj)
    1.14 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.15 +
    1.16 +
    1.17 +.PHONY: clean
    1.18 +clean:
    1.19 +	rm $(obj) $(bin)
    1.20 +
    1.21 +.PHONY: install
    1.22 +install:
    1.23 +	cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)