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\makevc.env
24 THISDIR = $(WXDIR)\utils\nplugin\examples\gui
26 PLUGINLIB=$(WXDIR)\utils\nplugin\lib\nplugin.lib
32 $(PROGRAM): $(PROGRAM).exe
36 nmake -f makefile.vc dllnp FINAL=$(FINAL)
39 # Update the dynamic link library
41 $(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXLIB) $(PLUGINLIB) $(PROGRAM).res $(PROGRAM).def
42 $(link) $(LINKFLAGS) \
45 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXLIB) $(PLUGINLIB) \
46 $(guilibsdll) 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"