]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/nplugin/samples/simple/makefile.vc
Numerous changes to comply with use of wxCoord.
[wxWidgets.git] / utils / nplugin / samples / simple / makefile.vc
... / ...
CommitLineData
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 simple 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
22!include $(WXDIR)\src\makevc.env
23
24THISDIR = $(WXDIR)\utils\nplugin\smples\simple
25PROGRAM=npsimple32
26PLUGINLIB=$(WXDIR)\utils\nplugin\lib\nplugin.lib
27
28OBJECTS = simple.obj
29
30all: $(PROGRAM).dll
31
32$(PROGRAM): $(PROGRAM).exe
33
34wx:
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) lib shell32.lib comctl32.lib ctl3d32.lib ole32.lib
47
48simple.obj: simple.$(SRCSUFF) $(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 npsimple32.dll "c:\program files\Netscape\Navigator\program\plugins"
58 copy npsimple32.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