source: trunk/make/testcase/dll-c.mak@ 10367

Last change on this file since 10367 was 9063, checked in by bird, 23 years ago

Bugfixes.

File size: 1.1 KB
Line 
1# $Id: dll-c.mak,v 1.3 2002-08-20 21:14:29 bird Exp $
2
3# Testcase for makeing simple C DLLs.
4
5# root & setup
6!if "$(BUILD_ENV)" == "WAT11C-16" || "$(BUILD_ENV)" == "MSCV6-16"
7ALL_MODEL=LARGE
8!endif
9TARGET_MODE = DLL #watcom+msc6-16 workaround (again!)
10PATH_ROOT=..\..
11!include $(PATH_ROOT)\make\setup.mak
12
13# target config.
14TARGET_NAME = dll-c
15MAKEFILE = dll-c.mak
16TARGET_LIBS = $(LIB_C_OBJ) $(LIB_OS) # use the static library!
17
18# rules and more
19RULES_FORWARD = test
20!include $(MAKE_INCLUDE_PROCESS)
21
22!if !$(BUILD_FORWARDING)
23
24
25
26# some helpers for the output.
27!if "$(BUILD_MODE)" == "DEBUG" || "$(BUILD_MODE)" == "PROFILE"
28_STR1 = Hello "C" "DEBUG" World!
29!else
30_STR1 = Hello "C" World!
31!endif
32
33!ifdef ENV_16BIT
34_STR2 = __16BIT__
35!else
36_STR2 = __32BIT__
37!endif
38
39
40#
41# validate that the executable actually runs and produces the desired output.
42#
43OUTFILE=out
44test:
45 $(TOOL_MAKE) -f dll-prog-c.mak rebuild
46 $(PATH_OBJ)\dll-prog-c.exe\dll-prog-c.exe $(TARGET) > $(OUTFILE)
47! ifdef BUILD_VERBOSE
48 type $(OUTFILE)
49! endif
50 $(TOOL_CMP) $(OUTFILE) <<
51DLLInit
52$(_STR1)
53$(_STR2)
54FOOName
55DLLTerm
56<<
57 $(TOOL_MAKE) -f dll-prog-c.mak clean
58
59!endif
60
Note: See TracBrowser for help on using the repository browser.