1 |
# ASCEND MINOS 5.4 Makefile |
2 |
# Ben Allan |
3 |
# March 28, 1994 |
4 |
# $Date: 1997/02/07 18:23:53 $ |
5 |
# $Revision: 1.3 $ |
6 |
# $Author: mthomas $ |
7 |
# $Source: /afs/cs.cmu.edu/project/ascend/Repository/minos54/Makefile.in,v $ |
8 |
# |
9 |
|
10 |
# If you do not have minos 5.4, this file is irrelevant |
11 |
# to installing ASCEND |
12 |
# |
13 |
|
14 |
|
15 |
SHELL = /bin/sh |
16 |
@SET_MAKE@ |
17 |
builddir = ../ascend4 |
18 |
srcdir = @srcdir@ |
19 |
VPATH = @srcdir@ |
20 |
|
21 |
INCMAKE = $(builddir)/ConfigAscend |
22 |
include $(INCMAKE) |
23 |
|
24 |
MINOS_SRCS = miascend.f mi10unix.f mi20amat.f \ |
25 |
mi25bfac.f mi30spec.f mi35inpt.f mi40bfil.f mi50lp.f \ |
26 |
mi60srch.f mi65rmod.f mi70nobj.f mi80ncon.f |
27 |
MINOS_BINS = miascend.o mi10unix.o mi20amat.o \ |
28 |
mi25bfac.o mi30spec.o mi35inpt.o mi40bfil.o mi50lp.o \ |
29 |
mi60srch.o mi65rmod.o mi70nobj.o mi80ncon.o |
30 |
|
31 |
# sources not to be distributed |
32 |
NOCOPY= mi00main.f mi05funs.f mi10unix.f mi15blas.f mi20amat.f \ |
33 |
mi25bfac.f mi30spec.f mi35inpt.f mi40bfil.f mi50lp.f \ |
34 |
mi60srch.f mi65rmod.f mi70nobj.f mi80ncon.f minosl.f \ |
35 |
m1minos.doc fortnames makefile.orig unix.doc readme. mi30spec.f.orig |
36 |
|
37 |
NOMINOS_SRCS = nominos.f |
38 |
NOMINOS_BINS = nominos.o |
39 |
|
40 |
|
41 |
|
42 |
# Uncomment the following only if you want to do something specific |
43 |
# to this directory that should override the ConfigAscend file |
44 |
# |
45 |
#CC = |
46 |
#CFLAGS = |
47 |
# |
48 |
# Uncomment the above only to override the ConfigAscend file |
49 |
|
50 |
|
51 |
# Customize the following if required |
52 |
INCLUDES = $(ASCINC) |
53 |
DEPEND_INCLUDES = |
54 |
DEFINES = $(GLOBAL_DEFS) $(MOD_ASCMALLOC) |
55 |
ALL_CFLAGS = $(INCLUDES) $(DEFINES) $(CFLAGS) |
56 |
ALL_CPPFLAGS = $(INCLUDES) $(DEFINES) |
57 |
DEPEND_FLAGS = $(INCLUDES) $(DEFINES) |
58 |
LDFLAGS = |
59 |
SYSLIBS = |
60 |
|
61 |
|
62 |
.SUFFIXES: |
63 |
.SUFFIXES: .c .i .o .f |
64 |
.c.o: |
65 |
$(CC) $(ALL_CFLAGS) -c $< |
66 |
.c.i: |
67 |
$(CPP) $(ALL_CPPFLAGS) $< > $@ |
68 |
.f.o: |
69 |
$(F77) $(F77FLAGS) -c $< |
70 |
|
71 |
|
72 |
|
73 |
all: libminos54.a |
74 |
|
75 |
libminos54.a: $(MINOS_BINS) |
76 |
$(RM) libminos54.a |
77 |
$(AR) cr libminos54.a $(MINOS_BINS) |
78 |
$(RANLIB) libminos54.a |
79 |
|
80 |
nominos: $(NOMINOS_BINS) |
81 |
$(RM) libminos54.a |
82 |
$(AR) cr libminos54.a $(NOMINOS_BINS) |
83 |
$(RANLIB) libminos54.a |
84 |
|
85 |
|
86 |
|
87 |
install: install-binaries install-libraries |
88 |
|
89 |
install-binaries: $(LIB_DIR) |
90 |
$(INSTALL_DATA) $(ARCHIVE)/libminos54.a $(LIB_DIR)/libminos54.a |
91 |
$(RANLIB) $(LIB_DIR)/libminos54.a |
92 |
|
93 |
install-libraries: |
94 |
# this would install include files if we were installing them |
95 |
|
96 |
$(LIB_DIR): |
97 |
mkdir $(LIB_DIR) |
98 |
|
99 |
uninstall: uninstall-binaries |
100 |
|
101 |
uninstall-binaries: |
102 |
$(RM) $(LIB_DIR)/libminos54.a |
103 |
|
104 |
|
105 |
|
106 |
save-makes: |
107 |
cp Makefile Makefile.SAVED |
108 |
|
109 |
clean mostlyclean: |
110 |
$(RM) libminos54.a *.o *.i core a.out |
111 |
|
112 |
reallyclean: clean |
113 |
$(RM) *~ \#* *.bak TAGS |
114 |
|
115 |
distclean: reallyclean |
116 |
$(RM) Makefile config.status |
117 |
|
118 |
unlicensed: |
119 |
$(RM) $(NOCOPY) |
120 |
$(RM) -r misc test |
121 |
|
122 |
|
123 |
|
124 |
nodepend: $(MINOS_SRCS) |
125 |
$(DEPEND_RM) $(DEPEND_FLAGS) $(DEPEND_INCLUDES) $? |
126 |
|
127 |
depend: $(MINOS_SRCS) |
128 |
$(DEPEND) $(DEPEND_FLAGS) $(DEPEND_INCLUDES) $? |
129 |
|
130 |
# DO NOT DELETE THIS LINE -- g++dep uses it. |
131 |
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
132 |
|
133 |
|
134 |
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY |