lbm2bin
view Makefile @ 5:03b2aa7ed478
added install/uninstall rules
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 20 Jul 2017 07:35:41 +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)