1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
####
# Compiler declarations
####
#Sun SPARCworks
#cc = /opt/SUNWspro/bin/cc
#CC = /opt/SUNWspro/bin/CC
#COMPILER_BOOLS = -DCOMPILER_HAS_NO_BOOLEAN
#COMPILER_ISSUES = $(COMPILER_BOOLS) $(COMPILER_CASTS) -DSOLARIS
#Gnu
cc = gcc
CC = g++
COMPILER_ISSUES = $(COMPILER_CASTS)
####
# Support declarations
####
DEBUG = -g
CFLAGS = $(DEBUG)
CCFLAGS = $(CFLAGS) $(COMPILER_ISSUES)
####
# Directories
####
CCSERVICEDIR = ../../CCS/src
SRCDIR = ../src
####
# Libraries
####
LIBMSP_CCS = \
../../CCS/linux_64/libMSPCoordinateConversionService.so \
../../CCS/linux_64/libMSPdtcc.so \
####
# Sources
####
SRCS = \
SpreadsheetTester.cpp \
MSPCCS_SpreadsheetTester.cpp
####
# Includes
####
INCLUDES = \
-I$(CCSERVICEDIR)/dtcc \
-I$(CCSERVICEDIR)/CoordinateConversion \
-I$(CCSERVICEDIR)/dtcc/CoordinateSystemParameters \
-I$(CCSERVICEDIR)/dtcc/CoordinateSystems \
-I$(CCSERVICEDIR)/dtcc/CoordinateTuples \
-I$(CCSERVICEDIR)/dtcc/Enumerations \
-I$(CCSERVICEDIR)/dtcc/Exception \
-I$(SRCDIR)
####
# Suffix rules
####
.SUFFIXES: .cpp .o
.cpp.o:
$(CC) -c $(CCFLAGS) $(INCLUDES) $<
####
# Targets
####
#MSPCCS_SpreadsheetTester
MSPCCS_SpreadsheetTester: $(SRCS:.cpp=.o)
$(CC) -o MSPCCS_SpreadsheetTester $(INCLUDES) $(SRCS:.cpp=.o) $(LIBMSP_CCS)
#Misc MSPCCS_SpreadsheetTester application sources
$(SRCS):
ln -s $(SRCDIR)/$@ .
clean:
$(RM) *.c *.cpp *.o $(BINARY)
|