# set this to the path where data files should be stored.  LIBDIR
# is automatically defined by imake, usually to /usr/X11R6/lib/X11, so
# this should be a good default.
LIBNAME = $(LIBDIR)/scavenger

SRCS = anim.c edit.c scav.c x.c sound.c
OBJS = $(SRCS:.c=.o)

# the "subst" hack below is because imake uses the C preprocessor, which
# will interpret an unquoted "/*" as a comment beginning.
LIB_DATA = $(subst S,/,..SdataS*)

LOCAL_LIBRARIES = $(XLIB)
EXTRA_DEFINES = -DLIBNAME=\"$(LIBNAME)\"

ComplexProgramTarget(scavenger)
AllTarget(scavserver)
NormalProgramTarget(scavserver,scavserver.o,,,)
InstallProgram(scavserver,$(LIBNAME))
InstallMultipleFlags($(LIB_DATA),$(LIBNAME),-m 644)
