diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-05-18 22:10:43 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-05-18 22:10:43 +0000 |
commit | 725f68b6808a8a30778f58223fac75386f082785 (patch) | |
tree | ccba410760749d45139e5e78fd5e08f416ade1a0 /plugins/FreeImage/Makefile.solaris | |
parent | f920ef497f3299ae24fe783ce03bdd93b419f764 (diff) |
plugins folders renaming
git-svn-id: http://svn.miranda-ng.org/main/trunk@61 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FreeImage/Makefile.solaris')
-rw-r--r-- | plugins/FreeImage/Makefile.solaris | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/plugins/FreeImage/Makefile.solaris b/plugins/FreeImage/Makefile.solaris new file mode 100644 index 0000000000..a17c68eb30 --- /dev/null +++ b/plugins/FreeImage/Makefile.solaris @@ -0,0 +1,65 @@ +# Solaris9 makefile for FreeImage. Tested on Solaris9 with tools from
+# Sunfreeware.com.
+
+# This file can be generated by ./gensrclist.sh
+include Makefile.srcs
+
+# General configuration variables:
+CC = gcc
+CPP = g++
+AR = ar
+
+INSTALLDIR = /usr/local
+
+# Converts cr/lf to just lf
+DOS2UNIX = dos2unix
+
+COMPILERFLAGS = -O3
+LIBRARIES = -lstdc++
+
+MODULES = $(SRCS:.c=.o)
+MODULES := $(MODULES:.cpp=.o)
+CFLAGS = $(COMPILERFLAGS) $(INCLUDE)
+CPPFLAGS = $(COMPILERFLAGS) -Wno-ctor-dtor-privacy $(INCLUDE)
+
+TARGET = freeimage
+STATICLIB = lib$(TARGET).a
+SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so
+LIBNAME = lib$(TARGET).so.$(VER_MAJOR)
+
+
+
+default: all
+
+all: dist
+
+dist: FreeImage
+ cp *.a Dist
+ cp *.so Dist
+ cp Source/FreeImage.h Dist
+
+dos2unix:
+ @$(DOS2UNIX) $(SRCS) $(INCLS)
+
+FreeImage: $(STATICLIB) $(SHAREDLIB)
+
+.c.o:
+ $(CC) $(CFLAGS) -c $< -o $@
+
+.cpp.o:
+ $(CPP) $(CPPFLAGS) -c $< -o $@
+
+$(STATICLIB): $(MODULES)
+ $(AR) r $@ $(MODULES)
+
+$(SHAREDLIB): $(MODULES)
+ $(CC) -s -G -Wl,-soname=$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES)
+
+install:
+ install -m 644 -o root -g root Source/FreeImage.h $(INSTALLDIR)/include
+ install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)/lib
+ install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)/lib
+ ln -sf $(SHAREDLIB) $(INSTALLDIR)/lib/$(LIBNAME)
+
+clean:
+ rm -rf core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
|