File: Makefile

package info (click to toggle)
prayer 1.3.5-dfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,576 kB
  • sloc: ansic: 43,161; makefile: 817; sh: 445; perl: 166
file content (61 lines) | stat: -rw-r--r-- 1,330 bytes parent folder | download | duplicates (5)
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
# $Cambridge: hermes/src/prayer/shared/Makefile,v 1.5 2009/03/19 17:30:03 dpc22 Exp $
#
# Prayer - a Webmail Interface
#
# Copyright (c) University of Cambridge 2000 - 2008
# See the file NOTICE for conditions of use and distribution.

ifeq ($(strip $(RPM_BUILD)), true)
include ../Config-RPM
else
include ../Config
endif

# Enable on the fly compression
ifeq ($(strip $(GZIP_ENABLE)), true)
  GZIP_DEF    = -DGZIP_ENABLE
  BASECFLAGS += $(Z_INCLUDE)
endif

# Enable SYSV mutex
ifeq ($(strip $(MUTEX_SEMAPHORE)), true)
  MUTEX_DEF = -DMUTEX_SEMAPHORE
endif

# Enable Electric Fence
ifeq ($(strip $(FENCE_ENABLE)), true)
  BASECFLAGS += $(FENCE_INCLUDE)
endif

BASECFLAGS += -I../lib

MYCFLAGS  = $(BASECFLAGS)

SHARED_OBJS = \
 config.o gzip.o html_common.o log.o \
 request.o response.o user_agent.o dlopen_templates.o


all: $(SHARED_OBJS)
	rm -f shared.a
	ar r shared.a $(SHARED_OBJS)

# response.o: need to add GZIP_ENABLE
response.o: response.c *.h Makefile
	$(CC) $(MYCFLAGS) $(GZIP_DEF) -c $<

# gzip.o: need to add GZIP_ENABLE
gzip.o: gzip.c *.h Makefile
	$(CC) $(MYCFLAGS) $(GZIP_DEF) -c $<

# config.o: need to add MUTEX_DEF
config.o: config.c *.h Makefile
	$(CC) $(MYCFLAGS) $(MUTEX_DEF) -c $<

# Default build rule
%.o: %.c *.h Makefile
	$(CC) $(MYCFLAGS) -c $<

clean:
	-rm -f shared.a $(SHARED_OBJS) *.flc *~ \#*\#