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
|
#
# Makefile for dcl-6.5
#
# Copyright (C) 2000-2022 GFD Dennou Club. All rights reserved.
#
include Mkinclude
DIRSCLN = src demo
DIRSCLNA = src demo bin lib include doc
all: mkldir object library shared-library dbase script
mkldir: mkldir-stamp
mkldir-stamp:
@if (test ! -d $(LDBASEDIR)) then \
echo "Making directory $(LDBASEDIR)" ; \
mkdir -p $(LDBASEDIR); \
fi
touch $@
object: object-stamp
object-stamp: mkldir-stamp
@cd src ; \
echo "Making object files..." ; \
$(MAKE) object ; \
cd ..
touch $@
library: library-stamp
library-stamp: object-stamp
@cd src ; \
echo "Making a library file..." ; \
$(MAKE) library ; \
cd ..
touch $@
shared-library :
@TODO_SHARED_LIBRARY@
dbase: dbase-stamp
dbase-stamp: library-stamp
@cd src ; \
echo "Making database..." ; \
$(MAKE) dbase ; \
cd ..
touch $@
exec: exec-stamp
exec-stamp: library-stamp
@cd src ; \
echo "Making exec files..." ; \
$(MAKE) exec ; \
cd ..
touch $@
script: script-stamp
script-stamp: library-stamp
@cd bin ; \
echo "Making command script files..." ; \
$(MAKE) all ; \
cd ..
touch $@
install: mkdir libinstall incinstall bininstall \
maninstall
mkdir: mkdir-stamp
mkdir-stamp: library-stamp dbase-stamp exec-stamp script-stamp
@if (test ! -d $(prefix)) then \
echo "Making directory $(prefix)" ; \
mkdir -p $(prefix) ; \
fi
@if (test ! -d $(LIBDIR)) then \
echo "Making directory $(LIBDIR)" ; \
mkdir -p $(LIBDIR) ; \
fi
@if (test ! -d $(BINDIR)) then \
echo "Making directory $(BINDIR)" ; \
mkdir -p $(BINDIR) ; \
fi
@if (test ! -d $(INCDIR)) then \
echo "Making directory $(INCDIR)" ; \
mkdir -p $(INCDIR) ; \
fi
@if (test ! -d $(DBASEDIR)) then \
echo "Making directory $(DBASEDIR)" ; \
mkdir -p $(DBASEDIR) ; \
fi
@if (test ! -d $(MANDIR)) then \
echo "Making directory $(MANDIR)" ; \
mkdir -p $(MANDIR) ; \
fi
@if (test ! -d $(MANDIR)/man1) then \
echo "Making directory $(MANDIR)/man1" ; \
mkdir -p $(MANDIR)/man1 ; \
fi
touch $@
libinstall: libinstall-stamp
libinstall-stamp: mkdir-stamp
@cd lib ; \
echo "Installing lib..." ; \
$(MAKE) install ; \
cd ..
touch $@
incinstall: incinstall-stamp
incinstall-stamp: mkdir-stamp
@cd include ; \
echo "Installing include..." ; \
$(MAKE) install ; \
cd ..
touch $@
bininstall: bininstall-stamp
bininstall-stamp: mkdir-stamp
@cd bin ; \
echo "Installing bin..." ; \
$(MAKE) install ; \
cd ..
touch $@
maninstall: maninstall-stamp
maninstall-stamp: mkdir-stamp
@cd man ; \
echo "Installing manpage..." ; \
$(MAKE) install ; \
cd ..
touch $@
clean: clean.local clean.dir
distclean: clean.locala clean.dira clean.self
clean.all: clean.locala clean.dira clean.self
clean.local:
$(RM) *~ *.aux
clean.locala: clean.local
$(RM) *~ *.aux a.exe config.cache config.log config.status config.h *-stamp
clean.self:
$(RM) Makefile Mkinclude
clean.dir:
@for i in $(DIRSCLN) ; do \
cd $$i ; \
echo "Cleaning $$i/" ; \
$(MAKE) clean ; \
cd .. ; \
done
clean.dira:
@for i in $(DIRSCLNA) ; do \
cd $$i ; \
echo "Cleaning $$i/" ; \
$(MAKE) distclean ; \
cd .. ; \
done
test:
@./bin/dclconfig650 --libdir > /dev/null
|