# Makefile for GNUS newsreader
# Written by Masanobu UMEDA for version 3.12

ELISP= gnus.elc gnuspost.elc gnusmisc.elc nntp.elc nnspool.elc mhspool.elc tcp.elc

TCP= tcp

# Specify the byte-compiler
ELC= emacs -batch -f batch-byte-compile

# Specify the byte-compiler for SX/A Emacs (or Version 17.64).
#ELC= emacs -batch -l gnus-user-sxa.el -f batch-byte-compile

CFLAGS = -O

.SUFFIXES: .elc .el

.el.elc:
	$(ELC) $<

all: $(ELISP)

gnus.elc: nntp.elc
gnuspost.elc: nntp.elc
gnusmisc.elc: nntp.elc

# Make the tcp module by yourself according to the operating system
# and machine.  If your emacs has the function open-network-stream, it
# is unnecessary.

# For BSD system (do you really need it?)
bsdtcp:
	$(CC) -o $(TCP) $(CFLAGS) tcp.c

# For USG system
usgtcp:
	$(CC) -o $(TCP) $(CFLAGS) tcp.c -DUSG

# For Fujitsu UTS system
utstcp:
	$(CC) -o $(TCP) $(CFLAGS) tcp.c -DFUJITSU_UTS -lu -lsocket
