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

NAME = Test

OSDIR = ../../
TRNIB = $(OSDIR)nib-translator/trnib

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

CC = gcc

CFLAGS = -g -Wno-import -Wall -I$(OSDIR) -I/usr/local/X11R5/include 

# the directories we need access to for various makes:


OBJS = Controller.o

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


all :  openstep  $(NAME)

# the target to make the openstep lib only

openstep :
	cd $(OSDIR); ${MAKE} lib

test : all
	$(NAME)

translate:
	$(TRNIB) Test.nib

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

 $(NAME) :  $(NAME)_main.o $(OBJS) $(OSDIR)/libobjcX.a
	$(CC)  $(NAME)_main.o $(OBJS) $(LIBS) -o $@

clean:
	rm -f *.o; rm -f $(NAME)



