1# $Id$
2# Legacy makefile to build HUSKYLIB with Borland C++ 4.0 for Win32
3# No support for the Husky build environment
4# Predefined macro: __WIN32__ , __TURBOC__
5
6# Uncomment this for debugging
7#DEBUG=	-v
8
9## programs ##
10
11CC=	bcc32
12AR=	tlib
13RM=	del
14
15## program options ##
16
17CC=     BCC32
18# compiler defines
19CDEFS	=
20# common compiler options
21CFLAGS	= -wc
22# options for compile only (link is off)
23OBJOPT	= -c
24# options for build static library
25LIBOPT	=
26# options for build dll
27DLLOPT  =
28# option for specify output file name
29NAMEOPT	= -e
30# options for $(AR) program
31ARFLAGS	= r
32# options for $(RM) program
33RMFLAGS	=
34
35## file suffixes ##
36
37_C=	.c
38_OBJ=	.obj
39_LIB=	.lib
40_EXE=	.exe
41_DLL=
42
43## Library filename elements ##
44
45# Prefix to construct static library name
46LIBPREFIX=
47# Prefix to construct dll name
48DLLPREFIX=
49# Suffix to construct library name
50LIBSUFFIX=bcw
51# Suffix to construct dll name
52DLLSUFFIX=
53
54include makefile.inc
55
56SRCDIR=..\src\
57
58CFLAGS+=-I..\huskylib
59
60# Thunderbirds are go!
61
62{$(SRCDIR)}$(_C)$(_OBJ):
63	$(CC) $(CFLAGS) $(CDEFS) $(COPT) $<
64	$(AR) $(ARFLAGS) $(TARGETLIB) -+$@
65
66$(TARGETLIB): $(OBJS)
67
68clean:
69	-$(RM) $(RMOPT) *$(_OBJ)
70
71distclean: clean
72	-$(RM) $(RMOPT) $(TARGETLIB)
73