# author:	Paul Kunz
# comments:	Makefile for the Tests

NAME = FileViewer

XMDIR  = ../../

.SUFFIXES: .m
.m.o:
	$(CC) -c $(CFLAGS) -o $@ $<

CC = gcc -g

CFLAGS = -I$(XMDIR) -I/usr/local/X11R5/include 

# the directories we need access to for various makes:


OBJS = BrowserDelegate.o

LIBS = -L$(XMDIR) -lobjcX -L/usr/local/lib/X11R5 -lXm -lXmu -lXt -lXext \
	-lX11 -lcoll -lobjc -lm

all :  objcX $(NAME)


# the target to make the objcX lib only

objcX : 
	cd $(XMDIR); ${MAKE} lib

# the target to make the objc libs only


# the target to make the objects in our current directory.

$(NAME) : $(NAME).o $(OBJS) $(XMDIR)/libobjcX.a
	$(CC) $(CFLAGS) $(NAME).o $(OBJS) $(LIBS) -o $@

