
#include <../config/config.def>
#include <../config/skeleton.cf>

#if defined (hpux) || defined (HPArchitecture)
EXTRADEFINES=-Dhpux -D_HPUX_SOURCE
#endif

BASICINCLUDES=-I. 
EXTRAINCLUDES=
CC=ccCmd
CDEBUGFLAGS= ccDebugFlags

INCLUDES=$(BASICINCLUDES) $(EXTRAINCLUDES)
DEFINES=$(IMLIBDEFINES) $(EXTRADEFINES)

LIBRARY = libsolex.a
AR = arCmd

OBJECTS = solex.o
SRCS    = solex.c

#ifndef DevelopmentMode
SetPrecious($(LIBRARY))
LibraryFromSrcTarget(solex, $(SRCS))
#if defined(InstallLibs)
InstallLibrary(solex,$(PRIVLIBDIR))
#endif
#if defined(InstallIncludes)
InstallNonExec(solex.h, $(PRIVINCDIR))
#endif
#ifdef HasSunOSSharedLibraries
SharedLibraryTarget(solex,1,$(OBJECTS),.,.)
InstallSharedLibrary(solex,1,$(PRIVLIBDIR))
NormalProgramTarget(testsolex, testsolex.o,libsolex.a,-L. -lsolex,)
#endif
#else
SetPrecious($(PRIVLIBDIR)/$(LIBRARY))
RemoteLibraryFromSrcTarget(solex, $(SRCS))
NormalProgramTarget(testsolex, testsolex.o,$(PRIVLIBDIR)/libsolex.a,-L$(PRIVLIBDIR) -lsolex,)
#endif

DependTarget()

NormalProgramTarget(testsolex, testsolex.o,libsolex.a,-L. -lsolex,)

SoftCleanTarget()
