CC = gcc
CDEBUGFLAGS = -g

TCL_INCLUDE= ../../tcl
MOTIF_INCLUDE= /usr/local/include

TCL_LIB = -L/usr/local/lib -ltcl 
MOTIF_LIB = -lXm -lXt -lX11

INCLUDES = -I$(TCL_INCLUDE) -I$(MOTIF_INCLUDE)
LOCAL_LIBRARIES = $(TCL_LIB) $(MOTIF_LIB)

OBJS = main.o \
	tmCreateWidget.o \
	tmCommands.o \
	\
	tmTclCommands.o \
	tmExpand.o \
	tmWidget.o \
	tmUtils.o \
	tmConverters.o

SRCS = main.c \
	tmArrowButton.c \
	tmBulletinBoard.c \
	tmCascadeButton.c \
	tmCommand.c \
	tmDrawingArea.c \
	tmDrawnButton.c \
	tmFileSelection.c \
	tmForm.c \
	tmFrame.c \
	tmLabel.c \
	tmList.c \
	tmMainWindow.c \
	tmMessageBox.c \
	tmPanedWindow.c \
	tmPushButton.c \
	tmRowColumn.c \
	tmScale.c \
	tmScrollBar.c \
	tmSelectionBox.c \
	tmSeparator.c \
	tmText.c \
	tmTextField.c \
	tmToggleButton.c \
	\
	tmExpand.c \
	tmWidget.c \
	tmUtils.c \
	tmConverters.c

DEFINES = -DTM_LIBRARY=\".\" -DTM_VERSION=\"0.2\"

NormalLibraryObjectRule()

ComplexProgramTarget(moat)

/*
NormalLibraryTarget(tclM,$(OBJS))
*/

InstallLibrary(tclM,$(LIBDIR))
