#ifndef XCOMM #define XCOMM # #endif XCOMM XCOMM Imakefile for display, animate, montage, and import. XCOMM XCOMM Copyright 1997 E. I. du Pont de Nemours & Company XCOMM XCOMM Permission to use, copy, modify, distribute, and sell this software and XCOMM its documentation for any purpose is hereby granted without fee, XCOMM provided that the above Copyright notice appear in all copies and that XCOMM both that Copyright notice and this permission notice appear in XCOMM supporting documentation, and that the name of E. I. du Pont de Nemours XCOMM & Company not be used in advertising or publicity pertaining to XCOMM distribution of the software without specific, written prior XCOMM permission. E. I. du Pont de Nemours & Company makes no representations XCOMM about the suitability of this software for any purpose. It is provided XCOMM "as is" without express or implied warranty. XCOMM XCOMM E. I. du Pont de Nemours & Company disclaims all warranties with regard XCOMM to this software, including all implied warranties of merchantability XCOMM and fitness, in no event shall E. I. du Pont de Nemours & Company be XCOMM liable for any special, indirect or consequential damages or any XCOMM damages whatsoever resulting from loss of use, data or profits, whether XCOMM in an action of contract, negligence or other tortious action, arising XCOMM out of or in connection with the use or performance of this software. XCOMM #include "../Magick.tmpl" #ifdef RsArchitecture REQUIREDLIBS= $(LOCAL_LDFLAGS) $(HDF_LIBRARIES) $(JBIG_LIBRARIES) \ $(JPEG_LIBRARIES) $(MPEG_LIBRARIES) $(PNG_LIBRARIES) $(TIFF_LIBRARIES) \ $(XPM_LIBRARIES) -lisode -lXext -lX11 #endif #ifdef AlphaArchitecture SO_REQLIBS= -lX11 -lc #endif HEADERS = magick.h image.h gems.h compress.h monitor.h error.h utility.h \ X.h widget.h PreRvIcccm.h plug-ins.h SRCS = widget.c X.c image.c effects.c shear.c segment.c quantize.c colors.c \ gems.c signature.c decode.c encode.c compress.c utility.c monitor.c error.c \ PreRvIcccm.c OBJS = widget.o X.o image.o effects.o shear.o segment.o quantize.o colors.o \ gems.o signature.o decode.o encode.o compress.o utility.o monitor.o error.o \ PreRvIcccm.o #ifdef HPArchitecture ARLIB = libMagick.a SHLIB = libMagick.sl # Add -Dhpux9 if compiling under HP-UX 9.X EXTRA_DEFINES = +z # -Dhpux9 all: install-arlib install-shlib $(ARLIB): $(OBJS) -$(RM) $(ARLIB) -ar rc $(ARLIB) $(OBJS) $(SHLIB): $(OBJS) -ld -b -s -o $(SHLIB) $(OBJS) install-arlib: $(ARLIB) -mkdir -p $(MAGICKDIR) -cp $(ARLIB) $(MAGICKDIR) -chmod a+r $(MAGICKDIR) $(MAGICKDIR)/$(ARLIB) install-shlib: $(SHLIB) -mkdir -p $(MAGICKDIR) -cp $(SHLIB) $(MAGICKDIR) -chmod a+rx $(MAGICKDIR) $(MAGICKDIR)/$(SHLIB) clean:: -$(RM) $(ARLIB) $(SHLIB) #else #ifndef DoNormalLib #define DoNormalLib YES #endif #define IncSubdir magick #ifndef SGIArchitecture SOMAGICKLIBREV= 3.8.6 #endif #if (ProjectX < 5) STD_DEFINES = LibraryDefines CDEBUGFLAGS = LibraryCDebugFlags #if DoSharedLib SharedLibraryObjectRule() NormalSharedLibraryTarget(Magick,$(SOMAGICKLIBREV),$(OBJS)) InstallSharedLibrary(Magick,$(SOMAGICKLIBREV),$(LOCALLIB)) #else NormalLibraryObjectRule() NormalLibraryTarget(Magick,$(OBJS)) InstallLibrary(Magick,$(LOCALLIB)) #endif #endif #if (ProjectX == 5) #define LibName Magick #define SoRev SOMAGICKLIBREV #include LibraryObjectRule() #if DoSharedLib SharedLibraryTarget(Magick,$(SOMAGICKLIBREV),$(OBJS),shared,..) InstallSharedLibrary(Magick,$(SOMAGICKLIBREV),$(LOCALLIB)) #ifndef RsArchitecture NormalLibraryTarget(Magick,$(OBJS)) InstallLibrary(Magick,$(LOCALLIB)) #endif #else NormalLibraryTarget(Magick,$(OBJS)) InstallLibrary(Magick,$(LOCALLIB)) #endif #endif #if (ProjectX > 5) #define SoRev SOMAGICKLIBREV #include LibraryObjectRule() #if DoSharedLib SharedLibraryTarget(Magick,$(SOMAGICKLIBREV),$(OBJS),.,.) InstallSharedLibrary(Magick,$(SOMAGICKLIBREV),$(LOCALLIB)) #ifndef RsArchitecture NormalLibraryTarget(Magick,$(OBJS)) InstallLibrary(Magick,$(LOCALLIB)) #endif #else UnsharedLibraryTarget(Magick,$(OBJS),.,.) InstallLibrary(Magick,$(LOCALLIB)) #endif #endif #endif /* HPArchitecture */ InstallMultiple($(HEADERS),$(LOCALINC)) DependTarget()