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

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

Bugfixes.

File size: 1008 bytes
Line 
1# $Id: dll-prog-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
6PATH_ROOT=..\..
7!include $(PATH_ROOT)\make\setup.mak
8
9# target config.
10TARGET_NAME = dll-prog-c
11MAKEFILE = dll-prog-c.mak
12TARGET_LIBS = $(LIB_C_OBJ) $(LIB_OS) # use the static library!
13
14# rules and more
15RULES_FORWARD = test
16!include $(MAKE_INCLUDE_PROCESS)
17
18!if !$(BUILD_FORWARDING)
19
20
21# some helpers for the output.
22!if "$(BUILD_MODE)" == "DEBUG" || "$(BUILD_MODE)" == "PROFILE"
23_STR1 = Hello "C" "DEBUG" World!
24!else
25_STR1 = Hello "C" World!
26!endif
27
28!ifdef ENV_16BIT
29_STR2 = __16BIT__
30!else
31_STR2 = __32BIT__
32!endif
33
34
35#
36# validate that the executable actually runs and produces the desired output.
37#
38OUTFILE = out
39test:
40 $(TOOL_MAKE) -f dll-c.mak rebuild
41 $(TARGET) $(PATH_OBJ)\dll-c.dll\dll-c.dll > $(OUTFILE)
42! ifdef BUILD_VERBOSE
43 type $(OUTFILE)
44! endif
45 $(TOOL_CMP) $(OUTFILE) <<
46DLLInit
47$(_STR1)
48$(_STR2)
49FOOName
50DLLTerm
51<<
52 $(TOOL_MAKE) -f dll-c.mak clean
53
54!endif
55
Note: See TracBrowser for help on using the repository browser.