lbm2bin

view Makefile @ 8:aea67378e657

crop
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Jul 2017 08:22:59 +0300
parents 0b96363742d3
children
line source
1 PREFIX = /usr/local
3 src = $(wildcard src/*.c)
4 obj = $(src:.c=.o)
6 bin = lbm2bin
8 CFLAGS = -pedantic -Wall -g
9 LDFLAGS = -lm
11 $(bin): $(obj)
12 $(CC) -o $@ $(obj) $(LDFLAGS)
14 .PHONY: clean
15 clean:
16 rm -f $(obj) $(bin)
18 .PHONY: install
19 install: $(bin)
20 mkdir -p $(DESTDIR)$(PREFIX)/bin
21 cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
23 .PHONY: uninstall
24 uninstall:
25 rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)