#define DoNormalLib NormalLibXm
#define DoSharedLib SharedLibXm
#define DoDebugLib DebugLibXm
#define DoProfileLib ProfileLibXm
#include <Library.tmpl>

SOWCREV = 1.2

HEADERS = WcCreate.h

INCLUDES = -I. -I$(TOP) -I$(INCLUDESRC)

SRCS = WcmCreate.c WcmCallb.c WcmConvert.c \
	WcmName.c WcmReg.c WcmActions.c WcmRegXt.c

OBJS = WcmCreate.o WcmCallb.o WcmConvert.o \
	WcmName.o WcmReg.o WcmActions.o WcmRegXt.o

DEFINES = -DMOTIF=1 -DMOTIF_MINOR=1 -D_NO_PROTO
LibraryObjectRule()

#if DoSharedLib
#if DoNormalLib
SharedLibraryTarget(Wc,$(SOWCREV),$(OBJS),shared,..)
#else
SharedLibraryTarget(Wc,$(SOWCREV),$(OBJS),.,.)
#endif
InstallSharedLibrary(Wc,$(SOWCREV),$(USRLIBDIR))
#endif
#if DoNormalLib
NormalLibraryTarget(Wc,$(OBJS))
InstallLibrary(Wc,$(USRLIBDIR))
#endif
#if DoProfileLib
ProfiledLibraryTarget(Wc,$(OBJS))
InstallLibrary(Wc_p,$(USRLIBDIR))
#endif
#if DoDebugLib
DebuggedLibraryTarget(Wc,$(OBJS))
InstallLibrary(Wc_d,$(USRLIBDIR))
#endif


InstallMultiple($(HEADERS),$(USRINCDIR)/Xm)

DependTarget()
