File: Makefile

package info (click to toggle)
gup 0.5.17
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 200 kB
  • sloc: ansic: 1,609; sh: 211; makefile: 34
file content (53 lines) | stat: -rw-r--r-- 1,219 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
#################################################
# Change the following to suit your needs	#
#################################################

CC		= cc
CFLAGS		= -g -O2
CPPFLAGS	= -Wall
LDFLAGS		=
LIBS		= -lcrypt

# Destination directories for the executable and man page. Note that
# the executable is only used in a .forward so /usr/local/bin may
# not be the most appropriate place - though it doesn't hurt.

BINDIR		= /usr/lib/gup
MANDIR		= /usr/share/man/man8

#################################################
# DO NOT CHANGE ANYTHING AFTER THIS COMMENT	#
#################################################

SHELL	=	/bin/sh

SRC	=	gup.c wildmat.c misc.c prune.c help.c mail.c \
		log.c newsgroups.c lock.c sort.c \
		rfc822.c

OBJS	=	$(SRC:.c=.o)

HDRS	=	gup.h rfc822.h config.h

all:	gup

gup:	$(OBJS)
	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@

# Lazy and safe
$(OBJS):	$(HDRS) Makefile

install:	$(BINDIR)/gup $(MANDIR)/gup.8 install-scripts

$(BINDIR)/gup:	gup
	$(INSTALL) $? $(DESTDIR)$@

install-scripts: scripts/addsite scripts/gupdate scripts/process scripts/verify
	$(INSTALL) --mode=755 $^ $(DESTDIR)/$(BINDIR)/

$(MANDIR)/gup.8:	gup.8
	cp $? $(DESTDIR)$@

clean:
	rm -f $(OBJS) gup core a.out