#
# File:		makefile.nt
# Author:	Julian Smart
# Created:	1993
# Updated:	Ulrich Leodolter <ulrich@lab1.psy.univie.ac.at>, 1995
# Copyright:	(c) 1993, AIAI, University of Edinburgh
#
# "%W% %G%"
#
# Makefile : Builds test example (DOS).

!include <..\..\src\ntwxwin.mak>

THISDIR = $(WXDIR)\samples\test
WXLIB = $(WXDIR)\lib\wx.lib
INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
DUMMY=$(WXDIR)\src\msw\dummy.obj


OBJECTS = test.obj wx_popup.obj _srchdlg.obj

test:    test.exe

all:    wx test.exe

wx:
        cd $(WXDIR)\src\msw
        nmake -f makefile.nt
        cd $(THISDIR)

wxclean:
        cd $(WXDIR)\src\msw
        nmake -f makefile.nt clean
        cd $(THISDIR)


test.exe:      $(DUMMY) $(WXLIB) $(OBJECTS) test.def test.res
	$(link) @<<
-out:$@
-machine:$(CPU)
-subsystem:windows
$(LINKFLAGS)
$(DUMMY) $(OBJECTS) test.res
$(WXLIB)
shell32.lib $(guilibs)
<<

test.obj:      wx_popup.h test.cc $(DUMMY)
        cl @<<
$(CPPFLAGS) /c /Tp $*.cc
<<

wx_popup.obj:      wx_popup.cc $(DUMMY)
        cl @<<
$(CPPFLAGS) /c /Tp $*.cc
<<

_srchdlg.obj:      _srchdlg.cc srchdlg.h $(DUMMY)
        cl @<<
$(CPPFLAGS) /c /Tp $*.cc
<<

test.res :      test.rc $(WXDIR)\include\msw\wx.rc
	rc -r /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa test

clean:
        -erase *.obj *.exe *.res *.map *.rws
