# %Z%%M% %I% %D%
#
# Sun makefile for debug and production versions of uemacs for sun3s, and
# sun4s.  Header file dependencies aren't listed in the Makefile - .KEEP_STATE
# is relied upon to look after these automatically (they can always be
# generated using mkmf(1)).
#
# Note:  the way this make file is set up, the production version for an
# architecture should be in ../`arch` for install to work properly.
# Also entries of the form install`arch` are required.

CC=	mcc  
CFLAGS= -D_MINIX
LD=     mcc

HDRS	      = dutch.h	ebind.h edef.h efunc.h elang.h english.h \
		epath.h estruct.h etype.h evar.h french.h \
		german.h platin.h spanish.h

LDFLAGS	      =

LIBS	      =

PRINT	      = /usr/local/bin/print

PROGRAM	      = uemacs

SRCS	      = basic.c bind.c buffer.c char.c crypt.c display.c eval.c \
		exec.c file.c fileio.c input.c isearch.c line.c lock.c \
		main.c random.c region.c search.c tcap.c unix.c \
		window.c word.c

OBJS= $(SRCS:.c=.o)

.KEEP_STATE:

all:		uemacs

lint:
	lint $(SRCS) $(LIBS)

uemacs: $(OBJS)
	mcc -o uemacs -S 10kw $(OBJS) $(LIBS)

clean: 
	rm -f uemacs $(OBJS)
	
tags:   $(HDRS) $(SRCS)
	@ctags -t $(HDRS) $(SRCS)

index:   $(HDRS) $(SRCS)
	@ctags -wx $(HDRS) $(SRCS)

