File: Makefile.config

package info (click to toggle)
htp 1.19-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,200 kB
  • sloc: ansic: 6,645; perl: 204; makefile: 60
file content (111 lines) | stat: -rw-r--r-- 1,977 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
#
# makefile - htp
#
# HTML pre-processor
# Copyright (c) 2002-2003 Jochen Hoenicke
#

RELEASE = 1
#WIN32DMC = 1
#LINUX32 = 1

#
# development tools
#
ifdef WIN32DMC
CC = dmc
LINK = dmc
OBJEXT = obj
EXEEXT = .exe
OS = Win32
else
CC = gcc
LINK = gcc
OBJEXT = o
EXEEXT = 
OS := $(shell uname -s)-$(shell uname -m)
endif
STRIP = strip
#CC = i686-w64-mingw32-gcc
#CC = i686-w64-mingw32-gcc
#LINK = $(CC)
#STRIP = i686-w64-mingw32-strip
#OBJEXT = o
#EXEEXT = .exe
#OS = Win32

INSTALL = install
RSYNC = rsync --rsh=ssh -v
DIFF = diff -q

DESTDIR = 
prefix = $(DESTDIR)/usr/
bindir = $(prefix)/bin
docdir = $(prefix)/share/doc
pkgdocdir = $(prefix)/share/doc/htp

#
# tool command-line options ... notice that these are geared towards GNU
#
CCOPT = -c
ifdef WIN32DMC
CCOPT += -o
else
CCOPT += -Wall -O2
endif
ifndef RELEASE
CCOPT += -g -DDEBUG=1
endif
# Adapt the following defines to the features of your OS.
ifdef WIN32DMC
DEFINES = -DHAVE_SNPRINTF -DPREFER_PORTABLE_SNPRINTF -DHAVE_STPCPY
else
DEFINES = -DHAVE_SNPRINTF -DHAVE_PIPE -DHAVE_STPCPY -DHAVE_VA_COPY -D_GNU_SOURCE=1
endif
#DEFINES = -DHAVE_SNPRINTF -DHAVE_VA_COPY -D_GNU_SOURCE=1

LOPT = 
# -lefence
# -lmpatrol -lbfd -liberty
#Memory debug:
#LOPT = -lmpatrol -L$(HOME)/zola/lib -lbfd -liberty
# for cygwin/win32 ?
#LOPT = -lc -Wl,-u,_WinMain@16

ifdef LINUX32
CCOPT += -m32
LOPT += -m32
OS = Linux-i386
endif

#
# project name and version
#
MAIN = htp
VERSION := 1.19
ifndef RELEASE
REVISION:= $(shell svn -R info . | grep ^Revision: | cut -c 11- | sort |tail -1)
VERSION := $(VERSION)r$(REVISION)
endif
FULLVERSION := $(VERSION)


RELDIR = $(MAIN)-$(VERSION)

#
# Layout of web server
#

ifdef RELEASE
TESTDIR =
else
TESTDIR = /$(USER)
endif

CGIBIN = http://htp.sourceforge.net/cgi-bin
RSYNCBASE = $(USER),htp@shell.sourceforge.net:/home/project-web/htp
RSYNCCGI  = $(RSYNCBASE)/cgi-bin
HTP_DIR = /home/groups/h/ht/htp/htdocs$(TESTDIR)
RSYNCDIR = $(RSYNCBASE)/htdocs$(TESTDIR)
REF_URL = $(TESTDIR)/ref
export CGIBIN