File: makefile

package info (click to toggle)
macutils 2.0b3-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 788 kB
  • ctags: 1,436
  • sloc: ansic: 12,655; makefile: 656
file content (78 lines) | stat: -rwxr-xr-x 2,012 bytes parent folder | download | duplicates (8)
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
SHELL =	/bin/sh
BINDIR =	/ufs/dik/tmpbin
# Use the following flags on the CF macro definition as needed.
#
# -DBSD if you are on a BSD system
#
# -DTYPES_H if your system has /usr/include/sys/types.h
#
# -DDIRENT_H if your system has /usr/include/dirent.h
#
# -DTERMIOS_H if your system has /usr/include/sys/termios.h
#
# -DNODOT if you do not want to create files with an initial period
#
# -DLATIN1 if your system supports LATIN-1 and you want to use it
#
# Note you can use at most one of the following four!
#
# -DNOMKDIR if your system does not have the mkdir system call
#
# -DAUFS if you want to use an AUFS file system
#
# -DAUFSPLUS if you use CAP 6.0 and want to use times on files
#
# -DAPPLEDOUBLE if you want to be able to use an AppleDouble file system
#
CF =	-DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DNODOT -DAPPLEDOUBLE

all:
	(cd crc; make CF='$(CF)')
	(cd util; make CF='$(CF)')
	(cd fileio; make CF='$(CF)')
	(cd macunpack; make CF='$(CF)')
	(cd hexbin; make CF='$(CF)')
	(cd mixed; make CF='$(CF)')
	(cd binhex; make CF='$(CF)')
	(cd comm; make CF='$(CF)')

clean:
	(cd crc; make clean)
	(cd util; make clean)
	(cd fileio; make clean)
	(cd macunpack; make clean)
	(cd hexbin; make clean)
	(cd mixed; make clean)
	(cd binhex; make clean)
	(cd comm; make clean)

clobber:
	(cd crc; make clean)
	(cd util; make clean)
	(cd fileio; make clean)
	(cd macunpack; make clobber)
	(cd hexbin; make clobber)
	(cd mixed; make clobber)
	(cd binhex; make clobber)
	(cd comm; make clobber)

lint:
	(cd macunpack; make CF='$(CF)' lint)
	(cd hexbin; make CF='$(CF)' lint)
	(cd mixed; make CF='$(CF)' lint)
	(cd binhex; make CF='$(CF)' lint)
	(cd comm; make CF='$(CF)' lint)

install:
	cp macunpack/macunpack $(BINDIR)/.
	cp hexbin/hexbin $(BINDIR)/.
	cp mixed/macsave $(BINDIR)/.
	cp mixed/macstream $(BINDIR)/.
	cp binhex/binhex $(BINDIR)/.
	cp comm/tomac $(BINDIR)/.
	cp comm/frommac $(BINDIR)/.

distr:
	shar -a README makefile crc util fileio macunpack hexbin mixed binhex  \
		comm doc man >macutil.shar