0
|
1 ##############################################################################
|
|
2 # Instructions to Make, for compilation of standalone-MTS library
|
|
3 #
|
|
4 # This file is automatically generated. Do not edit!
|
12
|
5 # @(#)$Id: Makefile,v 1.2 2005/04/19 15:25:08 kono Exp $
|
0
|
6 ##############################################################################
|
|
7
|
|
8 # The following entries were inserted during MH configuration
|
3
|
9 OPTIONS= -DATHENA -DDUMB -DFOLDPROT='"0700"' -DGCOS_HACK -DISI -DMHE -DMHRC -DMSGPROT='"0600"' -DOVERHEAD -DRPATHS -DSBACKUP='"\043"' -DWHATNOW -DBIND -DBSD42 -DBSD43 -DBSD44 -DDBMPWD -DNORUSERPASS -DPOSIX -DSETMG -DSYS5DIR -DUNISTD -DVSPRINTF -DWAITINT -DZONEINFO -DPOPSERVICE='"pop"' -DAPOP -DJAPAN -DMH_PLUS -DMIME -DMIME_HEADERS -DMORE='"/usr/local/bin/less"' -DNNTP -DMAILGROUP -DSENDMTS -DSMTP -DPOP -DSPRINTFTYPE=int -DTYPESIG=void -O2 -g -I..
|
0
|
10
|
|
11 CC = gcc
|
|
12 CFLAGS = $(OPTIONS)
|
|
13 LINT = lint
|
|
14 LFLAGS = -bhu $(OPTIONS)
|
|
15 LLIBS =
|
|
16 CP = cp
|
|
17 LN = ln
|
|
18
|
|
19 LIB = mhmts.a
|
|
20
|
|
21 CFILES = hosts.c netmail.c uucp.c
|
|
22 OFILES = hosts.o netmail.o uucp.o
|
|
23
|
|
24
|
|
25 ##############################################################################
|
|
26 # Generation Rules
|
|
27 ##############################################################################
|
|
28 .c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
29 -ld -x -r $@
|
|
30 mv a.out $@
|
|
31
|
|
32
|
|
33 ##############################################################################
|
|
34 # Here it is...
|
|
35 ##############################################################################
|
|
36
|
|
37 all: $(LIB)
|
|
38 depend:;
|
|
39 lint: l-mhmts
|
|
40
|
|
41 $(LIB): $(OFILES)
|
|
42 -if [ -f $@ ]; then \
|
|
43 mv $@ z$@; \
|
|
44 fi
|
|
45 ar r $@ $(OFILES); ranlib $@
|
|
46 -rm -f ../libmts.a
|
|
47 -cd ..; $(LN) mh/$@ libmts.a
|
|
48 -rm -f ../llib-lmts
|
|
49 -cd .. ; $(LN) mh/llib-lmhmts llib-lmts
|
|
50 -@ls -l $@
|
|
51 -@echo "standalone-MTS library built normally"
|
|
52
|
|
53 l-mhmts:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
|
|
54
|
|
55 hosts.o: Makefile
|
|
56 netmail.o: Makefile
|
|
57 uucp.o: Makefile
|
|
58
|
|
59
|
|
60 ##############################################################################
|
|
61 # Miscellaneous tasks
|
|
62 ##############################################################################
|
|
63
|
|
64 unconfig: distribution
|
|
65 -rm -f Makefile
|
|
66
|
|
67 distribution: clean
|
|
68
|
|
69 clean: unclean
|
|
70 -rm -f *.o $(LIB) z$(LIB)
|
|
71
|
|
72 unclean:; -rm -f _* :* core *.core
|