#!/usr/bin/make -f

PROG	= xzwrite
OBJS	= interface.o resource.o destlist.o util.o bfgets.o \
	  gethomedir.o dest_window.o xzwrite.o edit_window.o zephyr.o\
	  GetString.o Popup.o yank.o menu_window.o logins.o
CC	= cc
CFLAGS	= -O
LDFLAGS	= 
INCDIR	= -I/mit/sipb/include -I/usr/athena/include -I/usr/X11/include
LIBDIR	= -L/mit/sipb/lib/@sys -L/usr/athena/lib -L/usr/X11/lib
LIBS	= -lzephyr -lkrb -ldes -ldyn -lcom_err -lXaw -lXmu -lXt -lXext -lX11
prefix	= /afs/.sipb/project/sipb

# it is probably somewhat unnecessary to change anything below this line.

all: $(PROG)

$(PROG): $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBDIR) $(LIBS)

.c.o:
	$(CC) $(CFLAGS) $(INCDIR) -c $<

clean:
	rm -f $(PROG) *.o *~

install:
	install -c -m 555 -s $(PROG) $(prefix)/bin/
	install -c -m 444 $(PROG).1 $(prefix)/man/man1/
	install -c -m 444 XZwrite $(prefix)/lib/app-defaults/
#	install -c -m 444 xzwrite.bitmap $(prefix)/bitmaps.x11/z
