forked from soulwing/popclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
86 lines (69 loc) · 2.47 KB
/
Makefile
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
# /* Copyright 1993,1994 by Carl Harris, Jr.
# * All rights reserved
# *
# * Distribute freely, except: don't remove my name from the source or
# * documentation (don't take credit for my work), mark your changes (don't
# * get me blamed for your possible bugs), don't alter or remove this
# * notice. May be sold if buildable source is provided to buyer. No
# * warrantee of any kind, express or implied, is included with this
# * software; use at your own risk, responsibility for damages (if any) to
# * anyone resulting from the use of this software rests entirely with the
# * user.
# *
# * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
# * I'll try to keep a version up to date. I can be reached as follows:
# * Carl Harris <ceharris@vt.edu>
# */
#######################################################################
# POPclient project Makefile
#
# SCCS ID: @(#)Makefile 2.5 3/31/94
# programmer: Carl Harris, ceharris@vt.edu
# date: 29 December 1993
#
#######################################################################
# Installer configuration section
# (be sure to edit config.h, too)
BINDIR=/usr/local/bin
MANDIR=/usr/local/share/man
#BINDIR=/usr/bin/popclient
#MANDIR=/usr/man
MANSECTION=1
#######################################################################
# Compiler configuration section
# K & R compilers may want to set CFLAGS=-DNO_PROTO
#
CFLAGS=-Imd5
CC=gcc
# System V may require 'LIBS=-lbsd' here.
LIBS=
TARGET=popclient
OBJECTS=popclient.o pop2.o pop3.o socket.o md5c.o
#######################################################################
# Term configuration section. For term connection to internet only.
#
# TERM_PRIORITY = 0
# TERM_COMPRESS = 0
# TERMDIR = $(HOME)/term
# CFLAGS += -DUSE_TERM -DTERM_PRIORITY=$(TERM_PRIORITY) -DTERM_COMPRESS=$(TERM_COMPRESS) -I$(TERMDIR)
# OBJECTS2 = $(TERMDIR)/client.a
#######################################################################
# Down to the real business...
#
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) $(OBJECTS2) -o $(TARGET) $(LIBS)
popclient.o: popclient.c popclient.h socket.h config.h
pop2.o: pop2.c popclient.h socket.h config.h
pop3.o: pop3.c popclient.h socket.h config.h
socket.o: socket.c socket.h config.h
md5c.o: md5c.c
md5c.c:
ln -s md5/md5c.c .
install:
install -c -m 0755 popclient $(BINDIR)
install -c -m 0644 popclient.$(MANSECTION) $(MANDIR)/man$(MANSECTION)
clean:
rm -f $(OBJECTS)
rm -f $(TARGET)
rm -f md5c.c
rm -f core