File: Makefile

package info (click to toggle)
prayer 1.3.5-dfsg1-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,596 kB
  • sloc: ansic: 43,163; makefile: 817; sh: 445; perl: 166
file content (65 lines) | stat: -rw-r--r-- 1,635 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
62
63
64
65
# $Cambridge: hermes/src/prayer/session/Makefile,v 1.9 2011/06/17 15:22:57 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

BASECFLAGS += -I../lib -I../shared

# Enable LDAP
ifeq ($(strip $(LDAP_ENABLE)), true)
  LDAP_DEF    = -DLDAP_ENABLE
  BASECFLAGS += $(LDAP_INCLUDE)
endif

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

# Enable libtidy or libtidyp fork
ifeq ($(strip $(TIDY_ENABLE)), true)
  TIDY_DEF = -DTIDY_ENABLE=1
  ifeq ($(strip $(TIDY_IS_TIDYP)), true)
    TIDY_DEF += -DTIDY_IS_TIDYP=1
  endif
  BASECFLAGS += $(TIDY_INCLUDE)
  BASE_LIBS  += $(TIDY_LIBS)
endif

MYCFLAGS  = $(BASECFLAGS) $(CCLIENT_INCLUDE)

SESSION_OBJS = abook.o \
 account.o account_msshell.o account_sieve.o account_support.o \
 addr.o checksum.o dictionary.o display.o draft.o favourite.o \
 filter.o folderlist.o html_secure.o html_secure_tidy.o lookup.o \
 mc.o ml.o mm.o msgmap.o options.o prefs.o rfc1522.o \
 role.o session.o session_streams.o \
 sieve.o speller.o stream.o utf8_calc.o wrap.o


all: $(SESSION_OBJS)
	rm -f session.a
	ar r session.a $(SESSION_OBJS)

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

# lookup.o: need to add LDAP_ENABLE
lookup.o: lookup.c *.h Makefile
	$(CC) $(MYCFLAGS) $(LDAP_DEF) -c $<

html_secure_tidy.o: html_secure_tidy.c *.h Makefile
	$(CC) $(MYCFLAGS) $(TIDY_DEF) -c $<

clean:
	-rm -f session.a $(SESSION_OBJS) *.flc *~ \#*\#