SHARE
TWEET

Update for glui library pkgconfig

a guest Feb 18th, 2015 192 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- makefile.old        2015-02-18 14:22:07.660757736 +0100
  2. +++ makefile    2015-02-18 14:53:37.170739910 +0100
  3. @@ -5,15 +5,15 @@
  4.  #CC=gcc
  5.  
  6.  # Compiler options
  7. -OPTS=-g
  8. -OPTS=-O0
  9. +#OPTS=-g
  10. +#OPTS=-O0
  11.  #OPTS=-O2
  12.  
  13.  UNAME = $(shell uname)
  14.  
  15.  ifeq ($(UNAME), Linux)
  16.  CXX       = g++
  17. -CPPFLAGS += $(OPTS) -Wall -pedantic
  18. +CPPFLAGS += $(OPTS) -Wall -pedantic $(CFLAGS) -fpic
  19.  endif
  20.  
  21.  #######################################
  22. @@ -44,13 +44,15 @@
  23.  
  24.  GLUI_LIB = lib/libglui.a
  25.  
  26. +GLUI_LIB_SHARED = lib/libglui.so.2
  27. +
  28.  GLUI_EXAMPLES = bin/example1 bin/example2 bin/example3 bin/example4 bin/example5 bin/example6
  29.  
  30.  GLUI_TOOLS = bin/ppm2array
  31.  
  32.  .PHONY: all setup examples tools clean depend doc doc-pdf doc-dist dist
  33.  
  34. -all: setup $(GLUI_LIB) examples tools
  35. +all: setup $(GLUI_LIB) $(GLUI_LIB_SHARED) examples tools
  36.  
  37.  setup:
  38.         mkdir -p bin
  39. @@ -69,6 +71,8 @@
  40.  $(GLUI_LIB): $(GLUI_OBJS)
  41.         ar -r $(GLUI_LIB) $(GLUI_OBJS)
  42.  
  43. +$(GLUI_LIB_SHARED): $(GLUI_OBJS)
  44. +       $(CXX) -shared -o $@ $^
  45.  .cpp.o:
  46.         $(CXX) $(CPPFLAGS) -c $<
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top