| 1 |
# ASCEND external packages Makefile, MS VC++4.2 version |
| 2 |
# Mark Thomas |
| 3 |
# July 29, 1997 |
| 4 |
# $Revision: 1.1 $ |
| 5 |
# $Date: 1997/07/29 17:49:34 $ |
| 6 |
# $Author: mthomas $ |
| 7 |
# $Source: /afs/cs.cmu.edu/project/ascend/Repository/ascend4/packages/Makefile.vc,v $ |
| 8 |
# |
| 9 |
# This file builds the objects from external sources. The |
| 10 |
# ascend interfaces to these objects are currently built |
| 11 |
# in the compiler, though they should probably be built here |
| 12 |
# as well. Since that is the case, this file assumes libpackages.a |
| 13 |
# exists in ../archive and adds the external objects to it. |
| 14 |
# This means this directory should be remade anytime libpackages.a |
| 15 |
# is remade via the compiler. |
| 16 |
# |
| 17 |
# Eventually this should also be the home to the BLAS files that |
| 18 |
# are common to minos, lsode, etc. |
| 19 |
|
| 20 |
|
| 21 |
builddir = .. |
| 22 |
srcdir = . |
| 23 |
VPATH = . |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
# The next variables are the primary executables and/or libraries that |
| 28 |
# this makefile is responsible for, and the default target of this |
| 29 |
# makefile. |
| 30 |
|
| 31 |
EXECUTABLE = |
| 32 |
|
| 33 |
LIBRARY = packages.lib |
| 34 |
|
| 35 |
|
| 36 |
default: $(LIBRARY) |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
# Defines and Includes that are specific to this directory |
| 41 |
|
| 42 |
DIR_SPECIFIC_DEFS = $(HAVE_PACKAGES) |
| 43 |
DIR_SPECIFIC_INCS = |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
# The next variables list the source files (EXEC_SCRS) to compile |
| 48 |
# into the object files (EXEC_OBJS) that are linked with the |
| 49 |
# library files (EXEC_LIBS) to make EXECUTABLE |
| 50 |
|
| 51 |
EXEC_SRCS = |
| 52 |
|
| 53 |
EXEC_OBJS = |
| 54 |
|
| 55 |
EXEC_LIBS = |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
# The next variables list the source files (LIB_SCRS) to compile |
| 60 |
# into the object files (LIB_OBJS) that are combined to make LIBRARY |
| 61 |
|
| 62 |
LIB_SRCS = \ |
| 63 |
sensitivity.c |
| 64 |
|
| 65 |
LIB_OBJS = \ |
| 66 |
sensitivity.obj |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
# The global makefile macros (ConfigAscend) and global rules (Makefile.Rules) |
| 71 |
# |
| 72 |
!include $(builddir)\ConfigAscend.vc |
| 73 |
!include $(builddir)\Makefile.Rules.vc |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
# File specific rules |
| 78 |
|
| 79 |
#--------------------- |
| 80 |
##OLD>>>#PACKAGE_SRCS = kvalues.c bisect.c sensitivity.c |
| 81 |
##OLD>>>PACKAGE_SRCS = sensitivity.c |
| 82 |
##OLD>>>#PACKAGE_BINS = kvalues.o bisect.o sensitivity.o |
| 83 |
##OLD>>>PACKAGE_BINS = sensitivity.o |
| 84 |
##OLD>>> |
| 85 |
##OLD>>> |
| 86 |
##OLD>>> |
| 87 |
##OLD>>># Uncomment the following only if you want to do something specific |
| 88 |
##OLD>>># to this directory that should override the ConfigAscend file |
| 89 |
##OLD>>># |
| 90 |
##OLD>>>#CC = |
| 91 |
##OLD>>>#CFLAGS = |
| 92 |
##OLD>>>#SHARED_CFLAGS = |
| 93 |
##OLD>>>#LD = |
| 94 |
##OLD>>>#SHARED_LD_FLAGS = |
| 95 |
##OLD>>># |
| 96 |
##OLD>>># Uncomment the above only to override the ConfigAscend file |
| 97 |
##OLD>>> |
| 98 |
##OLD>>> |
| 99 |
##OLD>>># Customize the following if required |
| 100 |
##OLD>>>INCLUDES = $(ASCINC) |
| 101 |
##OLD>>>DEPEND_INCLUDES = |
| 102 |
##OLD>>>DEFINES = $(GLOBAL_DEFS) $(MOD_ASCMALLOC) |
| 103 |
##OLD>>>ALL_CFLAGS = $(INCLUDES) $(DEFINES) $(CFLAGS) |
| 104 |
##OLD>>>DEPEND_FLAGS = $(INCLUDES) $(DEFINES) |
| 105 |
##OLD>>>LDFLAGS = |
| 106 |
##OLD>>>SYSLIBS = |
| 107 |
##OLD>>> |
| 108 |
##OLD>>> |
| 109 |
##OLD>>>.SUFFIXES: |
| 110 |
##OLD>>>.SUFFIXES: .c .i .o .f |
| 111 |
##OLD>>>.c.o: |
| 112 |
##OLD>>> $(CC) $(ALL_CFLAGS) $(SHARED_CFLAGS) -c $< |
| 113 |
##OLD>>>.c.i: |
| 114 |
##OLD>>> $(CPP) $(ALL_CFLAGS) $(SHARED_CFLAGS) $< > $@ |
| 115 |
##OLD>>>.f.o: |
| 116 |
##OLD>>> $(F77) $(F77_OPTS) $(F77FLAGS) $(SHARED_CFLAGS) -c $< |
| 117 |
##OLD>>> |
| 118 |
##OLD>>> |
| 119 |
##OLD>>> |
| 120 |
##OLD>>># This target will build both the libpackages.a archive as well |
| 121 |
##OLD>>># as dynamically loadable libraries. A user can then choose which |
| 122 |
##OLD>>># mode of operation, static or dynamic to use. |
| 123 |
##OLD>>> |
| 124 |
##OLD>>>all: libpackages.a shared_libs |
| 125 |
##OLD>>> |
| 126 |
##OLD>>>shared_libs: libkvalues.$(SHARED_ID) libbisect.$(SHARED_ID) \ |
| 127 |
##OLD>>> libsensitivity.$(SHARED_ID) |
| 128 |
##OLD>>> |
| 129 |
##OLD>>>libkvalues.$(SHARED_ID): kvalues.o |
| 130 |
##OLD>>> $(LD) $(SHARED_LD_FLAGS) -o $@ kvalues.o |
| 131 |
##OLD>>> |
| 132 |
##OLD>>>libbisect.$(SHARED_ID): bisect.o |
| 133 |
##OLD>>> $(LD) $(SHARED_LD_FLAGS) -o $@ bisect.o |
| 134 |
##OLD>>> |
| 135 |
##OLD>>>libsensitivity.$(SHARED_ID): sensitivity.o |
| 136 |
##OLD>>> $(LD) $(SHARED_LD_FLAGS) -o $@ sensitivity.o |
| 137 |
##OLD>>> |
| 138 |
##OLD>>># shared libs that depend on fortran libraries require special care. |
| 139 |
##OLD>>># That care will depend on wheter the fortran sources were f2c or |
| 140 |
##OLD>>># if they are original fortran code. The order of linking is |
| 141 |
##OLD>>># *everything*. |
| 142 |
##OLD>>># |
| 143 |
##OLD>>>libdistil.$(SHARED_ID): distillation.o nrdist_sub2.o |
| 144 |
##OLD>>> $(LD) $(SHARED_LD_FLAGS) -o $@ distillation.o nrdist_sub2.o \ |
| 145 |
##OLD>>> $(F77LIBS) $(MATHLIBS) |
| 146 |
##OLD>>> |
| 147 |
##OLD>>># This is a nice quick and dirty way if all the sources |
| 148 |
##OLD>>># were well behaved. Unfortunately that is not the case. |
| 149 |
##OLD>>># so it sits here as an artifact of my ingenuity. |
| 150 |
##OLD>>># |
| 151 |
##OLD>>>#BINSTUBS = kvalues distillation bisect nrdist_sub2 |
| 152 |
##OLD>>>#shared_libs : $(BINSTUBS) |
| 153 |
##OLD>>>#$(BINSTUBS) : $(PACK_BINS) |
| 154 |
##OLD>>># $(LD) $(SHARED_LD_FLAGS) -o lib$@.$(SHARED_ID) $@.o |
| 155 |
##OLD>>> |
| 156 |
##OLD>>> |
| 157 |
##OLD>>> |
| 158 |
##OLD>>>install-binaries: $(LIB_DIR) |
| 159 |
##OLD>>># no need to install libpackages.a since nothing uses it |
| 160 |
##OLD>>># $(INSTALL_DATA) $(ARCHIVE)/libpackages.a $(LIB_DIR)/libpackages.a |
| 161 |
##OLD>>># $(RANLIB) $(LIB_DIR)/libpackages.a |
| 162 |
##OLD>>> |
| 163 |
##OLD>>> |
| 164 |
##OLD>>> |
| 165 |
##OLD>>>clean mostlyclean: |
| 166 |
##OLD>>> $(RM) $(ARCHIVE)/libpackages.a lib*.$(SHARED_ID) *.o *.i core a.out |
| 167 |
##OLD>>> |
| 168 |
# DO NOT DELETE THIS LINE -- g++dep uses it. |
| 169 |
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 170 |
|
| 171 |
|
| 172 |
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY |