Code

implemented proper error checking
[inkscape.git] / cxxtest / sample / Makefile.bcc32
1 #
2 # Makefile for Borland C++
3 # Make sure bcc32.exe is in the PATH or change CXXC below
4 #
6 # For the Win32 GUI
7 #WIN32_FLAGS = user32.lib comctl32.lib
9 # For the Qt GUI
10 #QTDIR = c:\qt
11 QT_FLAGS = -I$(QTDIR)/include $(QTDIR)/lib/qt.lib
14 TARGETS = error_printer.exe stdio_printer.exe yes_no_runner.exe file_printer.exe aborter.exe only.exe
15 GUI_TARGETS = win32_runner.exe qt_runner.exe
16 TESTS = *.h
17 GUI_TESTS = gui/GreenYellowRed.h $(TESTS)
18 TESTGEN = perl -w ../cxxtestgen.pl
19 CXXC = bcc32.exe -w- -I. -I..
21 all: $(TARGETS)
23 clean:
24         del *~ *.o *.obj 
25         del $(TARGETS) 
26         del $(GUI_TARGETS)
27         del tests.cpp error_printer.cpp stdio_printer.cpp file_printer.cpp aborter.cpp only.cpp
28         del win32_runner.cpp qt_runner.cpp
30 distclean: clean
31         del Makefile
33 run: error_printer.exe
34         error_printer.exe
36 run_win32: win32_runner.exe
37         win32_runner.exe
39 run_qt: qt_runner.exe
40         qt_runner.exe
42 error_printer.cpp: $(TESTS)
43         $(TESTGEN) -o error_printer.cpp --error-printer $(TESTS)
45 stdio_printer.cpp: $(TESTS)
46         $(TESTGEN) -o stdio_printer.cpp --runner=StdioPrinter $(TESTS)
48 file_printer.cpp: file_printer.tpl $(TESTS)
49         $(TESTGEN) -o file_printer.cpp --template=file_printer.tpl $(TESTS)
51 aborter.cpp: aborter.tpl $(TESTS)
52         $(TESTGEN) -o aborter.cpp --template=aborter.tpl $(TESTS)
54 only.cpp: only.tpl $(TESTS)
55         $(TESTGEN) -o only.cpp --template=only.tpl $(TESTS)
57 tests.cpp: $(TESTS)
58         $(TESTGEN) -o tests.cpp $(TESTS)
60 win32_runner.cpp: $(GUI_TESTS)
61         $(TESTGEN) -o win32_runner.cpp --gui=Win32Gui $(GUI_TESTS)
63 qt_runner.cpp: $(GUI_TESTS)
64         $(TESTGEN) -o qt_runner.cpp --gui=QtGui $(GUI_TESTS)
66 error_printer.exe: error_printer.cpp
67         $(CXXC) -eerror_printer.exe error_printer.cpp
69 stdio_printer.exe: stdio_printer.cpp
70         $(CXXC) -estdio_printer.exe stdio_printer.cpp
72 file_printer.exe: file_printer.cpp
73         $(CXXC) -efile_printer.exe file_printer.cpp
75 only.exe: only.cpp
76         $(CXXC) -eonly.exe only.cpp
78 aborter.exe: aborter.cpp
79         $(CXXC) -eaborter.exe aborter.cpp
81 yes_no_runner.exe: yes_no_runner.cpp tests.cpp
82         $(CXXC) -eyes_no_runner.exe yes_no_runner.cpp tests.cpp
84 win32_runner.exe: win32_runner.cpp
85         $(CXXC) -ewin32_runner.exe win32_runner.cpp $(WIN32_FLAGS)
87 qt_runner.exe: qt_runner.cpp
88         $(CXXC) -o qt_runner.exe qt_runner.cpp $(QT_FLAGS)
90 #
91 # Local Variables:
92 # compile-command: "make -fMakefile.bcc32"
93 # End:
94 #