1998-05-20 10:21:00 -04:00
|
|
|
#
|
1999-01-24 14:13:55 -05:00
|
|
|
# File: makefile.vc
|
1998-05-20 10:21:00 -04:00
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1997
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1997, Julian Smart
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
|
|
|
# Makefile : Builds simple plugin example (MS VC++).
|
|
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
|
|
# info
|
|
|
|
|
|
|
|
# Set WXDIR for your system
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
|
|
|
|
# Application is a DLL
|
|
|
|
DLL=1
|
|
|
|
|
|
|
|
EXTRAINC=/I$(WXDIR)\utils\nplugin\src
|
|
|
|
|
1999-01-24 14:13:55 -05:00
|
|
|
!include $(WXDIR)\src\makevc.env
|
1998-05-20 10:21:00 -04:00
|
|
|
|
|
|
|
THISDIR = $(WXDIR)\utils\nplugin\smples\simple
|
|
|
|
PROGRAM=npsimple32
|
|
|
|
PLUGINLIB=$(WXDIR)\utils\nplugin\lib\nplugin.lib
|
|
|
|
|
|
|
|
OBJECTS = simple.obj
|
|
|
|
|
|
|
|
all: $(PROGRAM).dll
|
|
|
|
|
|
|
|
$(PROGRAM): $(PROGRAM).exe
|
|
|
|
|
|
|
|
wx:
|
|
|
|
cd $(WXDIR)\src\msw
|
1999-01-24 14:13:55 -05:00
|
|
|
nmake -f makefile.vc dllnp FINAL=$(FINAL)
|
1998-05-20 10:21:00 -04:00
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
# Update the dynamic link library
|
|
|
|
|
1999-02-17 12:18:22 -05:00
|
|
|
$(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXLIB) $(PLUGINLIB) $(PROGRAM).res $(PROGRAM).def
|
1998-05-20 10:21:00 -04:00
|
|
|
$(link) $(LINKFLAGS) \
|
|
|
|
-out:$(PROGRAM).dll \
|
|
|
|
-def:$(PROGRAM).def \
|
1999-02-17 12:18:22 -05:00
|
|
|
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXLIB) $(PLUGINLIB) \
|
1998-10-12 03:46:15 -04:00
|
|
|
$(guilibsdll) lib shell32.lib comctl32.lib ctl3d32.lib ole32.lib
|
1998-05-20 10:21:00 -04:00
|
|
|
|
|
|
|
simple.obj: simple.$(SRCSUFF) $(DUMMYOBJ)
|
|
|
|
$(cc) @<<
|
|
|
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
|
|
|
<<
|
|
|
|
|
|
|
|
$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
|
|
$(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
|
|
|
|
|
|
|
|
copy:
|
|
|
|
copy npsimple32.dll "c:\program files\Netscape\Navigator\program\plugins"
|
|
|
|
copy npsimple32.dll "c:\program files\Internet Explorer\plugins"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.sbr
|
|
|
|
-erase *.pdb
|
|
|
|
-erase *.dll
|
|
|
|
-erase *.exp
|
|
|
|
-erase *.lib
|
|
|
|
-erase *.ilk
|