summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbustico2006-06-01 12:08:21 +0000
committerbustico2006-06-01 12:08:21 +0000
commit0af51dbec459d2555a5597dc092c7d012f3df250 (patch)
tree5a4a4c69c439dc9508bac72bb3f1c533389482f1 /Makefile
parent9ac55df54fbcf5b17f53e38a18d538e9af074488 (diff)
downloadivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.zip
ivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.tar.gz
ivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.tar.bz2
ivy-cplusplus-0af51dbec459d2555a5597dc092c7d012f3df250.tar.xz
ajout du filtrage statique des classes de message
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2316a01..281f72f 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,9 @@ ifeq ($(os),Darwin)
LD = g++ -dynamiclib -single_module
LDFLAGS = -L$(IVY_PATH) -L/sw/lib -framework OpenGL -framework AGL -framework Carbon
else
+ PERHAPS64 := $(shell uname --machine | perl -ne "print /64/ ? '64' : '';")
+ LIB:= lib$(PERHAPS64)
+ XTLIB = -L/usr/X11R6/$(LIB)
CPPFLAGS = -MMD -I/usr/X11R6/include
DSO_EXT = .so
LD = g++ -shared -fPIC
@@ -17,6 +20,7 @@ else
ifndef PREFIX
PREFIX=/usr
endif
+ LDFLAGS = -L$(PREFIX)/$(LIB) $(XTLIB)
endif
@@ -44,9 +48,6 @@ LIBIVY_DEPLIBS = -livy
LIBIVY_GLFW_SHARED = $(LIBIVY_GLFW)$(DSO_EXT)
LIBIVY_GLFW_DEPLIBS = -lglfw -livy -lX11 -lXext -lXxf86vm -lGL -lpthread
-PERHAPS64 := $(shell uname --machine | perl -ne "print /64/ ? '64' : '';")
-LIB:= lib$(PERHAPS64)
-XTLIB = -L/usr/X11R6/$(LIB)/
#a mettre dans les makefiles generant les executables
#LLDLIBS= -rpath. -L. -lTextureLabel -lInventor -lInventorXt -lXm -lXt -lttf -lGL -lGLU -lm
@@ -83,10 +84,10 @@ install:
install -m 0644 Ivy*.h $(DESTDIR)$(PREFIX)/include/Ivy
# libs
mkdir -p $(DESTDIR)$(PREFIX)/$(LIB)
- install -m 0644 $(LIBIVY_STATIC) $(DESTDIR)$(PREFIX)/$(LIB)
- install -m 0644 $(LIBIVY_GLFW_STATIC) $(DESTDIR)$(PREFIX)/$(LIB)
- install -m 0644 $(LIBIVY_SHARED) $(DESTDIR)$(PREFIX)/$(LIB)
- install -m 0644 $(LIBIVY_GLFW_SHARED) $(DESTDIR)$(PREFIX)/$(LIB)
+ install -m 0644 $(LIBIVY_STATIC) $(DESTDIR)$(PREFIX)/$(LIB)/$(DEBUG)
+ install -m 0644 $(LIBIVY_GLFW_STATIC) $(DESTDIR)$(PREFIX)/$(LIB)/$(DEBUG)
+ install -m 0644 $(LIBIVY_SHARED) $(DESTDIR)$(PREFIX)/$(LIB)/$(DEBUG)
+ install -m 0644 $(LIBIVY_GLFW_SHARED) $(DESTDIR)$(PREFIX)/$(LIB)/$(DEBUG)
LLDLIBS = -L $(XTLIB) -Wl,-rpath,$(XTLIB) -L. -Wl,-rpath,. -L$(IVY_PATH)/src