dsys2

diff Makefile @ 10:5ba9dd6742a0

fixed a crash
author John Tsiombikas <nuclear@siggraph.org>
date Sun, 04 Sep 2011 06:44:49 +0300
parents 94ce16dd20c0
children 65da828bc218
line diff
     1.1 --- a/Makefile	Fri Sep 02 19:12:12 2011 +0300
     1.2 +++ b/Makefile	Sun Sep 04 06:44:49 2011 +0300
     1.3 @@ -1,3 +1,5 @@
     1.4 +PREFIX = /usr/local
     1.5 +
     1.6  src = $(wildcard src/*.c)
     1.7  obj = $(src:.c=.o)
     1.8  dep = $(obj:.o=.d)
     1.9 @@ -32,3 +34,13 @@
    1.10  .PHONY: cleandep
    1.11  cleandep:
    1.12  	rm -f $(dep)
    1.13 +
    1.14 +.PHONY: install
    1.15 +install:
    1.16 +	mkdir -p $(PREFIX)/include $(PREFIX)/lib
    1.17 +	cp $(lib_a) $(PREFIX)/lib/$(lib_a)
    1.18 +	cp src/dsys2.h $(PREFIX)/include/dsys2.h
    1.19 +
    1.20 +.PHONY: uninstall
    1.21 +uninstall:
    1.22 +	rm -f $(PREFIX)/include/dsys2.h $(PREFIX)/lib/$(lib_a)