##
##  Set your AMULET_DIR environment variable to the top-level directory for
##  the Amulet hierarchy -- all other paths are computed from this.
##
##  Set your AMULET_VARS_FILE environment variable to the name of the file
##  that describes the compiler flags you want to use.  The value of this
##  variable is the name of a file in amulet/bin/, one of:
##    Makefile.vars.gcc.Sun   -  For gcc on a Sun
##    Makefile.vars.gcc.HP    -  For gcc on an HP
##    Makefile.vars.CC.Sun    -  For ObjectCenter's CC on a Sun
##    Makefile.vars.CC.HP     -  For ObjectCenter's CC on an HP
##

include $(AMULET_DIR)/bin/Makefile.vars

all: hello goodbye_inter goodbye_button

hello: hello.o
	$(CC) $(AM_CFLAGS) hello.o \
	-L$(LIB_DIR) -lamulet $(AM_LIBS)   \
	-o hello

hello.o: hello.cc
	$(CC) $(AM_CFLAGS) -c hello.cc

goodbye_inter: goodbye_inter.o
	$(CC) $(AM_CFLAGS) goodbye_inter.o \
	-L$(LIB_DIR) -lamulet $(AM_LIBS)   \
	-o goodbye_inter

goodbye_inter.o: goodbye_inter.cc
	$(CC) $(AM_CFLAGS) -c goodbye_inter.cc

goodbye_button: goodbye_button.o
	$(CC) $(AM_CFLAGS) goodbye_button.o \
	-L$(LIB_DIR) -lamulet $(AM_LIBS)   \
	-o goodbye_button

goodbye_button.o: goodbye_button.cc
	$(CC) $(AM_CFLAGS) -c goodbye_button.cc

clean:
	/bin/rm -f hello goodbye_inter goodbye_button *.o *~
