# HG changeset patch # User John Tsiombikas # Date 1346206307 -10800 # Node ID 55a2aa4443f7283acbed815a829aebbebf004603 # Parent 23d4c50616fff59051952d1c4a4aa5607103ebd9 mac diff -r 23d4c50616ff -r 55a2aa4443f7 Makefile.in --- a/Makefile.in Wed Aug 29 05:10:46 2012 +0300 +++ b/Makefile.in Wed Aug 29 05:11:47 2012 +0300 @@ -5,8 +5,9 @@ hdr = $(wildcard src/*.h) ifeq ($(shell uname -s), Darwin) - lib_so = psys.dylib + lib_so = libpsys.dylib shared = -dynamiclib + libgl = -framework OpenGL else somajor = 0 sominor = 1 @@ -14,13 +15,14 @@ lib_so = $(soname).$(sominor) devlink = libpsys.so shared = -shared -Wl,-soname,$(soname) + libgl = -lGL endif CC = gcc AR = ar CFLAGS = -std=c89 -pedantic -Wall $(dbg) $(opt) -fPIC -Isrc -LDFLAGS = -lanim -limago -lvmath +LDFLAGS = -lanim -limago -lvmath $(libgl) .PHONY: all all: $(lib_a) $(lib_so) @@ -52,7 +54,14 @@ .PHONY: uninstall uninstall: - @echo TODO + rm -f $(DESTDIR)$(PREFIX)/include/psys/*.h + rmdir $(DESTDIR)$(PREFIX)/include/psys + rm -f $(DESTDIR)$(PREFIX)/lib/$(lib_a) + rm -f $(DESTDIR)$(PREFIX)/lib/$(lib_so) + [ -n "$(soname)" ] \ + && cd $(DESTDIR)$(PREFIX)/lib \ + && rm -f $(soname) $(devlink) \ + || true .PHONY: clean clean: