1998-05-30 13:10:15 -04:00
|
|
|
#
|
|
|
|
# File: makefile.nt
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
1998-07-10 06:36:57 -04:00
|
|
|
# Makefile : Builds controls example (MS VC++).
|
1998-05-30 13:10:15 -04:00
|
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
|
|
# info
|
|
|
|
|
|
|
|
# Set WXDIR for your system
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
|
|
|
|
WXUSINGDLL=0
|
|
|
|
|
|
|
|
!include $(WXDIR)\src\ntwxwin.mak
|
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
THISDIR = $(WXDIR)\samples\controls
|
|
|
|
PROGRAM=controls
|
|
|
|
|
1998-05-30 13:10:15 -04:00
|
|
|
OBJECTS = $(PROGRAM).obj
|
|
|
|
|
|
|
|
$(PROGRAM): $(PROGRAM).exe
|
|
|
|
|
|
|
|
all: wx $(PROGRAM).exe
|
|
|
|
|
|
|
|
wx:
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
nmake -f makefile.nt FINAL=$(FINAL)
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
wxclean:
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
nmake -f makefile.nt clean
|
|
|
|
cd $(THISDIR)
|
|
|
|
|
|
|
|
$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
|
|
|
|
$(link) @<<
|
|
|
|
-out:$(PROGRAM).exe
|
|
|
|
$(LINKFLAGS)
|
|
|
|
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
|
|
|
|
$(LIBS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
|
|
|
|
$(PROGRAM).obj: $(PROGRAM).$(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
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.sbr
|
|
|
|
-erase *.pdb
|