forked from QW-Group/ktx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
102 lines (69 loc) · 2.13 KB
/
Makefile
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
# QWProgs-DM
# Copyright (C) 2004 [MAD]ApxuTekTop
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#
# $Id$
RM=/bin/rm
SRCDIR=src
INCDIR=include
PREFIX=/usr/local
MAKEDL=$(MAKE) -f Makefile.dl
MAKEDL32=$(MAKE) -f Makefile.dl32
MAKEQVM=$(MAKE) -f Makefile.vm
all: build
dl: build-dl
dl32: build-dl32
vm: build-vm
build: build-dl build-dl32 build-vm
build-dl:
cd $(SRCDIR); $(MAKEDL) build
build-dl32:
cd $(SRCDIR); $(MAKEDL32) build
build-vm:
cd $(SRCDIR); $(MAKEQVM) build
install: install-dl install-dl32 install-vm
install-dl:
cd $(SRCDIR); $(MAKEDL) PREFIX=$(PREFIX) install
install-dl32:
cd $(SRCDIR); $(MAKEDL32) PREFIX=$(PREFIX) install
install-vm:
cd $(SRCDIR); $(MAKEQVM) PREFIX=$(PREFIX) install
clean: clean-local clean-include clean-dl clean-dl32 clean-vm
clean-local:
$(RM) -f *~
$(RM) -rf autom4te.cache
clean-include:
cd $(INCDIR); $(RM) -f *~
clean-dl:
cd $(SRCDIR); $(MAKEDL) clean
clean-dl32:
cd $(SRCDIR); $(MAKEDL32) clean
clean-vm:
cd $(SRCDIR); $(MAKEQVM) clean
distclean: distclean-local distclean-include distclean-dl distclean-dl32 distclean-vm
distclean-local:
$(RM) -f *~ *.orig *.rej *.tmp
$(RM) -f Makefile config.log config.status
$(RM) -rf autom4te.cache
distclean-include:
cd $(INCDIR); $(RM) -f *~ *.orig *.rej *.tmp
distclean-dl:
cd $(SRCDIR); $(MAKEDL) distclean
distclean-dl32:
cd $(SRCDIR); $(MAKEDL32) distclean
distclean-vm:
cd $(SRCDIR); $(MAKEQVM) distclean