#
# Skeleton Makefile for Odyssey modules. Copy and modify appropriately.
#

# Path to Odyssey's root directory
ROOT	= ../../..
include $(ROOT)/Makefile.defs

BINTARGETS	=
LIBTARGETS	= $(OBJDIR)/libd_lib.a	# Libraries to build.
SCRIPTS		=		# Shell scripts. They're only installed.
L_LIBS		= -lsuif	# Libraries to link.
ifeq ($(ODYSSEY_COMPILER), sgi_c++)
    L_CXXFLAGS	= -I../re_lib -I. -woff 1188,3322 -DUSE_DLIB -DUSE_GETTIMEOFDAY -DNO_POSIX_THREADS_SUPPORT
else
    L_CXXFLAGS	= -I../re_lib -I. -DUSE_DLIB -DUSE_GETTIMEOFDAY -DNO_POSIX_THREADS_SUPPORT
endif
L_CFLAGS	= 		# Local C compiler flags
L_LFLAGS	=		# Local link flags
CC_FILES	= $(wildcard *.cc)
C_FILES		=
H_FILES	 	= $(wildcard *.h)
O_FILES		= $(patsubst %.cc, $(OBJDIR)/%.o, $(CC_FILES))
EXPORT_H_FILES	= $(H_FILES)
EXPORT_MAN_FILES=		# Man files to install in $ODYSSEY/man

#
# Local rules. Standard rules are inherited from Odyssey's Makefiles
#
default: install

$(LIBTARGETS): $(O_FILES) $(LIBVER_O)
	$(AR) -o $@ $(O_FILES) $(LIBVER_O)


#
# Standard rules. Must be included at the end.
#
include $(ROOT)/Makefile.rules
