#Makefile for EMX 0.9c and DMAKE
#
#program name = MRL

GENERAL=-Wall
DEBUG=-g -fbounds-checking
DISTRIB=-Zomf -s -O2 -Zcrtdll
CFLAGS= $(GENERAL) $(DISTRIB)
#CFLAGS= $(GENERAL) $(DEBUG)
OBJS=scan.o mrl.o kill.o util.o renum.o link.o fix.o
INCL=mrl.h makefile
LDFLAGS= $(GENERAL) $(DISTRIB)
#LDFLAGS= $(GENERAL) $(DEBUG)

default: mrl.exe

mrl.exe :	$(OBJS)
	$(LD) $(LDFLAGS) -o mrl.exe $(OBJS) 

scan.o :	scan.c $(INCL)
mrl.o  :	mrl.c $(INCL)
kill.o :	kill.c $(INCL)
renum.o:	renum.c $(INCL)
link.o :        link.c $(INCL)
util.o :	util.c $(INCL)
fix.o  :	fix.c $(INCL)

clean :
	rm -f *.o mrl.log core
