-# Objects makefile
+# OGL makefile
WXDIR = ..\..\..
EXTRACPPFLAGS=-I$(WXDIR)\contrib\include;/DPROLOGIO
-!include $(WXDIR)\src\makewat.env
+LIBTARGET= $(WXDIR)\lib\ogl_w.lib
-OGLLIB = $(WXDIR)\lib\ogl.lib
-THISDIR = $(WXDIR)\contrib\src\ogl
-OUTPUTDIR = $(THISDIR)\
+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
-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) .SYMBOLIC
-
-$(OGLLIB): $(OBJECTS)
- *wlib /b /c /n /P=256 $(OGLLIB) $(OBJECTS)
-
-clean: .SYMBOLIC
- -erase *.obj *.bak *.err *.pch $(OGLLIB) *.lbc
+!include $(WXDIR)\src\makelib.wat