libpsys

changeset 12:55a2aa4443f7

mac
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 29 Aug 2012 05:11:47 +0300
parents 23d4c50616ff
children 1b0db53d5b5b
files Makefile.in
diffstat 1 files changed, 12 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/Makefile.in	Wed Aug 29 05:10:46 2012 +0300
     1.2 +++ b/Makefile.in	Wed Aug 29 05:11:47 2012 +0300
     1.3 @@ -5,8 +5,9 @@
     1.4  hdr = $(wildcard src/*.h)
     1.5  
     1.6  ifeq ($(shell uname -s), Darwin)
     1.7 -	lib_so = psys.dylib
     1.8 +	lib_so = libpsys.dylib
     1.9  	shared = -dynamiclib
    1.10 +	libgl = -framework OpenGL
    1.11  else
    1.12  	somajor = 0
    1.13  	sominor = 1
    1.14 @@ -14,13 +15,14 @@
    1.15  	lib_so = $(soname).$(sominor)
    1.16  	devlink = libpsys.so
    1.17  	shared = -shared -Wl,-soname,$(soname)
    1.18 +	libgl = -lGL
    1.19  endif
    1.20  
    1.21  
    1.22  CC = gcc
    1.23  AR = ar
    1.24  CFLAGS = -std=c89 -pedantic -Wall $(dbg) $(opt) -fPIC -Isrc
    1.25 -LDFLAGS = -lanim -limago -lvmath
    1.26 +LDFLAGS = -lanim -limago -lvmath $(libgl)
    1.27  
    1.28  .PHONY: all
    1.29  all: $(lib_a) $(lib_so)
    1.30 @@ -52,7 +54,14 @@
    1.31  
    1.32  .PHONY: uninstall
    1.33  uninstall:
    1.34 -	@echo TODO
    1.35 +	rm -f $(DESTDIR)$(PREFIX)/include/psys/*.h
    1.36 +	rmdir $(DESTDIR)$(PREFIX)/include/psys
    1.37 +	rm -f $(DESTDIR)$(PREFIX)/lib/$(lib_a)
    1.38 +	rm -f $(DESTDIR)$(PREFIX)/lib/$(lib_so)
    1.39 +	[ -n "$(soname)" ] \
    1.40 +		&& cd $(DESTDIR)$(PREFIX)/lib \
    1.41 +		&& rm -f $(soname) $(devlink) \
    1.42 +		|| true
    1.43  
    1.44  .PHONY: clean
    1.45  clean: