# -------------------------------------------------------------------- #
#                     Leaf class library for Windows
#           Copyright (c) 1993-4 by T.Kudou. All rights reserved.
#
# makefile for lw/src
# this makefile is for DOS GNU make
# -------------------------------------------------------------------- #
# $Header: /d/1/proj/egypt/1/lw/src/RCS/makefile,v 1.13 1994/07/23 18:31:06 kudou Exp $

include dir.mk
include $(TOP)/config.mk
include $(TOP)/common.mk

# install dir
INSTLIBDIR=d:/lf/lib
INSTINCDIR=d:/lf/inc

DEFINES=
INC=-I$(TOP)/leaf/src

# for Visual C++
ifeq ($(VC), yes)
RESPONSFILE=<lw.vc
endif

# for BCC
ifeq ($(BCC), yes)
RESPONSFILE=@lw.bc
endif

# for Symantec C++
ifeq ($(SC), yes)
RESPONSFILE=@lw.sc
endif

OBJS =\
	accel.obj \
	basewnd.obj \
	comm.obj \
	dlg.obj \
	editwnd.obj \
	filename.obj \
	mdi.obj \
	mswin.obj \
	paint.obj \
	profile.obj \
	rstr.obj \
	statwnd.obj \
	syserr.obj \
	termwnd.obj \
	textwnd.obj \
	toolbar.obj \
	wnd.obj 

HDRS = \
	accel.h \
	basewnd.h \
	comm.h \
	dlg.h \
	editwnd.h \
	filename.h \
	lw.h \
	mdi.h \
	mswin.h \
	paint.h \
	profile.h \
	rstr.h \
	statwnd.h \
	textwnd.h \
	toolbar.h \
	wnd.h

RCSRCS = \
	editwnd.rc \
	basewnd.rc \
	lw.rc

all: lw.lib

lw.lib: $(OBJS)
	$(RM) $@
	$(AR) $(RESPONSFILE)

tags:
	etags *.cpp *.h

clean:
	$(RM) lw.lib
	$(RM) lw.lst
	$(RM) *.obj

install.dir:
	$(MKDIR) $(INSTLIBDIR)
	$(MKDIR) $(INSTINCDIR)

install: lw.lib
	$(INSTALL) lw.lib $(INSTLIBDIR)
	$(INSTALL) $(HDRS) $(INSTINCDIR)
	$(INSTALL) $(RCSRCS) $(INSTINCDIR)

# end of makefile
