# Simple Imakefile, courtesy of Robert Withrow.  Use xmkmf to make the
# Makefile. 

RELEASE = 1.0

EXTRA_INCLUDES = -I$(TOP) -I. 

HEADERS = ControlP.h Xc.h BarGraf.h Value.h\
	Control.h BarGrafP.h ValueP.h

SRCS = Control.c Value.c BarGraf.c 
OBJS = Control.o Value.o BarGraf.o

DEPXCLIB = libXc.a
XCLIB = -lXc
LOCAL_LDFLAGS = -L$(TOP)
LOCAL_LIBS = $(XCLIB) XawClientLibs

# Here we must protect against different linking semantics...
#if ProjectX < 5
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
#endif

NormalLibraryTarget(Xc,$(OBJS))
InstallLibrary(Xc,$(USRLIBDIR))

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

#clean::
#	$(RM) -r $(TOP)/X11

World::
	@echo ""
	@echo "Building Release "$(RELEASE)" of the Xc Widget Set"
	@echo ""
	$(MAKE) clean
	$(MAKE) includes
	$(MAKE) depend
	$(MAKE) $(WORLDOPTS)

DependTarget()

