Removed old unused Makefile.* files.
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
#
|
||||
# Author: Jeff Hill
|
||||
# Date: 8/96
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 1996/09/04 20:59:40 jhill
|
||||
# installed
|
||||
#
|
||||
|
||||
VPATH=.:..
|
||||
|
||||
TOP= ../../..
|
||||
|
||||
include $(TOP)/config/CONFIG_BASE
|
||||
|
||||
DEPENDS_RULE.cc = -$(COMPILE.cc) -xM $(SRCS.cc) >> .DEPENDS
|
||||
|
||||
USR_LDFLAGS = -L$(EPICS_EXTENSIONS_LIB) -L.
|
||||
USR_CFLAGS = -L$(EPICS_EXTENSIONS_LIB) -L.
|
||||
|
||||
SRCS.cc = ../aitGen.c ../aitTypes.c ../aitHelpers.cc \
|
||||
../gdd.cc ../gddAppDefs.cc ../gddAppTable.cc ../gddNewDel.cc \
|
||||
../gddTest.cc ../dbMapper.cc
|
||||
|
||||
LIBOBJS = gdd.o gddAppTable.o gddNewDel.o gddAppDefs.o \
|
||||
aitTypes.o aitConvert.o aitHelpers.o dbMapper.o
|
||||
|
||||
LIBNAME = libgdd.o
|
||||
|
||||
include $(TOP)/config/RULES.Vx
|
||||
|
||||
# cannot generate dependencies for aitConvert automatically
|
||||
|
||||
aitConvert.o: aitConvert.cc aitConvert.h aitConvertGenerated.cc aitTypes.h
|
||||
|
||||
aitConvertGenerated.cc: ../O.$(HOST_ARCH)/aitGen aitTypes.h
|
||||
../O.$(HOST_ARCH)/aitGen
|
||||
|
||||
# cannot generate dependencies for dbMapper.o automatically
|
||||
|
||||
dbMapper.o: ../dbMapper.cc gdd.h gddAppTable.h dbMapper.h gddApps.h aitTypes.h
|
||||
$(COMPILE.cc) $<
|
||||
|
||||
gddApps.h: ../O.$(HOST_ARCH)/genApps
|
||||
../O.$(HOST_ARCH)/genApps $@
|
||||
|
||||
clean::
|
||||
/bin/rm -f aitConvertGenerated.cc aitGen
|
||||
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
|
||||
# Author: Jim Kowalkowski
|
||||
# Date: 9/9/96
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 1996/09/12 11:18:46 jbk
|
||||
# makefile to build library outside of EPICS tree
|
||||
#
|
||||
#
|
||||
|
||||
DEPENDS_FLAG = -M # -xM
|
||||
CCFLAGS = -g -DGDDAUTOPRINT
|
||||
CXXFLAGS = $(CCFLAGS)
|
||||
CFLAGS = $(CCFLAGS)
|
||||
# CCC=purify CC
|
||||
# CC=purify cc
|
||||
|
||||
AR = ar
|
||||
|
||||
SRCS = aitGen.c aitTypes.c aitHelpers.cc \
|
||||
gdd.cc gddTest.cc gddArray.cc gddContainer.cc \
|
||||
gddAppDefs.cc gddAppTable.cc gddNewDel.cc \
|
||||
gddErrorCodes.cc gddUtils.cc genApps.cc
|
||||
|
||||
MY_OBJS = gdd.o gddTest.o gddAppTable.o gddNewDel.o gddAppDefs.o \
|
||||
aitTypes.o aitConvert.o aitHelpers.o gddArray.o gddContainer.o \
|
||||
gddUtils.o gddErrorCodes.o
|
||||
|
||||
LIBOBJS = $(MY_OBJS) dbMapper.o
|
||||
LIBNAME = libgdd.a
|
||||
|
||||
HEADS = gdd.h gddI.h gddContainer.h gddContainerI.h gddArray.h \
|
||||
gddScalar.h gddUtils.h
|
||||
|
||||
all: $(LIBNAME) dbMapper.o
|
||||
|
||||
$(LIBNAME): $(LIBOBJS)
|
||||
$(AR) r $(LIBNAME) $^
|
||||
|
||||
# cannot generate dependencies for aitConvert automatically
|
||||
|
||||
gdd.o: gdd.cc
|
||||
gddTest.o: gddTest.cc
|
||||
gddArray.o: gddArray.cc
|
||||
gddContainer.o: gddContainer.cc
|
||||
gddAppTable.o: gddAppTable.cc
|
||||
gddAppDefs.o: gddAppDefs.cc
|
||||
gddNewDel.o: gddNewDel.cc
|
||||
gddUtils.o: gddUtils.cc
|
||||
gddErrorCodes.o: gddErrorCodes.cc
|
||||
aitHelpers.o: aitHelpers.cc
|
||||
aitTypes.o: aitTypes.c
|
||||
aitConvert.o: aitConvert.cc aitConvert.h aitConvertGenerated.cc aitTypes.h
|
||||
|
||||
aitConvertGenerated.cc: aitGen aitTypes.h
|
||||
./aitGen
|
||||
|
||||
aitGen: aitGen.o aitTypes.o
|
||||
$(LINK.c) -o $@ $^ $(LDLIBS)
|
||||
|
||||
# cannot generate dependencies for dbMapper.o automatically
|
||||
|
||||
dbMapper.o: dbMapper.cc $(HEADS) gddAppTable.h dbMapper.h gddApps.h aitTypes.h
|
||||
$(COMPILE.cc) -I$(HOME)/include $<
|
||||
$(AR) r $(LIBNAME) $@
|
||||
|
||||
gddApps.h: genApps
|
||||
./genApps $@
|
||||
|
||||
genApps: genApps.o $(MY_OBJS)
|
||||
$(LINK.cc) -o $@ $^ $(LDLIBS)
|
||||
|
||||
depends:
|
||||
-$(COMPILE.cc) $(DEPENDS_FLAG) $(SRCS) >> .DEPENDS
|
||||
|
||||
clean:
|
||||
/bin/rm -f aitConvertGenerated.cc aitGen genApps *.o *.a
|
||||
|
||||
.DEPENDS:
|
||||
touch .DEPENDS
|
||||
|
||||
include .DEPENDS
|
||||
@@ -1,254 +0,0 @@
|
||||
#
|
||||
# Author: Jim Kowalkowski
|
||||
# Date: 2/96
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 1996/06/25 19:11:26 jbk
|
||||
# new in EPICS base
|
||||
#
|
||||
#
|
||||
|
||||
# Simple build system for all the platforms I've tested on
|
||||
|
||||
VPATH=.:..
|
||||
|
||||
# ifdef IN_OBJ_DIR
|
||||
# ifeq ($(VX_BUILD),vw)
|
||||
# CCTYPE = $(VX_BUILD)
|
||||
# else
|
||||
# CCTYPE = $(HOST_ARCH)
|
||||
# endif
|
||||
#
|
||||
# else
|
||||
ifdef HOST_ARCH
|
||||
CCTYPE = $(HOST_ARCH)
|
||||
else
|
||||
# CCTYPE = solaris
|
||||
# CCTYPE = sun4
|
||||
# CCTYPE = linux
|
||||
# CCTYPE = hp700
|
||||
# CCTYPE = vw
|
||||
# VX_BUILD = vw
|
||||
endif
|
||||
# endif
|
||||
|
||||
ifeq ($(CCTYPE),vw)
|
||||
|
||||
GNU_DIR = /home/phoebus/HIDEOS/gnu_install
|
||||
# GNU_DIR = /home/hideos/gnu_install
|
||||
GNU_BIN = $(GNU_DIR)/bin
|
||||
VERBOSE = -Wall -Winline
|
||||
OPTIM = -O # -DNO_DUMP_TEST -g
|
||||
VX_DIR = /usr/local/vw/vxV52/vw
|
||||
VX_INCLUDE = $(VX_DIR)/h
|
||||
|
||||
ifeq ($(CCTYPE),sun4)
|
||||
CC_NORMAL = acc
|
||||
else
|
||||
CC_NORMAL = cc
|
||||
endif
|
||||
|
||||
CC = $(GNU_BIN)/sun3-gcc
|
||||
CCC = $(GNU_BIN)/sun3-g++
|
||||
LD = $(GNU_BIN)/sun3-ld
|
||||
AR = $(GNU_BIN)/sun3-ar
|
||||
RANLIB = $(GNU_BIN)/sun3-ranlib
|
||||
|
||||
LIB_FLAGS =
|
||||
LDFLAGS = -L. -r -N -T../vxldscript.MRI
|
||||
CCFLAGS = -B$(GNU_DIR)/lib/gcc-lib/ $(OPTIM) -W \
|
||||
$(VERBOSE) -nostdinc --no-builtin -m68040 -Wa,"-m68040" \
|
||||
-DCPU_FAMILY=MC680X0 -DCPU=MC68040 -DvxWorks -DV5_vxWorks \
|
||||
-I. -I.. -I$(VX_INCLUDE)
|
||||
|
||||
else
|
||||
|
||||
ifeq ($(CCTYPE),solaris)
|
||||
VERBOSE = +w -D__EXTENSIONS__
|
||||
CC = cc
|
||||
CCC = CC
|
||||
CC_NORMAL = $(CC)
|
||||
LIB_FLAGS = # -lposix4
|
||||
POSIX_LEVEL = 2 # 4
|
||||
EPICS = /home/phoebus/JBK/test3.12/include
|
||||
RANLIB = echo
|
||||
endif
|
||||
|
||||
ifeq ($(CCTYPE),sun4)
|
||||
VERBOSE =
|
||||
CC=purify acc
|
||||
CCC=purify CC
|
||||
# CCC = CC
|
||||
# CC = acc
|
||||
CC_NORMAL = acc
|
||||
LIB_FLAGS =
|
||||
POSIX_LEVEL = 2
|
||||
EPICS = /home/phoebus/JBK/test3.12/include
|
||||
RANLIB = ranlib
|
||||
endif
|
||||
|
||||
ifeq ($(CCTYPE),linux)
|
||||
VERBOSE = -Wall -Winline
|
||||
CC = gcc
|
||||
CCC = g++
|
||||
CC_NORMAL = $(CC)
|
||||
LIB_FLAGS =
|
||||
POSIX_LEVEL = 2
|
||||
EPICS = /home/jbk/include
|
||||
RANLIB = ranlib
|
||||
endif
|
||||
|
||||
ifeq ($(CCTYPE),hp700)
|
||||
VERBOSE =
|
||||
CC = c89 -Aa
|
||||
CCC = CC +a1
|
||||
CC_NORMAL = $(CC)
|
||||
LIB_FLAGS =
|
||||
POSIX_LEVEL = 2
|
||||
RANLIB = ranlib
|
||||
endif
|
||||
|
||||
LD = ld
|
||||
AR = ar
|
||||
|
||||
# -p is for profiling
|
||||
OPTIM = -g # -O -p
|
||||
COMP_FLAGS = -D_POSIX_C_SOURCE=$(POSIX_LEVEL) -D$(CCTYPE)
|
||||
BOTH_FLAGS = -I. -I.. $(VERBOSE) $(OPTIM) -I$(EPICS) $(COMP_FLAGS)
|
||||
LDFLAGS = $(BOTH_FLAGS) -L.
|
||||
CCFLAGS = $(BOTH_FLAGS)
|
||||
|
||||
endif
|
||||
|
||||
CXXFLAGS = $(CCFLAGS)
|
||||
CFLAGS = $(CXXFLAGS)
|
||||
CXX = $(CCC)
|
||||
|
||||
DEPLIB = libgdd_t.a
|
||||
DEST_DEPLIB = libgdd.a
|
||||
LIBFLAGS = -lgdd $(LIB_FLAGS)
|
||||
LIBFLAGS_T = -lgdd_t $(LIB_FLAGS)
|
||||
|
||||
# modules that go into the library
|
||||
SRCS = gdd.cc gddTest.cc aitConvert.cc gddAppTable.cc gddNewDel.cc \
|
||||
gddAppDefs.cc aitTypes.c
|
||||
OBJS = gdd.o gddTest.o aitConvert.o gddAppTable.o gddNewDel.o \
|
||||
gddAppDefs.o aitTypes.o
|
||||
INCS = gdd.h aitConvert.h aitTypes.h gddNewDel.h gddUtils.h
|
||||
|
||||
# -----------------------------
|
||||
ifndef HOST_ARCH
|
||||
problem:
|
||||
@echo "you must set the HOST_ARCH environment variable"
|
||||
@echo "set VX_BUILD=vw to build for vxWorks"
|
||||
endif
|
||||
|
||||
# -----------------------------
|
||||
ifndef IN_OBJ_DIR
|
||||
ifdef VX_BUILD
|
||||
first_rule: $(HOST_ARCH)/Makefile $(VX_BUILD)/Makefile
|
||||
else
|
||||
first_rule: $(HOST_ARCH)/Makefile
|
||||
endif
|
||||
(cd $(HOST_ARCH); gnumake all)
|
||||
ifdef VX_BUILD
|
||||
(HOST_ARCH=$(VX_BUILD); cd $(VX_BUILD); gnumake HOST_ARCH=$(VX_BUILD))
|
||||
# (HOST_ARCH=$(VX_BUILD); gnumake HOST_ARCH=$(VX_BUILD))
|
||||
endif
|
||||
|
||||
$(HOST_ARCH)/Makefile: Makefile
|
||||
if [ ! -d "$(HOST_ARCH)" ]; \
|
||||
then \
|
||||
mkdir $(HOST_ARCH); \
|
||||
fi
|
||||
echo "IN_OBJ_DIR=1" > $@
|
||||
cat $< >> $@
|
||||
|
||||
ifdef VX_BUILD
|
||||
$(VX_BUILD)/Makefile: Makefile
|
||||
if [ ! -d "$(VX_BUILD)" ]; \
|
||||
then \
|
||||
mkdir $(VX_BUILD); \
|
||||
fi
|
||||
echo "IN_OBJ_DIR=1" > $@
|
||||
cat $< >> $@
|
||||
endif
|
||||
endif
|
||||
|
||||
# -----------------------------
|
||||
all: aitGen gddApps.h $(DEPLIB) dbMapper.o $(DEST_DEPLIB)
|
||||
|
||||
check_arch:
|
||||
@echo "architecture=$(CCTYPE)"
|
||||
|
||||
$(DEST_DEPLIB): $(DEPLIB)
|
||||
cp $^ $@
|
||||
|
||||
# -----------------------------
|
||||
$(DEPLIB): $(OBJS)
|
||||
/bin/rm -f $@
|
||||
$(AR) r $@ $^
|
||||
cp $@ $(DEST_DEPLIB)
|
||||
ifeq ($(CCTYPE),sun4)
|
||||
$(RANLIB) $@
|
||||
$(RANLIB) $(DEST_DEPLIB)
|
||||
endif
|
||||
ifeq ($(CCTYPE),vw)
|
||||
$(RANLIB) $@
|
||||
$(RANLIB) $(DEST_DEPLIB)
|
||||
endif
|
||||
|
||||
# -----------------------------
|
||||
ifneq ($(CCTYPE),vw)
|
||||
genApps: genApps.o $(OBJS) $(DEPLIB)
|
||||
$(CCC) $(LDFLAGS) -o $@ $< $(LIBFLAGS_T)
|
||||
|
||||
gddApps.h: genApps
|
||||
./$< gddApps.h
|
||||
cp gddApps.h ..
|
||||
|
||||
genApps.o: genApps.cc gddAppTable.h aitTypes.h $(INCS)
|
||||
|
||||
else
|
||||
genApps:
|
||||
@echo "Not going to build $@ for vw"
|
||||
endif
|
||||
|
||||
aitGen: aitGen.o aitTypes.o
|
||||
$(CC_NORMAL) -O -o $@ $^
|
||||
|
||||
aitGen.o: aitGen.c aitTypes.h
|
||||
$(CC_NORMAL) -D$(CCTYPE) -O -c -I. $<
|
||||
|
||||
aitConvertGenerated.cc: aitGen aitTypes.h aitConvert.h aitConvert.cc aitTypes.c
|
||||
./aitGen
|
||||
|
||||
# -----------------------------
|
||||
gdd.o: gdd.cc $(INCS)
|
||||
gddTest.o: gddTest.cc $(INCS)
|
||||
gddNewDel.o: gddNewDel.cc gddNewDel.h gddUtils.h
|
||||
gddAppTable.o: gddAppTable.cc gddAppTable.h $(INCS)
|
||||
gddAppDefs.o: gddAppDefs.cc gddAppTable.h $(INCS)
|
||||
aitTypes.o: aitTypes.c aitTypes.h
|
||||
aitConvert.o: aitConvert.cc aitConvertGenerated.cc aitConvert.h aitTypes.h
|
||||
|
||||
dbMapper.o: dbMapper.cc dbMapper.h gddApps.h
|
||||
$(CCC) $(CCFLAGS) -c $<
|
||||
ifeq ($(CCTYPE),solaris)
|
||||
# $(CCC) -xar -o $(DEST_DEPLIB) $(CCFLAGS) $<
|
||||
# $(CCC) -xar -o $(DEST_DEPLIB) $(CCFLAGS) $@
|
||||
endif
|
||||
$(AR) r $(DEST_DEPLIB) $@
|
||||
$(RANLIB) $(DEST_DEPLIB)
|
||||
|
||||
ifdef IN_OBJ_DIR
|
||||
clean:
|
||||
/bin/rm -f *.o *.a aitGen genApps
|
||||
/bin/rm -f *pure* p.out mon.out
|
||||
/bin/rm -rf Templates.DB ptrepository
|
||||
else
|
||||
clean:
|
||||
/bin/rm -rf $(HOST_ARCH) $(VX_BUILD) gddApps.h
|
||||
endif
|
||||
Reference in New Issue
Block a user