-# Objects makefile
+# OGL makefile
WXDIR = ..\..\..
-
-!include $(WXDIR)\src\makewat.env
-
-EXTRACPPFLAGS=/DPROLOGIO
-
-OGLLIB = $(WXDIR)\lib\ogl.lib
-THISDIR = $(WXDIR)\src\ogl
-
-NAME = ogl
-LNK = $(name).lnk
-
-OBJECTS = basic.obj basic2.obj canvas.obj lines.obj divided.obj constrnt.obj &
- composit.obj drawn.obj bmpshape.obj mfutils.obj ogldiag.obj oglmisc.obj
-
-all: $(OGLLIB)
-
-$(OGLLIB): $(OBJECTS)
- *wlib /b /c /n /P=256 $(OGLLIB) $(OBJECTS)
-
-clean: .SYMBOLIC
- -erase *.obj *.bak *.err *.pch $(OGLLIB) *.lbc
+EXTRACPPFLAGS=-I$(WXDIR)\contrib\include;/DPROLOGIO
+
+LIBTARGET= $(WXDIR)\lib\ogl_w.lib
+
+OBJECTS = &
+ $(OUTPUTDIR)\basic.obj &
+ $(OUTPUTDIR)\basic2.obj &
+ $(OUTPUTDIR)\canvas.obj &
+ $(OUTPUTDIR)\lines.obj &
+ $(OUTPUTDIR)\divided.obj &
+ $(OUTPUTDIR)\constrnt.obj &
+ $(OUTPUTDIR)\composit.obj &
+ $(OUTPUTDIR)\drawn.obj &
+ $(OUTPUTDIR)\bmpshape.obj &
+ $(OUTPUTDIR)\mfutils.obj &
+ $(OUTPUTDIR)\ogldiag.obj &
+ $(OUTPUTDIR)\oglmisc.obj
+
+
+!include $(WXDIR)\src\makelib.wat