summaryrefslogtreecommitdiff
path: root/netware/common.mif
blob: d09026fd21c2f8954cde9ee67d99ea4185e6b24e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# common include file for PHP build
# include this in every make file
#

# Set following directories based on your setting

# Path to CodeWarrior installation
CW_PATH = P:/APPS/SCRIPT/SW/CW71-4

# NWSDK directories
ifndef SDK_DIR
SDK_DIR = R:/script/common/libc
endif

# MPK related directory
ifndef MPK_DIR
MPK_DIR = p:/apps/script/mpk
endif

#ifndef CLIB_DIR
#CLIB_DIR = p:/apps/ndk0601/nwsdk
#endif

# Winsock stuff
WINSOCK_DIR = P:/APPS/script/sw/Winsock2

# LDAP stuff
LDAP_DIR = P:/APPS/script/sw/cldapsdk

# Apache directory
ifndef APACHE_DIR
APACHE_DIR = P:/APPS/script/sw/Apache1.3.xSource
endif


# CW includes, libraries and tools
export MWCIncludes=$(CW_PATH)/include
export MWLibraries=$(CW_PATH)/lib

# Compiler and linker tools
CC = mwccnlm
LINK = mwldnlm

# Build type defaults to 'release'
ifndef BUILD
BUILD = release
endif
#BUILD = debug

OBJ_DIR = $(BUILD)
FINAL_DIR = $(BUILD)
MAP_FILE = $(FINAL_DIR)\$(MODULE_NAME).map

ifndef STACK_SIZE
STACK_SIZE=65536
endif

ifndef COPYRIGHT
#COPYRIGHT = "Copyright (c) 1997-2002 The PHP Group. All Rights Reserved."
COPYRIGHT = "Copyright (c) 1999\, 2000 The PHP Group. All rights reserved."
endif

# Link flags
LD_FLAGS  = -stacksize $(STACK_SIZE) -type generic -zerobss
LD_FLAGS += -o $(BINARY) -map $(MAP_FILE) -nlmversion $(VMAJ),$(VMIN),$(VREV)

# Module details
LD_FLAGS += -desc $(MODULE_DESC)
LD_FLAGS += -copy $(COPYRIGHT)
LD_FLAGS += -screenname Default
LD_FLAGS += -threadname $(MODULE_NAME)__p