-$(OBJS)\ogldll_basic2.obj : .AUTODEPEND ../../src/ogl\basic2.cpp
- $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
+!ifeq SHARED 1
+$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_wat$(VENDORTAG).dll : $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version.res
+ @%create $(OBJS)\ogldll.lbc
+ @%append $(OBJS)\ogldll.lbc option quiet
+ @%append $(OBJS)\ogldll.lbc name $^@
+ @%append $(OBJS)\ogldll.lbc option caseexact
+ @%append $(OBJS)\ogldll.lbc $(LDFLAGS) $(__DEBUGINFO_2) libpath $(LIBDIRNAME)
+ @for %i in ($(OGLDLL_OBJECTS)) do @%append $(OBJS)\ogldll.lbc file %i
+ @for %i in ( $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) ) do @%append $(OBJS)\ogldll.lbc library %i
+ @%append $(OBJS)\ogldll.lbc option resource=$(OBJS)\ogldll_version.res
+ @%append $(OBJS)\ogldll.lbc system nr_dll
+ wlink @$(OBJS)\ogldll.lbc
+ wlib -q -n -b $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib +$^@
+!endif