lspart
view Makefile @ 2:99bb8b4ef1bc
added install
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 29 Mar 2013 21:54:33 +0200 |
parents | 29d89c00e611 |
children |
line source
1 PREFIX = /usr/local
2 src = $(wildcard *.c)
3 obj = $(src:.c=.o)
4 bin = lspart
6 CC = gcc
7 CFLAGS = -pedantic -Wall -g
9 $(bin): $(obj)
10 $(CC) -o $@ $(obj) $(LDFLAGS)
12 .PHONY: clean
13 clean:
14 rm -f $(obj) $(bin)
16 .PHONY: install
17 install:
18 mkdir -p $(DESTDIR)$(PREFIX)/bin
19 cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
21 .PHONY: uninstall
22 uninstall:
23 rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)