Last change
on this file was 1798, checked in by bird, 21 years ago |
Disable static testcases.
|
-
Property cvs2svn:cvs-rev
set to
1.3
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | # $Id: helloworld.gmk 1798 2005-01-28 20:12:53Z bird $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # _System declaration and definition testcases.
|
---|
5 | #
|
---|
6 | # InnoTek Systemberatung GmbH confidential
|
---|
7 | #
|
---|
8 | # Copyright (c) 2003 InnoTek Systemberatung GmbH
|
---|
9 | # Author: knut st. osmundsen <bird-srcspam@anduin.net>
|
---|
10 | #
|
---|
11 | # All Rights Reserved
|
---|
12 | #
|
---|
13 | #
|
---|
14 |
|
---|
15 | TESTCASE= helloworld
|
---|
16 | ifdef GCC_OMF
|
---|
17 | CFLAGS = -Zomf
|
---|
18 | O = .obj
|
---|
19 | A = .lib
|
---|
20 | CC = gcc
|
---|
21 | SUFF = -omf
|
---|
22 | else
|
---|
23 | CFLAGS = -Zaout
|
---|
24 | O = .o
|
---|
25 | A = .a
|
---|
26 | CC = gcc
|
---|
27 | SUFF =
|
---|
28 | endif
|
---|
29 |
|
---|
30 | EXEOBJS = $(TESTCASE)$O
|
---|
31 |
|
---|
32 |
|
---|
33 | all: $(TESTCASE)$(SUFF).exe #$(TESTCASE)$(SUFF)-static.exe
|
---|
34 |
|
---|
35 | check: all
|
---|
36 | echo "hello world" > stdout-ok
|
---|
37 | echo -n "" > stderr-ok
|
---|
38 | $(TESTCASE)$(SUFF).exe > stdout 2>stderr
|
---|
39 | diff stdout stdout-ok
|
---|
40 | diff stderr stderr-ok
|
---|
41 | # $(TESTCASE)$(SUFF)-static.exe > stdout 2>stderr
|
---|
42 | # diff stdout stdout-ok
|
---|
43 | # diff stderr stderr-ok
|
---|
44 |
|
---|
45 | install:
|
---|
46 |
|
---|
47 | clean distclean:
|
---|
48 | rm -f *$(TESTCASE)[-.]*obj *$(TESTCASE)[-.]*o \
|
---|
49 | *$(TESTCASE)[-.]*lib *$(TESTCASE)[-.]*a \
|
---|
50 | *$(TESTCASE)[-.]*map $(TESTCASE)[-.]*exe \
|
---|
51 | stdout-ok stdout stderr stderr-ok
|
---|
52 |
|
---|
53 |
|
---|
54 | .SUFFIXES:
|
---|
55 | .SUFFIXES: .c .cpp .asm .s .o .obj
|
---|
56 | .c$O:
|
---|
57 | $(CC) -c $(CFLAGS) -o "$(@)" "$<"
|
---|
58 |
|
---|
59 | .cpp$O:
|
---|
60 | $(CC) -c $(CFLAGS) -o "$(@)" "$<"
|
---|
61 |
|
---|
62 | .asm$O:
|
---|
63 | ../tools/x86.os2/masm/v6.0/binp/ml.exe -c /Zi $<
|
---|
64 |
|
---|
65 | .s$O:
|
---|
66 | $(CC) -c $(CFLAGS) -o "$(@)" "$<"
|
---|
67 |
|
---|
68 |
|
---|
69 | $(TESTCASE)$(SUFF).exe: $(EXEOBJS) $(TESTCASE).gmk
|
---|
70 | if $(CC) -Zmap $(CFLAGS) -o "$@" $(EXEOBJS); then true; \
|
---|
71 | else rm -f $@; false; \
|
---|
72 | fi
|
---|
73 |
|
---|
74 | $(TESTCASE)$(SUFF)-static.exe: $(EXEOBJS) $(TESTCASE).gmk
|
---|
75 | if $(CC) -static -Zmap $(CFLAGS) -o "$@" $(EXEOBJS); then true; \
|
---|
76 | else rm -f $@; false; \
|
---|
77 | fi
|
---|
78 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.