Change file modified. -fPIC flag used for 64-bit compilation. Move operation (rather...
[openjpeg.git] / Makefile
index d8d9e4bc115a6736f08d6454fe6e485de60dd0a4..23e0bc984bba80b04c271633ba840150703ee31e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ INSTALLDIR = /usr/lib
 # Converts cr/lf to just lf
 DOS2UNIX = dos2unix
 
-COMPILERFLAGS = -O3
+COMPILERFLAGS = -O3 -fPIC
 LIBRARIES = -lstdc++
 
 MODULES = $(SRCS:.c=.o)
@@ -34,10 +34,10 @@ default: all
 all: dist
 
 dist: OpenJPEG
-       mkdir dist
-       cp *.a dist/
-       cp *.so dist/
-       cp libopenjpeg/openjpeg.h dist/
+       mkdir -p dist
+       cp *.a dist
+       mv *.so dist
+       cp libopenjpeg/openjpeg.h dist
 
 dos2unix:
        @$(DOS2UNIX) $(SRCS) $(INCLS)