File: Makefile.proto

package info (click to toggle)
dqs 3.1.8-9
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 8,908 kB
  • ctags: 9,887
  • sloc: ansic: 87,447; sh: 2,952; makefile: 442; yacc: 247; lex: 94; perl: 83; csh: 51; fortran: 24; awk: 16
file content (144 lines) | stat: -rwxr-xr-x 2,258 bytes parent folder | download | duplicates (2)
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#include "Makefile.h"

/**************************************************************************/

/* Set some defaults */
AFLAGS=rv
RANLIB=ranlib
FC=f77
CC=gcc
CFLAGS= -g
LFLAGS=

#ifdef _AIX
CFLAGS= -g
LFLAGS=
#endif

#ifdef SVR3
CFLAGS=-g
LFLAGS=-lmld
AFLAGS=cuvs
RANLIB=file
#endif

#ifdef __sgi
CFLAGS=-g
/* If you do not want NIS support compiled into DQS under IRIX, remove*/
/* -lsun from the LFLAGS. */
LFLAGS=-lmld -lsun
AFLAGS=cuvs
#ifdef mips_sgi_irix64_6_0_1
CFLAGS= -g -mips2
LFLAGS= -mips2
#endif
#undef RANLIB
RANLIB=file
#endif

#ifdef sparc_sun_sunos4_1_1
#define sun
#endif

#ifdef sparc_sun_solaris2_3
CFLAGS=-g  -DSVR4 -DSOLARIS23
RANLIB=file
LFLAGS=-lelf -lsocket -lnsl  -lthread -lkvm
#define solaris
#else
/* SunOS */
#ifdef sun
CFLAGS=-g
LFLAGS=
RANLIB=ranlib
#endif
#endif

#ifdef sparc_sun_solaris2_4
CFLAGS=-g -DSOLARIS24
RANLIB=file
LFLAGS=-lelf -lsocket -lnsl  -lthread -lkvm
#define solaris
#endif

#ifdef sparc_sun_solaris2_5

CFLAGS=-g  -DSOLARIS25 -DSOLARIS24 -I/usr/openwin/include
RANLIB=file 
LFLAGS=-lelf -lsocket -lnsl  -lthread -lkvm
#define solaris
#endif


#ifdef ultrix
#ifndef vax
CFLAGS=-g
LFLAGS=
#endif
#endif

#ifdef ultrix
#ifdef vax
CFLAGS=-g
LFLAGS=
#endif
#endif

#ifdef _UNICOS
CFLAGS=-g -I/usr/local/include
LFLAGS=-L/usr/local/lib -lalloca
AFLAGS=cuv
RANLIB=file
#endif

#ifdef __hpux
CFLAGS=
LFLAGS=
#endif

#ifdef NeXT
CFLAGS = -posix
LFLAGS = -posix
#endif

#ifdef SPEW
#endif



/*************************************************************************/



CFILES = main.c get_make.c get_dqs.c get_conf_file.c 			\
	get_resolve_file.c etc_services.c script_config.c 	\
	do_host_ck.c generate_makefile.c dqs_getdomainname.c

OBJS = main.o get_make.o get_dqs.o get_conf_file.o get_resolve_file.o 	\
	etc_services.o  script_config.o  do_host_ck.o		\
	generate_makefile.o dqs_getdomainname.o

all: config host_ck  

config: $(OBJS)
	$(CC) -o config $(OBJS)  $(LFLAGS) $(LIBS)

host_ck: do_host_ck.o host_ck.o dqs_getdomainname.o
	$(CC) -o host_ck do_host_ck.o host_ck.o dqs_getdomainname.o $(LFLAGS) $(LIBS)

clean:
	rm -f *.o resolve_file conf_file  config *.log core core.* *~
	rm -f *.bak header host_ck  #*

header:
	rm -f header
	desc.pl $(CFILES) > header



lines:
	wc -l $(CFILES) main.h