XDCLASS = $(VISUROOT)/src/motifxp
XPMHDRS = $(VISUROOT)/xpm/lib
XPMLIB =  $(VISUROOT)/user_widgets/obj
XDCLASSLIBS = $(XDCLASS)/lib/libmotifxp.a
MOTIFLIBS = -L$(XPMLIB) -lXpm -R/usr/dt/lib -L/usr/dt/lib -lXm -R/usr/openwin/lib -L/usr/openwin/lib -lXt -lX11
#MOTIFLIBS = -lXm -lXt -lX11 -lPW
MRMLIBS=-lMrm

CFLAGS=-I.
CPPFLAGS=-I. -g -I$(XDCLASS)/h -I$(XPMHDRS) -I/usr/openwin/include -I/usr/dt/include

UIL=uil
UILFLAGS=-I/usr/include/uil

#WorkShop Visual:XD_C_PROGRAMS=XDG_C_PROGRAM_LIST

#X-Designer:XD_C_PROGRAM_OBJECTS=XDG_C_PROGRAM_OBJECT_LIST

#X-Designer:XD_C_PROGRAM_SOURCES=XDG_C_PROGRAM_SOURCE_LIST

#X-Designer:XD_C_OBJECTS=XDG_C_OBJECT_LIST

#X-Designer:XD_C_SOURCES=XDG_C_SOURCE_LIST

#X-Designer:XD_C_STUB_OBJECTS=XDG_C_STUB_OBJECT_LIST

#X-Designer:XD_C_STUB_SOURCES=XDG_C_STUB_SOURCE_LIST

#X-Designer:XD_CC_PROGRAMS=XDG_CC_PROGRAM_LIST

#DO NOT EDIT >>>
XD_CC_PROGRAMS=\
		main\

#<<< DO NOT EDIT

#X-Designer:XD_CC_PROGRAM_OBJECTS=XDG_CC_PROGRAM_OBJECT_LIST

#DO NOT EDIT >>>
XD_CC_PROGRAM_OBJECTS=\
		main.o\

#<<< DO NOT EDIT

#X-Designer:XD_CC_PROGRAM_SOURCES=XDG_CC_PROGRAM_SOURCE_LIST

#DO NOT EDIT >>>
XD_CC_PROGRAM_SOURCES=\
		main.cxx\

#<<< DO NOT EDIT

#X-Designer:XD_CC_OBJECTS=XDG_CC_OBJECT_LIST

#X-Designer:XD_CC_SOURCES=XDG_CC_SOURCE_LIST

#X-Designer:XD_CC_STUB_OBJECTS=XDG_CC_STUB_OBJECT_LIST

#DO NOT EDIT >>>
XD_CC_STUB_OBJECTS=\
		specific.o\
		shared.o\

#<<< DO NOT EDIT

#X-Designer:XD_CC_STUB_SOURCES=XDG_CC_STUB_SOURCE_LIST

#DO NOT EDIT >>>
XD_CC_STUB_SOURCES=\
		specific.cxx\
		shared.cxx\

#<<< DO NOT EDIT

#X-Designer:XD_C_FOR_UIL_PROGRAMS=XDG_C_FOR_UIL_PROGRAM_LIST

#X-Designer:XD_C_FOR_UIL_PROGRAM_OBJECTS=XDG_C_FOR_UIL_PROGRAM_OBJECT_LIST

#X-Designer:XD_C_FOR_UIL_PROGRAM_SOURCES=XDG_C_FOR_UIL_PROGRAM_SOURCE_LIST

#X-Designer:XD_C_FOR_UIL_OBJECTS=XDG_C_FOR_UIL_OBJECT_LIST

#X-Designer:XD_C_FOR_UIL_SOURCES=XDG_C_FOR_UIL_SOURCE_LIST

#X-Designer:XD_UIL_OBJECTS=XDG_UIL_OBJECT_LIST

XD_ALL_C_SOURCES=$(XD_C_PROGRAM_SOURCES) $(XD_C_SOURCES) $(XD_C_STUB_SOURCES) $(XD_C_FOR_UIL_PROGRAM_SOURCES) $(XD_C_FOR_UIL_SOURCES)

XD_ALL_CC_SOURCES=$(XD_CC_PROGRAM_SOURCES) $(XD_CC_SOURCES) $(XD_CC_STUB_SOURCES)

all: $(XD_C_PROGRAMS) $(XD_CC_PROGRAMS) $(XD_C_FOR_UIL_PROGRAMS) $(XD_UIL_OBJECTS)

depend:
	makedepend -- $(CFLAGS) $(CPPFLAGS) -- $(XD_ALL_C_SOURCES)
	makedepend -a -- $(CCFLAGS) $(CPPFLAGS) -- $(XD_ALL_CC_SOURCES)

clean:
	rm -f $(XD_C_PROGRAMS) $(XD_C_PROGRAM_OBJECTS) $(XD_C_OBJECTS)
	rm -f $(XD_CC_PROGRAMS) $(XD_CC_PROGRAM_OBJECTS) $(XD_CC_OBJECTS)
	rm -f $(XD_C_STUB_OBJECTS)
	rm -f $(XD_CC_STUB_OBJECTS)
	rm -f $(XD_C_FOR_UIL_PROGRAMS) $(XD_C_FOR_UIL_PROGRAM_OBJECTS) $(XD_C_FOR_UIL_OBJECTS)
	rm -f $(XD_UIL_OBJECTS)

#X-Designer:XDG_C_PROGRAM: XDG_C_PROGRAM_OBJECT $(XD_C_OBJECTS) $(XD_C_STUB_OBJECTS)
#X-Designer:	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o XDG_C_PROGRAM XDG_C_PROGRAM_OBJECT $(XD_C_OBJECTS) $(XD_C_STUB_OBJECTS) $(MOTIFLIBS) $(LDLIBS)

#X-Designer:XDG_C_PROGRAM_OBJECT: XDG_C_PROGRAM_SOURCE
#X-Designer:	$(CC) $(CFLAGS) $(CPPFLAGS) -c XDG_C_PROGRAM_SOURCE

#X-Designer:XDG_C_OBJECT: XDG_C_SOURCE
#X-Designer:	$(CC) $(CFLAGS) $(CPPFLAGS) -c XDG_C_SOURCE

#X-Designer:XDG_C_STUB_OBJECT: XDG_C_STUB_SOURCE
#X-Designer:	$(CC) $(CFLAGS) $(CPPFLAGS) -c XDG_C_STUB_SOURCE

#X-Designer:XDG_CC_PROGRAM: XDG_CC_PROGRAM_OBJECT $(XD_CC_OBJECTS) $(XD_CC_STUB_OBJECTS)
#X-Designer:	$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) -o XDG_CC_PROGRAM XDG_CC_PROGRAM_OBJECT $(XD_CC_OBJECTS) $(XD_CC_STUB_OBJECTS) $(XDCLASSLIBS) $(MOTIFLIBS) $(LDLIBS)

#DO NOT EDIT >>>
main: main.o $(XD_CC_OBJECTS) $(XD_CC_STUB_OBJECTS)
	$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) -o main main.o $(XD_CC_OBJECTS) $(XD_CC_STUB_OBJECTS) $(XDCLASSLIBS) $(MOTIFLIBS) $(LDLIBS)
#<<< DO NOT EDIT

#X-Designer:XDG_CC_PROGRAM_OBJECT: XDG_CC_PROGRAM_SOURCE
#X-Designer:	$(CCC) $(CCFLAGS) $(CPPFLAGS) -c XDG_CC_PROGRAM_SOURCE

#DO NOT EDIT >>>
main.o: main.cxx
	$(CCC) $(CCFLAGS) $(CPPFLAGS) -c main.cxx
#<<< DO NOT EDIT

#X-Designer:XDG_CC_OBJECT: XDG_CC_SOURCE
#X-Designer:	$(CCC) $(CCFLAGS) $(CPPFLAGS) -c XDG_CC_SOURCE

#X-Designer:XDG_CC_STUB_OBJECT: XDG_CC_STUB_SOURCE
#X-Designer:	$(CCC) $(CCFLAGS) $(CPPFLAGS) -c XDG_CC_STUB_SOURCE

#DO NOT EDIT >>>
shared.o: shared.cxx
	$(CCC) $(CCFLAGS) $(CPPFLAGS) -c shared.cxx
#<<< DO NOT EDIT

#DO NOT EDIT >>>
specific.o: specific.cxx
	$(CCC) $(CCFLAGS) $(CPPFLAGS) -c specific.cxx
#<<< DO NOT EDIT

#X-Designer:XDG_C_FOR_UIL_PROGRAM: XDG_C_FOR_UIL_PROGRAM_OBJECT $(XD_C_FOR_UIL_OBJECTS) $(XD_C_STUB_OBJECTS)
#X-Designer:	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o XDG_C_FOR_UIL_PROGRAM XDG_C_FOR_UIL_PROGRAM_OBJECT $(XD_C_FOR_UIL_OBJECTS) $(XD_C_STUB_OBJECTS) $(MRMLIBS) $(MOTIFLIBS) $(LDLIBS)

#X-Designer:XDG_C_FOR_UIL_PROGRAM_OBJECT: XDG_C_FOR_UIL_PROGRAM_SOURCE
#X-Designer:	$(CC) $(CFLAGS) $(CPPFLAGS) -c XDG_C_FOR_UIL_PROGRAM_SOURCE

#X-Designer:XDG_C_FOR_UIL_OBJECT: XDG_C_FOR_UIL_SOURCE
#X-Designer:	$(CC) $(CFLAGS) $(CPPFLAGS) -c XDG_C_FOR_UIL_SOURCE

#X-Designer:XDG_UIL_OBJECT: XDG_UIL_SOURCE
#X-Designer:	$(UIL) $(UILFLAGS) -o XDG_UIL_OBJECT XDG_UIL_SOURCE
