#
# Makefile for m3
#

# Modify the following line as appropriate to point to the place where
# Shore is installed
ifndef SHORE
SHORE = /usr/local/shore
endif

# Modify the following as desired to control compilation options
# NOTE:  -lnsl is only required for Solaris
CXX = g++ -fPIC
CXXFLAGS = -g -I$(SHORE)/include
LDLIBS = $(SHORE)/lib/libshore.a -lnsl

SDL = $(SHORE)/bin/sdl
.SUFFIXES: .sdl

SDLFILES		= m3.sdl
HFILES.sdl		= $(SDLFILES:.sdl=.h)

all: m3.h

.sdl.h:
	$(RM) -f $*.h
	$(SDL) -f -s $? -B -L -o $*.h

tags:: $(SRC)
	ctags -wt $(SRC) $(SHORE)/include/*.h

clean::
	$(RM) -f a.out tags core m3.h
