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

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

Merged in latest changes.

File size: 1.1 KB
Line 
1# $Id: dll-c.mak,v 1.1 2002-05-16 11:37:06 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-c
11MAKEFILE = dll-c.mak
12TARGET_MODE = DLL
13TARGET_LIBS = $(LIB_C_OBJ) $(LIB_OS) # use the static library!
14
15# rules and more
16!include $(MAKE_INCLUDE_PROCESS)
17
18
19
20# some helpers for the output.
21!if "$(BUILD_MODE)" == "DEBUG" || "$(BUILD_MODE)" == "PROFILE"
22_STR1 = Hello "C" "DEBUG" World!
23!else
24_STR1 = Hello "C" World!
25!endif
26
27!ifdef ENV_16BIT
28_STR2 = __16BIT__
29!else
30_STR2 = __32BIT__
31!endif
32
33
34#
35# validate that the executable actually runs and produces the desired output.
36#
37test:
38!if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"
39 $(TOOL_MAKE) -f dll-prog-c.mak clean build install
40 $(PATH_OBJ)\dll-prog-c.exe\dll-prog-c.exe $(TARGET) > out
41! ifdef BUILD_VERBOSE
42 type out
43! endif
44 $(TOOL_CMP) out <<
45DLLInit
46$(_STR1)
47$(_STR2)
48FOOName
49DLLTerm
50<<
51 $(TOOL_MAKE) -f dll-prog-c.mak clean
52!else
53! ifndef BUILD_VERBOSE
54 @ \
55! endif
56 $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
57!endif
58
Note: See TracBrowser for help on using the repository browser.