# Makefile  --  of common software modules
# $Id: Makefile,v 1.10 2002/12/18 07:26:03 amn Exp $

# Copyright (C) 1995 Ari Mujunen. (Ari.Mujunen@hut.fi)

# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License.
# See the file 'COPYING' for details.

# $Log: Makefile,v $
# Revision 1.10  2002/12/18 07:26:03  amn
# Upped revision.
#
# Revision 1.2  2002/12/18 07:26:02  amn
# intermediate
#
# Revision 1.1  2002/12/18 07:23:46  amn
# Recovered from /home disk crash by re-creating 'common' module in CVS.
#
# Revision 1.9  1998/05/08 11:30:09  amn
# Transformed into the Makefile of common software modules.
#
# Revision 1.8  1997/03/10 09:24:00  amn
# Added experimental cSocketServer.
#
# Revision 1.7  1995/07/17 12:44:07  amn
# Reverting '*.cc' dep: every source change would regenerate deps.
#
# Revision 1.6  1995/07/12  12:47:02  amn
# Rather cosmetic: '.depend' can actually depend upon '*.cc'.
#
# Revision 1.5  1995/07/11  17:18:31  amn
# Added 'cFormMk3', 'cVCMk3', and 'cTapeVlba'.
#
# Revision 1.4  1995/07/03  16:41:10  amn
# Added 'cAnyMat/McbDevice' classes.
#
# Revision 1.3  1995/06/25  15:32:03  amn
# 'cMcbProto' and 'cFormVLBA' added.
#
# Revision 1.2  1995/06/16  15:08:48  amn
# 'dbtest' and 'mattest' added.
#
# Revision 1.1  1995/02/11  19:41:01  amn
# Initial revision
#


# Optimizing g++ flags:
#CXXFLAGS = -Wall -Wstrict-prototypes -pipe -O2 -fomit-frame-pointer

# Normal g++ flags:
CXXFLAGS = -Wall -Wstrict-prototypes -pipe -g

# xxx: Should separate "common" and normal/optimize flags.
#ALL_CXXFLAGS = -I. $(CFLAGS)


LIBOBJS = cIOLine.o cSerialLine.o


ifeq (.depend,$(wildcard .depend))

all: $(LIBOBJS)

include .depend

else

all: depend
	# Invoke 'make' again now, when '.depend' is ready for inclusion.
	make
endif


TAGS: *.cc
	etags *.cc

depend dep .depend:
	for i in *.cc;do $(CPP) -M $$i;done > .tmpdepend
	mv .tmpdepend .depend

clean:
	rm -f .depend TAGS *.o 
