]> git.saurik.com Git - wxWidgets.git/blame - utils/nplugin/samples/gui/makefile.vc
added wxLongLong::ToString()
[wxWidgets.git] / utils / nplugin / samples / gui / makefile.vc
CommitLineData
bbf1f0e5 1#
48d1144b 2# File: makefile.vc
bbf1f0e5
KB
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
15WXDIR = $(WXWIN)
16
17# Application is a DLL
18DLL=1
19
20EXTRAINC=/I$(WXDIR)\utils\nplugin\src
21
48d1144b 22!include $(WXDIR)\src\makevc.env
bbf1f0e5
KB
23
24THISDIR = $(WXDIR)\utils\nplugin\examples\gui
25PROGRAM=npgui32
26PLUGINLIB=$(WXDIR)\utils\nplugin\lib\nplugin.lib
27
28OBJECTS = gui.obj
29
30all: $(PROGRAM).dll
31
32$(PROGRAM): $(PROGRAM).exe
33
34wx:
35 cd $(WXDIR)\src\msw
48d1144b 36 nmake -f makefile.vc dllnp FINAL=$(FINAL)
bbf1f0e5
KB
37 cd $(THISDIR)
38
39# Update the dynamic link library
40
ca5c8b2d 41$(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXLIB) $(PLUGINLIB) $(PROGRAM).res $(PROGRAM).def
bbf1f0e5
KB
42 $(link) $(LINKFLAGS) \
43 -out:$(PROGRAM).dll \
44 -def:$(PROGRAM).def \
ca5c8b2d 45 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXLIB) $(PLUGINLIB) \
fbc535ff 46 $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib
bbf1f0e5
KB
47
48gui.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
56copy:
57 copy npgui32.dll "c:\program files\Netscape\Navigator\program\plugins"
58 copy npgui32.dll "c:\program files\Internet Explorer\plugins"
59
60clean:
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