#
# thanks to Holger Danielsson (dani@lara.prima.ruhr.de)
# for the new/enhanced rshell
#

CC = gcc -Zwin32 -Zcrtdll=crtrsxnt -Zmt
CFLAGS = -O2 -m486 -Wall
LDFLAGS = -s

.c.o:
	$(CC) $(CFLAGS) -c $<

OBJS = rshell.o         \
	execute.o       \
	files.o         \
	set.o           \
	goto.o          \
	if.o            \
	echo.o          \
	token.o         \
	input.o         \
	help.o

rshell.exe: $(OBJS)
	$(CC) $(LDFLAGS) -o rshell.exe $(OBJS)
