XCOMM Clean this up later by putting in Project.tmpl!! -jas
#define NormalLibpcthreads (HasSaberC | HasGcc)

#define DoNormalLib NormalLibpcthreads
#define DoSharedLib SharedLibpcthreads
#define DoDebugLib DebugLibpcthreads
#define DoProfileLib ProfileLibpcthreads
#include <Library.tmpl>

       LINTLIBS = $(LINTXLIB)

HEADERS = \
	pcthreads.h

SRCS = pcthreads.c	

OBJS = pcthreads.o

LibraryObjectRule()

#if DoNormalLib
NormalLibraryTarget(pcthreads,$(OBJS))
InstallLibrary(pcthreads,$(USRLIBDIR))
#endif
#if DoProfileLib
ProfiledLibraryTarget(pcthreads,$(OBJS))
InstallLibrary(pcthreads_p,$(USRLIBDIR))
#endif
#if DoDebugLib
DebuggedLibraryTarget(pcthreads,$(OBJS))
InstallLibrary(pcthreads_d,$(USRLIBDIR))
#endif

LintLibraryTarget(pcthreads,$(SRCS))
InstallLintLibrary(pcthreads,$(LINTLIBDIR))

BuildIncludes($(HEADERS),.,.)
InstallMultiple($(HEADERS),$(INCDIR))

InstallManPage(pcthreads,$(MANDIR))

#ifdef HasSaberC
saber_src:
	XCOMM load $(CFLAGS) $(SRCS)
#endif

DependTarget()

NormalLintTarget($(SRCS))
