File: Makefile.debian

package info (click to toggle)
wmf 1.0.5-7
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 412 kB
  • ctags: 337
  • sloc: ansic: 5,405; makefile: 53; sh: 19
file content (73 lines) | stat: -rw-r--r-- 1,864 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
67
68
69
70
71
72
73
#
# Makefile for webmailfolder
# created 1996/08/16 by Norbert Kuemin
#

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

# Configuration begins here
BINDIR=$(DESTDIR)/usr/bin
MANDIR=$(DESTDIR)/usr/share/man
CLIBDIR=-L../../compface
CINC=-I../../compface

#if you have/want face-support uncomment the two following lines
#FACELIB=-lcompface
#FACEDEF=-DFACES
# Configuration ends here

# Program initials
CONFIGFILE= \"~/.wmfrc\"
MBOXFILE= \"~/mbox\"
MAILCMD=\"mailto:\"
DIRECTORY=\"./\"
EXTENSION=\".html\"
NEWSUBJECTTHREAD=0	#0=False 1=True

# Program constants
PROGRAM=wmf
VERSION=1.0.5
PRG_NAME= \"WebMailFolder\"
PRG_VERSION= \"$(VERSION)\"
PRG_HREF= \"http://www.lugs.ch/lugs/mitglieder/norbert.kuemin/wmf.html\"

PINIT= -DWMF_CONFIG=$(CONFIGFILE) -DWMF_MBOX=$(MBOXFILE) -DWMF_MCMD=$(MAILCMD)\
 -DWMF_DIR=$(DIRECTORY) -DWMF_DEBUGLEVEL=0 -DWMF_EXTENSION=$(EXTENSION)

PCONST= -DNAME=$(PRG_NAME) -DVERSION=$(PRG_VERSION) -DHREF=$(PRG_HREF)

CDEFS= $(PINIT) $(PCONST) $(FACEDEF) -Wall
CLIB= $(FACELIB)
CFLAGS += $(COPTS) $(CDEFS) $(CINC)

# Only for debugging (Should be commented)
#CDEFS= -DDEBUG $(PINIT) $(PCONST) $(FACEDEF) -Wall
#CDEFS= -DDEBUG -DMALLOC $(PINIT) $(PCONST) $(FACEDEF) -Wall
#CLIB= $(FACELIB) -ldmalloc

OBJS=		wmf.o config.o mail.o file.o index.o html.o date.o sys.o mime.o

.c.o:
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $<

all:		wmf

wmf:	$(OBJS)
		$(CC) -o $(PROGRAM) $(CFLAGS) $(OBJS) $(CLIBDIR) $(CLIB) $(LDFLAGS)
		chmod 0755 $(PROGRAM)

#$(OBJS):	wmf.h

install:
		install -c -m 0755 $(PROGRAM) $(BINDIR)
		chmod 0644 ../doc/wmf.1
		chmod 0644 ../doc/wmfrc.5
		install -c -m 0644 ../doc/wmf.1 $(MANDIR)/man1
		install -c -m 0644 ../doc/wmfrc.5 $(MANDIR)/man5

clean:
		rm -f ./$(PROGRAM) *.o *~ core DEADJOE ../doc/*~ ../examples/*~ ../doc/DEADJOE

package: clean
		( cd ../.. ; tar -zcvf $(PROGRAM)-$(VERSION).tar.gz wmf )