6 # Copyright: (c) 1997, Julian Smart
10 # Makefile : Builds gui plugin example (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
17 # Application is a DLL
20 EXTRAINC=/I$(WXDIR)\utils\nplugin\src
22 !include $(WXDIR)\src\ntwxwin.mak
24 THISDIR = $(WXDIR)\utils\nplugin\examples\gui
26 PLUGINLIB=$(WXDIR)\utils\nplugin\lib\nplugin.lib
32 $(PROGRAM): $(PROGRAM).exe
36 nmake -f makefile.nt dllnp FINAL=$(FINAL)
39 # Update the dynamic link library
41 $(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\wx.lib $(PLUGINLIB) $(PROGRAM).res $(PROGRAM).def
42 $(link) $(LINKFLAGS) \
45 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXDIR)\lib\wx.lib $(PLUGINLIB) \
46 $(guilibsdll) msvcrt.lib shell32.lib comctl32.lib ctl3d32.lib
48 gui.obj: gui.$(SRCSUFF) gui.h $(DUMMYOBJ)
50 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
53 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
54 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
57 copy npgui32.dll "c:\program files\Netscape\Navigator\program\plugins"
58 copy npgui32.dll "c:\program files\Internet Explorer\plugins"