Blame | Last modification | View Log | RSS feed
#****************************************************************************
# Copyright (C) 2001-2005 ARW Elektronik Germany
#
#
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de)
#****************************************************************************
#****************************************************************************
#
# Makefile - makefile for ARW Elektronik CAMAC interfaces test programs
#
# $Log: Makefile,v $
# Revision 1.8 2005/10/07 16:58:53 klaus
# now use correct library
#
# Revision 1.7 2005/03/11 13:23:58 klaus
# added _qx functions to get Q and X for every transfer. Release libcc32.so.2.
#
# Revision 1.6 2004/10/09 21:05:03 klaus
# Added C++ examples to test programs
#
# Revision 1.5 2004/08/12 20:00:09 klaus
# conversion to kernel-version 2.6, released version 6.0
#
# Revision 1.4 2003/06/19 08:23:38 klaus
# re-compiled with RH-7.2 (kernel 2.4.10)
#
# Revision 1.3 2002/04/14 18:25:38 klaus
# added interrupt handling, driver 4.4. ...3.5.tar.gz
#
# Revision 1.2 2001/11/20 20:12:50 klaus
# included new header and CVS log
#
#****************************************************************************
SRC = .
INC = -I. -I../lib -I/usr/include
DBG = -g
CFLAGS = $(DBG) $(INC) -Wall
SHLIB = ../lib/libcc32.so.3.0.0
TARGET1 = pcicc32_test
FILES1 = $(SRC)/pcicc32_test.c
TARGET2 = pcicc32_test++
FILES2 = $(SRC)/pcicc32_test++.cpp
all: $(TARGET1) $(TARGET2)
mtest:
$(CC) -g mtest_pcicc32.c $(CFLAGS) -o mtest $(SHLIB)
$(TARGET1): $(FILES1)
$(CC) -g $(FILES1) $(CFLAGS) -o $(TARGET1) $(SHLIB)
$(TARGET2): $(FILES2)
$(CC) $(FILES2) $(CFLAGS) -o $(TARGET2) $(SHLIB) -lstdc++
clean:
rm -f $(SRC)/$(TARGET1) $(SRC)/$(TARGET2) $(SRC)/*~ $(SRC)/core
install:
cp $(TARGET1) /usr/local/bin
cp $(TARGET2) /usr/local/bin