# SLFFEA Makefile
# Version:  1.1
# Copyright (C) 1999  San Le (slffea.juno.com)
# http://www.geocities.com/Athens/2099/slffea.html
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#May work on Sun
#C = /usr/lang/gcc  -g

#Dubugging Compile for Linux
CC = /usr/bin/gcc  -g

#Optimization Compile for Linux
#CC = /usr/bin/gcc  -O3

LIBS = -lm
COMMON = ../../common
BRICK = ../brick
OBJECTS = $(COMMON)/matxt.o $(COMMON)/matx.o $(COMMON)/crossx.o \
	$(COMMON)/dotx.o 
OBJECTS2 = $(COMMON)/crossx.o 
OBJECTS_BR = $(BRICK)/brmemory.o $(BRICK)/brreader.o $(BRICK)/brid.o $(BRICK)/brshape.o \
	$(BRICK)/brickb.o $(BRICK)/brcubic.o $(BRICK)/brwriter.o $(BRICK)/brwriter2.o 

#PROGS = nbr pvv
PROGS = nbr

#all: nbr pvv
all: nbr

nbr: femnbr.o \
		brfmasmbl.o \
		brpasmbl.o \
		../brick/brconst.h \
		../brick/brstruct.h 
	$(CC) -o nbr femnbr.o \
		brfmasmbl.o \
		brpasmbl.o $(OBJECTS_BR) $(LIBS) $(OBJECTS)

brpasmbl.o: brpasmbl.c
	$(CC) -c brpasmbl.c 

brfmasmbl.o: brfmasmbl.c
	$(CC) -c brfmasmbl.c 

femnbr.o: femnbr.c
	$(CC) -c femnbr.c

clean:
	-rm *.o $(PROGS)
