]> git.saurik.com Git - wxWidgets.git/blob - utils/nplugin/samples/simple/makefile.nt
Removed print.cpp, added tokenizr.tex
[wxWidgets.git] / utils / nplugin / samples / simple / makefile.nt
1 #
2 # File: makefile.nt
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
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\ntwxwin.mak
23
24 THISDIR = $(WXDIR)\utils\nplugin\smples\simple
25 PROGRAM=npsimple32
26 PLUGINLIB=$(WXDIR)\utils\nplugin\lib\nplugin.lib
27
28 OBJECTS = simple.obj
29
30 all: $(PROGRAM).dll
31
32 $(PROGRAM): $(PROGRAM).exe
33
34 wx:
35 cd $(WXDIR)\src\msw
36 nmake -f makefile.nt dllnp FINAL=$(FINAL)
37 cd $(THISDIR)
38
39 # Update the dynamic link library
40
41 $(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\wx.lib $(PLUGINLIB) $(PROGRAM).res $(PROGRAM).def
42 $(link) $(LINKFLAGS) \
43 -out:$(PROGRAM).dll \
44 -def:$(PROGRAM).def \
45 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXDIR)\lib\wx.lib $(PLUGINLIB) \
46 $(guilibsdll) lib shell32.lib comctl32.lib ctl3d32.lib ole32.lib
47
48 simple.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
56 copy:
57 copy npsimple32.dll "c:\program files\Netscape\Navigator\program\plugins"
58 copy npsimple32.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