]> git.saurik.com Git - wxWidgets.git/blob - utils/nplugin/samples/gui/makefile.vc
Changed .vc makefiles to allow different configurations to co-exist (so library
[wxWidgets.git] / utils / nplugin / samples / gui / makefile.vc
1 #
2 # File: makefile.vc
3 # Author: Julian Smart
4 # Created: 1997
5 # Updated:
6 # Copyright: (c) 1997, Julian Smart
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds gui plugin example (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
12 # info
13
14 # Set WXDIR for your system
15 WXDIR = $(WXWIN)
16
17 # Application is a DLL
18 DLL=1
19
20 EXTRAINC=/I$(WXDIR)\utils\nplugin\src
21
22 !include $(WXDIR)\src\makevc.env
23
24 THISDIR = $(WXDIR)\utils\nplugin\examples\gui
25 PROGRAM=npgui32
26 PLUGINLIB=$(WXDIR)\utils\nplugin\lib\nplugin.lib
27
28 OBJECTS = gui.obj
29
30 all: $(PROGRAM).dll
31
32 $(PROGRAM): $(PROGRAM).exe
33
34 wx:
35 cd $(WXDIR)\src\msw
36 nmake -f makefile.vc dllnp FINAL=$(FINAL)
37 cd $(THISDIR)
38
39 # Update the dynamic link library
40
41 $(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXLIB) $(PLUGINLIB) $(PROGRAM).res $(PROGRAM).def
42 $(link) $(LINKFLAGS) \
43 -out:$(PROGRAM).dll \
44 -def:$(PROGRAM).def \
45 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXLIB) $(PLUGINLIB) \
46 $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib
47
48 gui.obj: gui.$(SRCSUFF) gui.h $(DUMMYOBJ)
49 $(cc) @<<
50 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
51 <<
52
53 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
54 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
55
56 copy:
57 copy npgui32.dll "c:\program files\Netscape\Navigator\program\plugins"
58 copy npgui32.dll "c:\program files\Internet Explorer\plugins"
59
60 clean:
61 -erase *.obj
62 -erase *.exe
63 -erase *.res
64 -erase *.map
65 -erase *.sbr
66 -erase *.pdb
67 -erase *.dll
68 -erase *.exp
69 -erase *.lib
70 -erase *.ilk