#****************************************************************************** #* Product: ##### ###### ###### # ### ###### #* # # # # # # # # # # #* # # # # # # # # # #* ##### # # # # # # ###### #* # # # # # # # # # #* # # # # # # # # # # #* ##### ###### ###### ####### ####### ### ###### #* #* File: Makefile #* Description: Build description file for the virtual data warehouse #* daemon Server Data-source Drivers. #* Version: %I% #* Dated: %D% #* Copyright: P.D. Smart, 1996-2019. #* #* History: 1.0 - Initial Release. #* #****************************************************************************** #* This source file 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 3 of the License, or #* (at your option) any later version. #* #* This source file 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, see . #****************************************************************************** TITLE = "Server Data-source Driver Library" COPYRIGHT = "(C) P.D.Smart, %D%, Ver %I%" PROJ = PURIFY = #purify PROJPATH = ../SDD GNUINCLUDE = -I/apps/gnu/$(ARCH)/include MDCINCLUDE = -I../MDC UXINCLUDE = -I../ux ODBCINCLUDE = -I../odbc/include SYBINCLUDE = -I/apps/sybase/include INCLUDEDIR = -I. $(UXINCLUDE) $(MDCINCLUDE) $(GNUINCLUDE) $(ODBCINCLUDE)\ $(SYBINCLUDE) 1DEBUGFLAGS = -g #-DMDC_DEBUG #-E 4DEBUGFLAGS = -g #-DMDC_DEBUG #-E 5DEBUGFLAGS = -g #-DMDC_DEBUG #-E 1OPTIMIZEFLAGS = #-O2 4OPTIMIZEFLAGS = #-O2 5OPTIMIZEFLAGS = #-O2 1OPTIONFLAGS = -D${OS} #-ansi -Wall 4OPTIONFLAGS = -D${OS} #-ansi -Wall 5OPTIONFLAGS = -D${OS} -D_REENTRANT #-ansi -Wall CFLAGS = $(${OSVER}DEBUGFLAGS) $(${OSVER}OPTIMIZEFLAGS) \ $(${OSVER}OPTIONFLAGS) LDFLAGS = -static ODBCLIBS = -I../odbc/dlls -lodbc LIBS = -lm SCCSFLAGS = -d$(PROJPATH) SCCSGETFLAGS = ifeq ($(ZPU_BUILD),) BASE = else BASE = zpu-elf- endif CC = $(BASE)gcc LD = $(BASE)gcc AS = $(BASE)as AR = $(BASE)ar CP = $(BASE)objcopy DUMP = $(BASE)objdump RANLIB = $(BASE)ranlib # Suffixes where interested in for this project. # .SUFFIXES: .SUFFIXES: .o .c .h # Our way of making an object file. # .c.o: $(PURIFY) $(CC) $(INCLUDEDIR) $(CFLAGS) -c $< # All, ie: all programs to be built # all: @echo $(TITLE) @echo $(COPYRIGHT) @echo @echo "Use 'build' command to make LIBSDD library." libsdd: Begin \ libsdd.a \ End # How to clean up the directory... make it look pretty! # clean: Begin \ DoClean \ End # How to perform an installation of the resultant software. # install: Begin \ DoInstall \ End # # Pre-make start sequence. # Begin: @echo $(TITLE) @echo $(COPYRIGHT) @echo @echo "Operation commencing @ `date`" @echo # # Post-make completion sequence. # End: @echo @echo "Completed @ `date`" # Perform all cleanup operations to ensure future builds occur # with completeness. # DoClean: rm -f *.o *.bak *.a *.BAK *.sav core # Perform installation of software as per spec. # DoInstall: # Build the virtual data warehouse project Server # Data-source Driver library. # libsdd.a: sdd_java.o sdd_scmd.o sdd_ftpx.o sdd_sybc.o $(AR) rcv libsdd.a sdd_java.o sdd_scmd.o sdd_ftpx.o \ sdd_sybc.o #libsdd.a: sdd_java.o sdd_scmd.o sdd_ftpx.o sdd_aupl.o # $(AR) rcv libsdd.a sdd_java.o sdd_scmd.o sdd_ftpx.o sdd_aupl.o sdd_java.o: sdd.h sdd_java.h sdd_odbc.o: sdd.h sdd_odbc.h sdd_scmd.o: sdd.h sdd_scmd.h sdd_ftpx.o: sdd.h sdd_ftpx.h sdd_sybc.o: sdd.h sdd_sybc.h sdd_aupl.o: sdd.h sdd_aupl.h