# Makefile for SelFile.

prefix = /usr/games

exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datadir = $(prefix)/lib/xconqdir
mandir = $(prefix)/man
man6dir = $(mandir)/man6
infodir = $(prefix)/info
docdir = $(datadir)/doc

srcdir = .
srcroot = $(srcdir)/..

SHELL = /bin/sh

INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)

CC = cc

CFLAGS = -g

AR = ar

AR_FLAGS = rcu

RANLIB = ranlib

# Host and target-dependent makefile fragments come in here.
####
# End of host and target-dependent makefile fragments.

OBJ =	SelFile.o \
	Path.o \
	Dir.o \
	Draw.o

UNIX_CFLAGS = -DSELFILE -DHOME_ON_DEMAND $(SYSV)

ALL_CFLAGS = $(CFLAGS) $(REQD_CFLAGS) $(UNIX_CFLAGS) -I$(srcdir) $(X11_INCLUDE_FLAGS)

.c.o:
	$(CC) -c $(ALL_CFLAGS) $<

# Do it all.

all:	libXgnu.a

libXgnu.a: $(OBJ)
	rm -f libXgnu.a
	$(AR) $(AR_FLAGS) libXgnu.a $(OBJ)
	$(RANLIB) libXgnu.a

install: all install-only

install-only:

# Cleanliness support.

clean:
	rm -f *.o lint.out core
	rm -f *.a

distclean: clean
	rm -f Makefile config.status

extraclean: distclean
	rm -f *~* .*~*

realclean: distclean

Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
	$(SHELL) config.status

# Dependencies.
