#
# Makefile
# Copyright (C) 1997-2000 by Richard Dawe
#
# Please see license.txt for licensing information.
#

# Include the global options
include ../Makefile.cfg

CFLAGS += -I../include -I.

OBJS = title.o lfn.o version.o clip.o vxdinfo.o vxd.o vxdldr.o user.o \
       close.o init.o

LIBWIN = ../lib/libwin.a

.PHONY:	lib regdos

default:	lib

all:	lib

lib:	regdos $(OBJS)
	rm -f $(LIBWIN)
	$(AR) rcs $(LIBWIN) regdos/*.o $(OBJS)
	$(RANLIB) $(LIBWIN)

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

regdos:
	make -C regdos

#
# --- Cleaning ---
#

.PHONY:	clean distclean

clean:
	rm -f $(OBJS)
	make -C regdos clean

distclean:	clean
	make -C regdos distclean

