#!/bin/make -f
# Makefile template by Sal Valente <svalente@athena.mit.edu>

TARGET	= xzwrite
SRCS	= interface.c resource.c destlist.c util.c bfgets.c \
	gethomedir.c dest_window.c xzwrite.c edit_window.c zephyr.c\
	GetString.c Popup.c yank.c menu_window.c logins.c currentdate.c
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 currentdate.o
CC	= gcc
DEFINES	= 
CFLAGS	= -O
LFLAGS	= -s
INCDIR	= -I/mit/sipb/include -I/usr/athena/include
LIBDIR	= -L/mit/sipb/lib/@sys -L/usr/athena/lib
LIBS	= -lzephyr -lkrb -ldes -ldyn -lcom_err -lXaw -lXmu -lXt -lXext -lX11 -lsocket -lnsl -ldl

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

$(TARGET): $(OBJS)
	$(CC) $(LFLAGS) -o $(TARGET) $(OBJS) $(LIBDIR) $(LIBS)

.c.o:
	$(CC) $(CFLAGS) $(DEFINES) -c $*.c $(INCDIR)

clean:
	rm -f *~ *.o *.bak *.out $(TARGET) \#*\# .\#*

depend: $(SRCS)
	makedepend -s "# dependencies" $(INCDIR) $(DEFINES) $(SRCS)

# do not add anything below this line.
# dependencies
