Hamlib/ft747/test/Makefile

63 wiersze
1.2 KiB
Makefile

# hamlib - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com)
#
# testlibft747 - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com)
# This program uses libft747.so to test an API for communicating
# via serial interface to an FT-747GX using the "CAT" interface
# box (FIF-232C) or similar
#
#
# Make file for libft747.so shared lib test suite.
#
#
# $Id: Makefile,v 1.1 2000-07-18 20:54:50 frank Exp $
#
#
#
#
#TEST_LIBDIR = ../lib
#TEST_INCLUDEDIR = ../include
LIB_NAME = libft747.so
LIB_HEADER = ft747.h
#LIB_SONAME = libft747.so.1
#LIB_RELEASE = libft747.so.1.0.1
CC = gcc
INCLUDE = -I/usr/include -I/usr/local/include -I. -I../
OBJ = testlibft747.o
LDFLAG = -lm -lft747 -L../
CFLAGS = -g -Wall -ansi -pedantic -O2 -D__USE_FIXED_PROTOTYPES__
MAKEALL = testlibft747
all: $(MAKEALL)
testlibft747: $(OBJ)
$(CC) $(CFLAGS) $(INCLUDE) $(LDFLAG) -o testlibft747 $(OBJ)
testlibft747.o: testlibft747.c testlibft747.h
$(CC) $(CFLAGS) $(INCLUDE) -c testlibft747.c
# clean up
clean:
make cleanlocal
# clean up local directory
.PHONY: cleanlocal
cleanlocal:
rm -f *.o testlibft747
# run test program in local directory
.PHONY: runtest
runtest:
(LD_LIBRARY_PATH="../lib" ./testlibft747 )