# makefile for w32util.dll
# copyright 1997 Patrick McPhee
# distributed under the GNU Library General Public License version 2
# $Header: C:/ptjm/rexx/w32funcs/RCS/Makefile 1.10 1999/12/21 00:25:45 pmcphee Rel $

OPT=-Ox -G5
DEBUG=#-Zi

INCDIR=../Regina
LIBDIR=..\Regina

CFLAGS=-nologo $(OPT) $(DEBUG) -GF -I$(INCDIR) -MD
CPPFLAGS=-nologo $(OPT) $(DEBUG) -GF -I$(INCDIR) -MD
CDYNFLAGS=-DDYNAMIC -GD
CSTTFLAGS=-GA
CC=cl
LIBS=kernel32.lib advapi32.lib $(LIBDIR)\regina.lib ole32.lib oleaut32.lib uuid.lib user32.lib shell32.lib

OBJS=w32funcs.obj w32ole.obj rxsupport.obj services.obj shell.obj

w32util.dll : $(OBJS) w32util.def
	$(CC) -LD $(CFLAGS) -Few32util.dll $(OBJS) -link /def:w32util.def $(LIBS)

w32funcs.obj : w32funcs.c w32funcs.h rxproto.h
	$(CC) $(CFLAGS) $(CDYNFLAGS) -c w32funcs.c

w32ole.obj : w32ole.cpp w32funcs.h rxproto.h
	$(CC) $(CPPFLAGS) $(CDYNFLAGS) -c w32ole.cpp

services.obj : services.c w32funcs.h rxproto.h
	$(CC) $(CFLAGS) $(CDYNFLAGS) -c services.c

shell.obj : shell.c w32funcs.h rxproto.h
	$(CC) $(CFLAGS) $(CDYNFLAGS) -c shell.c

rxsupport.obj : rxsupport.c rxproto.h
	$(CC) $(CFLAGS) $(CDYNFLAGS) -c rxsupport.c

debug:
	$(MAKE) $(MAKEFLAGS) OPT= DEBUG=-Zi


clean:
	-del /f/q *.obj *.dll *.ilk *.lib *.pdb *.exp
