File: Makefile

package info (click to toggle)
tkisem 4.5.12-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 1,372
  • sloc: cpp: 4,844; tcl: 3,047; asm: 1,991; makefile: 335; ansic: 269; sh: 155
file content (55 lines) | stat: -rw-r--r-- 1,970 bytes parent folder | download
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
###############################################################################
# Makefile - makefile for all of tkisem
#
# $Id: Makefile 1.1 Sat, 13 Sep 1997 12:04:11 -0600 maccabe $
###############################################################################

#  ISEM - Instructional Sparc EMulator and tkisem
#  Copyright (C) 1993-2001
#	Department of Computer Science,
#      The University of New Mexico

#   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., 675 Mass Ave, Cambridge, MA 02139, USA.

SHELL = /bin/sh
# Leave build last!
SUBDIRS = src generic build
# No need for this during automated build
# SUBDIRS += tests

# Cheesy trick to get newlines into output of foreach:
define NL


endef

all clean realclean depend install: configure
	$(foreach d, $(SUBDIRS), -$(MAKE) -C $d $@ $(NL))

configure: build/make.config

build/make.config:
	@echo "--------------------------------------------"
	@echo "  Configuring using all default values"
	@echo "  (You can also configure explicitly.  For example,"
	@echo "     ./configure --prefix=/home/foo/tkisem"
	@echo "  will arrange to install tkisem in "
	@echo "  '/home/foo/tkisem/bin' and '/home/foo/tkisem/lib'."
	@echo "--------------------------------------------"
	./configure

distrib: realclean
	@rm -f *~ core
	(dir=`basename \`pwd\`` ; echo "$$dir"; cd .. ; tar -cvzf $$dir.tgz $$dir )