img2gba

annotate Makefile @ 0:c359fcbd2422

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