File: Makefile.SH

package info (click to toggle)
cgiwrap 3.5-3
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 356 kB
  • ctags: 115
  • sloc: sh: 3,954; ansic: 1,036; perl: 104; makefile: 86
file content (66 lines) | stat: -rwxr-xr-x 1,303 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
case $CONFIG in
'')
	if test -f config.sh; then TOP=.;
	elif test -f ../config.sh; then TOP=..;
	elif test -f ../../config.sh; then TOP=../..;
	elif test -f ../../../config.sh; then TOP=../../..;
	elif test -f ../../../../config.sh; then TOP=../../../..;
	else
		echo "Can't find config.sh."; exit 1
	fi
	. $TOP/config.sh
	;;
esac
: This forces SH files to create target in same directory as SH file.
: This is so that make depend always knows where to find SH derivatives.
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
echo "Extracting Makefile (with variable substitutions)"

$spitshell >Makefile <<!GROK!THIS!
#
# Makefile for CGIWrap
# Don't change this file, it will be replaced by Makefile.SH
#

#
# Other Compiler Flags
#
CC= $cc
CCDEBUG= $optimize
CCFLAGS= $ccflags $afsccopts
LDFLAGS= $ldflags $afsldopts
LIBS= $afslibs $libs

#
# Object Files
#
OBJS=cgiwrap.o debug.o util.o fetch.o stdutil.o

#
# Dependencies and rules
#
all: cgiwrap

.c.o: cgiwrap.h config.h Makefile
	\$(CC) \$(CCDEBUG) -c \$(CCFLAGS) \$<

cgiwrap: \$(OBJS)
	\$(CC) \$(OBJS) \$(LDFLAGS) \$(LIBS) -o cgiwrap

clean:
	rm -f *.o *.tar cgiwrap.cat cgiwrap core

realclean:
	rm -f Makefile cppstdin Wanted config.h 

reconf: clean
	./Configure -S

remake: reconf all

!GROK!THIS!

chmod 755 Makefile
$eunicefix Makefile