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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
|
########################################
# This is the Master Makefile for FUDGIT
########################################
#Modified below for debian
#Gopal Narayanan
DESTDIR =
# Where to put the program onced compiled.
BINDIR=$(DESTDIR)/usr/bin
# Where to put the help file.
LIBDIR=$(DESTDIR)/usr/lib
# Where to put the man page.
MANDIR=$(DESTDIR)/usr/share/man/man1
# The following options are selected by commenting '#' them in or out.
# Do you want dynamic loading? You must have gcc or be on an SGI.
# DYNLOAD = -Ddynamic-loading
# Do you have a dynamic loadable library of readline (e.g. on linux)?
# If not, leave the following commented out so that readline library
# will be built and statically linked to.
DLLRL = -Duse-dll-readline
# The default yacc'er
YACC = yacc
# YACC = bison -y
# -=-==-=-=--=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# You should not need to edit below this point
# -=-==-=-=--=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# Just type 'make target' and then 'make install'
# 'target' is one of :
# 3868bsd, aix, datagen, freebsd, hpux, linux, irix4, irix5, next, osf,
# sun3, sun4, svr4, ultrix, ultrix_vax, (vms)
# -=-==-=-=--=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
SHELL = /bin/sh
VERSION = 2.42
#########################################################################
default:
@echo Use to make one of the following:
@echo
@echo " 386bsd, aix, datagen, freebsd, hpux, irix4, irix5,"
@echo " linux, next, osf, sun3, sun4, svr4, "
@echo " ultrix, ultrix_vax, (vms)"
@echo
@echo And then type
@echo
@echo " make install"
@echo
@echo Please read the \"INSTALL\" file first\!
@echo
386bsd: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -D386bsd $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
aix: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Daix $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
datagen: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Ddatagen $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
freebsd: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dfreebsd $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
hpux: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dhpux $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
irix4: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dirix4 $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
irix5: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dirix5 $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
next: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dnext $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
osf: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dosf $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
sun3: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dsun3 $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
sun4: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dsun4 $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
solaris: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dsolaris $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
ultrix: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dultrix $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
ultrix_vax: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dultrix_vax $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
linux: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dlinux $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
svr4: simplecpp
@echo Building Makefile.active ...
docs/simplecpp -Dsvr4 $(DYNLOAD) $(DLLRL) Makefile.in Makefile.active
@echo done.
$(MAKE) LIBDIR="$(LIBDIR)" YACC="$(YACC)" -f Makefile.active
################################################################################
install: Makefile.active
$(MAKE) BINDIR="$(BINDIR)" LIBDIR="$(LIBDIR)" MANDIR="$(MANDIR)" \
YACC="$(YACC)" install -f Makefile.active
help: Makefile.active
$(MAKE) help -f Makefile.active
doc: Makefile.active
$(MAKE) doc -f Makefile.active
simplecpp:
@echo Building included simple preprocessor ...
(cd docs; $(MAKE) simplecpp)
@echo done.
dist:
-rm -f fudgit_$(VERSION).tar.gz fudgit_$(VERSION).tar
(cd docs; $(MAKE) ../Credits )
($(MAKE) cleanall)
(cd ..; tar cf fudgit_$(VERSION).tar \
Fudgit_$(VERSION)/[A-Z]* \
Fudgit_$(VERSION)/.[a-z]* \
Fudgit_$(VERSION)/docs \
Fudgit_$(VERSION)/src \
Fudgit_$(VERSION)/libs \
Fudgit_$(VERSION)/tools \
Fudgit_$(VERSION)/examples ; \
gzip -9 -f fudgit_$(VERSION).tar; \
mv fudgit_$(VERSION).tar.gz Fudgit_$(VERSION))
NewVersion: Makefile cleanall
echo "Misc files:" > .contents
wc [A-LN-Z]* docs/reference.tmpl \
docs/fudgit.tex docs/*.l docs/*.c tools/* >> .contents
echo "Code: " >> .contents
wc Makefile* src/Makefile* libs/readline/Makefile* libs/dl/Makefile* \
libs/dld/Makefile* libs/dld/dl/Makefile* \
src/*.[hcy] libs/readline/*.[hc] libs/dl/*.[hc] \
libs/dld/*.[hc] libs/dld/dl/*.[hc] >> .contents
echo "Examples: " >> .contents
wc examples/* >> .contents
date > .date
echo $(VERSION) > .version
clean:
-/bin/rm -f core src/*.o src/*.u src/y.tab.h \
src/math.tab.h src/y.tab.c src/mathparse.c src/y.output src/yacc.*
cleanall:
-/bin/rm -f src/*.o src/core src/y.tab.h \
src/math.tab.h src/y.tab.c src/mathparse.c \
src/y.output src/yacc.*
-/bin/rm -f fudgit Makefile.active
-/bin/rm -f libs/lib*.a
-(cd docs; $(MAKE) cleanall)
-(cd libs/readline; $(MAKE) clean)
-(cd libs/dl; $(MAKE) clean)
-(cd libs/dld; $(MAKE) clean)
-(cd libs/dld/dl; $(MAKE) clean)
-(cd tools; $(MAKE) clean)
manual: Makefile.active
-(cd docs; $(MAKE) fudgit.ps)
Makefile.active:
@echo "You must specify a target first (e.g. make linux)."; false
|