summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
authorVenkat Raghavan S <rvenkat@php.net>2002-05-29 05:16:17 +0000
committerVenkat Raghavan S <rvenkat@php.net>2002-05-29 05:16:17 +0000
commit423eca4e05768858540685b6fbf824b5f4457eb8 (patch)
tree8b3b4431a0ca859e54655984aef44e46aeb2fb12 /netware
parent1d790e4916e245e3be5ba0d12f69ad8887272957 (diff)
downloadphp-git-423eca4e05768858540685b6fbf824b5f4457eb8.tar.gz
Changes to build Zend on NetWare
Diffstat (limited to 'netware')
-rw-r--r--netware/zend.mak58
1 files changed, 4 insertions, 54 deletions
diff --git a/netware/zend.mak b/netware/zend.mak
index 25d8a2529f..5181cc0fa4 100644
--- a/netware/zend.mak
+++ b/netware/zend.mak
@@ -14,13 +14,6 @@ include $(PROJECT_ROOT)/netware/common.mif
.SUFFIXES:
.SUFFIXES: .nlm .lib .obj .cpp .c .msg .mlc .mdb .xdc .d
-# Source files
-##CC_SRC = zend_ini_scanner_cc.cc \
-## zend_language_scanner_cc.cc
-
-##CPP_SRC = zend_ini_scanner.cpp \
-## zend_language_scanner.cpp
-
C_SRC = zend.c \
zend_alloc.c \
zend_API.c \
@@ -64,31 +57,21 @@ endif
# Compile flags
-
-#C_FLAGS = -c -maxerrors 25 -processor Pentium -align packed
-#C_FLAGS += -msgstyle gcc -ext obj -ARM on
-#C_FLAGS += -cpp_exceptions on -wchar_t off -bool on -w on -ansi off -nostdinc -nosyspath
C_FLAGS = -c -maxerrors 25 -msgstyle std
C_FLAGS += -wchar_t on -bool on
C_FLAGS += -processor Pentium -align 1
-#C_FLAGS += -r
C_FLAGS += -nostdinc
-#C_FLAGS += -nosyspath -ext obj
C_FLAGS += -D__C9X_CMATH_INLINES_DEFINED
-C_FLAGS += -DNETWARE -DZTS
+C_FLAGS += -DNETWARE -D__GNUC__
+C_FLAGS += -DZTS
C_FLAGS += -DCLIB_STAT_PATCH
C_FLAGS += -DTHREAD_SWITCH
-#C_FLAGS += -I. -I- -I../netware -I$(SDK_DIR)/sdk # ../netware added for special SYS/STAT.H : Venkat(6/2/02)
-C_FLAGS += -I. -I- -I../netware -I$(SDK_DIR)/include # ../netware added for special SYS/STAT.H : Venkat(6/2/02)
+C_FLAGS += -I. -I- -I../netware -I$(SDK_DIR)/include # ../netware added for special SYS/STAT.H
C_FLAGS += -I$(MWCIncludes)
-#C_FLAGS += -lang c++ -prefix NLM_PREFIX.H
-#C_FLAGS += -ext obj -msext on -r -RTTI on
-
# Link flags
LD_FLAGS = -type library
LD_FLAGS += -o $(BINARY)
-#LDFLAGS += -zerobss -nofail -msgstyle gcc -nostderr
# Extra stuff based on debug / release builds
@@ -133,38 +116,14 @@ project: $(BINARY) $(MESSAGE)
##zend_language_scanner.c : zend_language_scanner.l
## @flex -i -Pzend -o$@ zend_language_scanner.l
-
-#zend_ini_scanner.cpp : zend_ini_scanner.l
-# @flex -+ -B -i -Sflex.skl -Pini_ -o$@ zend_ini_scanner.l
-
-#zend_language_scanner.cpp : zend_language_scanner.l
-# @flex -+ -B -i -Sflex.skl -Pzend -o$@ zend_language_scanner.l
-
-
-#$(OBJ_DIR)/%.d: %.cpp
-# @echo Building Dependencies for $(<F)
-# @$(CC) -M $< $(C_FLAGS) -o $@
-
$(OBJ_DIR)/%.d: %.c
@echo Building Dependencies for $(<F)
@$(CC) -M $< $(C_FLAGS) -o $@
-
-#$(OBJ_DIR)/%.d: %.cc
-# @echo Building Dependencies for $(<F)
-# @$(CC) -M $< $(C_FLAGS) -o $@
-
-#$(OBJ_DIR)/%.obj: %.cpp
-# @echo Compiling $?...
-# @$(CC) $< $(C_FLAGS) -o $@
$(OBJ_DIR)/%.obj: %.c
@echo Compiling $?...
@$(CC) $< $(C_FLAGS) -o $@
-#$(OBJ_DIR)/%.obj: %.cc
-# @echo Compiling $?...
-# @$(CC) $< $(C_FLAGS) -o $@
-
$(BINARY): $(DEPDS) $(OBJECTS)
@echo Linking $@...
@@ -186,9 +145,6 @@ cleansrc:
-@del "zend_ini_parser.output"
-@del "zend_language_parser.output"
-# -@del "zend_ini_scanner.cpp"
-# -@del "zend_language_scanner.cpp"
-
.PHONY: cleand
cleand:
@@ -204,10 +160,4 @@ cleanobj:
cleanbin:
@echo Deleting binary files...
-@del "$(FINAL_DIR)\$(MODULE_NAME).lib"
-# @echo Deleting MAP, DEF files, etc....
-# -@del "$(FINAL_DIR)\$(MODULE_NAME).map"
-# -@del "$(FINAL_DIR)\$(MODULE_NAME).def"
-# -@del "$(FINAL_DIR)\$(MODULE_NAME).link"
-#ifeq '$(BUILD)' 'debug'
-# -@del $(FINAL_DIR)\$(MODULE_NAME).sym
-#endif
+