File: Makefile

package info (click to toggle)
tripwire 1.2-15
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 1,428 kB
  • ctags: 866
  • sloc: ansic: 7,938; sh: 1,316; makefile: 425; yacc: 413; lex: 133; perl: 101
file content (126 lines) | stat: -rw-r--r-- 3,658 bytes parent folder | download | duplicates (3)
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
# $Id: Makefile,v 1.16 1994/07/25 15:59:41 gkim Exp $
#
# 	Tripwire build
#
#  See the README file before running this!
#

###
###   Start of user-modified settings
###   Examine these and change the ones that need to be
###   Altered on your system
###

# destination directory for final executables
DESTDIR = /secureplace/bin

# destination for man pages
MANDIR  = /usr/man

# system utilities
LEX	= lex
#LEX	= flex			# For the GNU crowd

YACC	= yacc
#YACC	= bison -y		# For the GNU crowd (make it look like yacc)
#				# see ./contrib/README.linux for tips on
#				# making work.

# for SVR4 make (must be a Bourne-type shell)
SHELL	= /bin/sh
#SHELL	= /bin/ksh		# Another common shell
#SHELL	= /bin/bash		# For the GNU fanatics

# you can use ANSI C if you like, but K&R is equally fine.
CC     = cc			# common
#CC     = gcc			# also common
#CC	= /usr/ccs/bin/cc	# Pyramid DC/OSx (SVR4)

CFLAGS = -O			# common 
#CFLAGS = -g 			# common 
#CFLAGS = -g			# debugging
#CFLAGS = -O -cckr		# SGI
#	NOTE: some versions of the HP C compiler optimizer breaks snefru.c!  
#		consider recompiling this file seperately without optimization
#CFLAGS = -O -Aa -N		# HP/UX ansi
#CFLAGS = -O -Ac -N		# HP/UX K&R
#CFLAGS = -O -Ac -N -Wl,-a,archive    # HP/UX K&R, insure archived, static link
#CFLAGS = -systype bsd43	# ETA/10 (SVR3)
#CFLAGS = -systype bsd43	# MIPS RISC/OS 4.5x
#CFLAGS = -O -ansi		# gnu CC
#CFLAGS = -O -ansi -W -Wreturn-type -Wswitch -Wshadow # gnu CC w/all warnings
#CFLAGS = -OG			# Pyramid OSx
#CFLAGS = -O -Kold		# Pyramid DC/OSx (SVR4)
#CFLAGS = -DTW_TYPE32='int'	# DEC OSF/1 Alpha (or any other architecture
                          	# where int [but not long] is a 32 bit quantity)

# a C preprocessor (to build inode.h)
CPP	= $(CC) -E			# common
#CPP	= /usr/lib/cpp		# on older systems
#CPP	= /lib/cpp		# on older systems

# make sure libraries are not linked dynamically (as a security measure)
LDFLAGS=			# common
#LDFLAGS= -non_shared		# OSF/1
#LDFLAGS= -Bstatic		# SunOS 4 (cannot statically link tripwire
                          	#          on Solaris 2.3)
#LDFLAGS= -dn			# Pyramid DC/OSx (SVR4)

# libraries
LIBS = 				# common
#LIBS = -lsocket                # SCO
#LIBS = -lmalloc -lsun -lc_s	# IRIX 4.0
#LIBS = -lx			# Xenix
#LIBS = -lbsd			# MIPS RISC/OS
#LIBS = -lgnumalloc           # Encore / UMAX V


# If you don't have the install command, you need to replace
# the use of it later in the makefile with a cp and chmod
INSTALL= /usr/bin/install	# common
#INSTALL= /usr/ucb/install	# Pyramid DC/OSx (SVR4)
#INSTALL= /etc/install		# Pyramid OSx
#INSTALL= /bin/cp		# no install
#INSTALL= /usr/bin/installbsd	# OSF/1 (DEC only?)

# how you get hostname information (BSD vs. SYSV style)
HOSTNAME	= "hostname"		# BSD
#HOSTNAME	= "uname -n"		# System V 


###
###   End of user-modified settings
###   You should not need to change anything after this
###

DIST		= tripwire-1.2

all:
	(cd aux; make CC=$(CC) CFLAGS="$(CFLAGS)"  \
		LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) all)
	(cd src; make CC=$(CC) CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" \
		LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) \
		YACC="$(YACC)" LEX="$(LEX)" all)

install: all
	(cd src; make INSTALL=$(INSTALL) DESTDIR=$(DESTDIR) install)
	(cd man; make INSTALL=$(INSTALL) MANDIR=$(MANDIR) install)

test:	all
	(cd tests; make HOSTNAME=$(HOSTNAME) DIST=$(DIST) SHELL=$(SHELL) \
			CC=$(CC))

clean:
	(cd src; make clean)
	(cd man; make clean)
	(cd aux; make clean)
	(cd tests; make clean)
	rm -f core  

clobber: clean
	(cd src; make clobber)
	(cd man; make clean)
	(cd aux; make clean)
	(cd tests; make clean)
	rm -f core  
	rm -f */*_pure_*.o sigs/*/*_pure_*.o