libdrawtext

diff Makefile.in @ 63:0c60394f6737

fixed to work on freebsd
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 05 Oct 2011 02:27:08 +0300
parents 5de80fdb40db
children 55c034e70809
line diff
     1.1 --- a/Makefile.in	Tue Sep 20 15:22:52 2011 +0300
     1.2 +++ b/Makefile.in	Wed Oct 05 02:27:08 2011 +0300
     1.3 @@ -23,8 +23,8 @@
     1.4  endif
     1.5  
     1.6  CC = gcc
     1.7 -CFLAGS = -pedantic -Wall -g -fPIC $(ft2_cflags)
     1.8 -LDFLAGS = $(ft2_libs) $(libgl)
     1.9 +CFLAGS = -pedantic -Wall -g -fPIC -I$(PREFIX)/include $(ft2_cflags)
    1.10 +LDFLAGS = -L$(PREFIX)/lib $(ft2_libs) $(libgl)
    1.11  
    1.12  .PHONY: all
    1.13  all: $(lib_a) $(lib_so)
    1.14 @@ -55,13 +55,15 @@
    1.15  	cp $(lib_a) $(PREFIX)/lib/$(lib_a)
    1.16  	cp $(lib_so) $(PREFIX)/lib/$(lib_so)
    1.17  	cp src/drawtext.h $(PREFIX)/include/drawtext.h
    1.18 -	[ -n "$(linkname)" ] && rm -f $(PREFIX)/lib/$(linkname) || true
    1.19 -	[ -n "$(linkname)" ] && cd $(PREFIX)/lib && ln -s $(lib_so) $(linkname) || true
    1.20 +	[ -n "$(linkname)" ] && rm -f $(PREFIX)/lib/$(linkname) \
    1.21 +		&& cd $(PREFIX)/lib && ln -s $(lib_so) $(linkname) \
    1.22 +		&& ln -s $(lib_so) $(soname) || true
    1.23  
    1.24  
    1.25  .PHONY: uninstall
    1.26  uninstall:
    1.27  	rm -f $(PREFIX)/lib/$(lib_a)
    1.28  	rm -f $(PREFIX)/lib/$(lib_so)
    1.29 -	rm -f $(PREFIX)/lib/$(name).so
    1.30 +	rm -f $(PREFIX)/lib/$(linkname)
    1.31 +	rm -f $(PREFIX)/lib/$(soname)
    1.32  	rm -f $(PREFIX)/include/drawtext.h