File: Makefile

package info (click to toggle)
ftjam 2.5.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,216 kB
  • ctags: 1,237
  • sloc: ansic: 7,226; sh: 2,751; yacc: 443; makefile: 121
file content (79 lines) | stat: -rwxr-xr-x 1,741 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Makefile to build Jam on Unix with the default compiler
# (i.e. "cc" or "$CC" when defined)
#
# To use it, you must be in the top Jam source directory,
# and call
#
#    make
#
# the program "jam" will be created in the new
# directory named "bin.unix"
#

CC      = gcc
TARGET  = -o jam0
CFLAGS  = -g -O2 

all: jam0
	chmod a+w jambase.c
	./jam0

include common.mk

############################################################################
#
# The following is very specific and deals with installation
# it implements "make install" and "make uninstall" for the
# Jam executable.
#
# Note that for now, no documentation is installed with the executable
#

BUILD_DIR    := bin.unix


prefix       := /usr/local
exec_prefix  := ${prefix}
libdir       := ${exec_prefix}/lib
bindir       := ${exec_prefix}/bin
includedir   := ${prefix}/include
datadir      := ${prefix}/share

version_info := @version_info@

DELETE       := rm -f
DELDIR       := rmdir

# The Jam executable name. This is 'jam' on Unix, except Cygwin where
# it will be "jam.exe". Yuckk..
#
JAMEXE       := jam

INSTALL         := /usr/bin/install -c
INSTALL_PROGRAM := ${INSTALL}
MKINSTALLDIRS   := builds/unix/mkinstalldirs


.PHONY: install uninstall check clean distclean

# Unix installation and deinstallation targets.
# Package managers can use the DESTDIR variable to force another
# installation prefix
#
install: jam0
	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) $(BUILD_DIR)/$(JAMEXE) $(DESTDIR)$(bindir)/$(JAMEXE)


uninstall:
	-$(DELETE) $(DESTDIR)$(bindir)/$(JAMEXE)

clean:
	-$(DELETE) $(BUILD_DIR)/*
	-$(DELETE) jam0

distclean: clean
	-$(DELETE) config.log config.status Makefile

check:
	@echo There is no validation suite for this package.