nuclear@0: PREFIX = /usr/local nuclear@0: nuclear@0: src = $(wildcard src/*.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: bin = img2gba nuclear@0: nuclear@0: CFLAGS = -pedantic -Wall -g nuclear@0: LDFLAGS = -limago nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm $(obj) $(bin) nuclear@0: nuclear@0: .PHONY: install nuclear@0: install: nuclear@0: cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)