# CIFFOLD 0.4 Pre-Release
# by Kostadin Mitev, Georgi Todorov and Herbert J. Bernstein
#
# Copyright (C) Kostadin Mitev 2005
#
# Work funded in part by the International Union of Crsytallography under
# a grant to Dowling College.
#
# This software is covered by the GNU General Public License 
# <see COPYING>.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This program 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 General
# Public License for more details
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This program 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 General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
########################################################################

#Makefile rev for CIFFOLD 0.4.3, 7 may 2005, H. J. Bernstein


#Header files needed:
#ReadFile.h FUFCIF.h Globals.h ERROR.h getOpt.h 
CPP=g++
CFLAGS = -g -fbounds-check -I/usr/local/include/ncurses -I/usr/local/include
TARGET= ciffold
SRC= menus.cpp ReadFile.cpp FUCIF.c ERROR.cpp getOpt.cpp
OBJ= menus.o ReadFile.o FUCIF.o ERROR.o getOpt.o
LIB= -L/usr/local/lib -lmenu -lncurses
LDLIBS = -L/usr/local/lib -lpanel -lncurses
all: $(TARGET)

$(TARGET): $(OBJ)
	$(CPP) -o $@ $(OBJ) $(LIB)

$(OBJ): $(SRC)
	$(CPP)  $(CFLAGS) -c menus.cpp -o menus.o
	$(CPP)  $(CFLAGS) -c ReadFile.cpp -o ReadFile.o
	$(CPP)  $(CFLAGS) -c FUCIF.c -o FUCIF.o
	$(CPP)  $(CFLAGS) -c ERROR.cpp -o ERROR.o	
	$(CPP)  $(CFLAGS) -c getOpt.cpp -o getOpt.o

clean:
	-rm *.o
	-rm ciffold
