#
# emx Makefile for UUPC.
# Created by John Carmack.
#
# Please note two things:
# 1.  I'm no makefile expert, and this is really kludged together.
# 2.  This is only for compiling the library, inews and rmail.  These
# were the items of interest to me.  However, I think it can be extended
# from this starting point, if someone so desires.
#

CFLAGS = -g -D__OS2__ -D__GCC__
CC = gcc

.c.o:
	$(CC) $(CFLAGS) -c $<

O = .o
EXE = .exe

INEWS = inews
RMAIL = rmail

.INCLUDE : Makefile.lib
.INCLUDE : Makefile.news
.INCLUDE : Makefile.mail

inews.exe: $(LIBS) $(NEWSOBJ)
	$(CC) $(CFLAGS) -o $(INEWS)$(EXE) $(INEWS)$(O) $(LIBS)

rmail.exe: $(LIBS) $(RMAILOBJ)
	$(CC) $(CFLAGS) -o $(RMAIL)$(EXE) $(RMAILOBJ) $(LIBS)

all:	$(INEWS)$(EXE) $(RMAIL)$(EXE)

clean:
	-del *$(O)
	-del *$(EXE)
