* Package name : perl5
* Source directory :
* Configuration time: undef
- * Configured by : gsar
+ * Configured by : nick
* Target system :
*/
* This symbol is the filename expanded version of the BIN symbol, for
* programs that do not want to deal with that at run-time.
*/
-#define BIN "c:\\perl\\5.00467\\bin\\MSWin32-x86" /**/
-#define BIN_EXP "c:\\perl\\5.00467\\bin\\MSWin32-x86" /**/
+#define BIN "c:\\perl.gcc\\5.00467\\bin\\MSWin32-x86" /**/
+#define BIN_EXP "c:\\perl.gcc\\5.00467\\bin\\MSWin32-x86" /**/
/* CPPSTDIN:
* This symbol contains the first part of the string which will invoke
/* MYMALLOC:
* This symbol, if defined, indicates that we're using our own malloc.
*/
-/*#define MYMALLOC /**/
+#define MYMALLOC /**/
/* CAN_PROTOTYPE:
* If defined, this macro indicates that the C compiler can handle
* This symbol contains the ~name expanded version of ARCHLIB, to be used
* in programs that are not prepared to deal with ~ expansion at run-time.
*/
-#define ARCHLIB "c:\\perl\\5.00467\\lib\\MSWin32-x86" /**/
+#define ARCHLIB "c:\\perl.gcc\\5.00467\\lib\\MSWin32-x86" /**/
/*#define ARCHLIB_EXP "" /**/
/* CAT2:
* This symbol contains the ~name expanded version of PRIVLIB, to be used
* in programs that are not prepared to deal with ~ expansion at run-time.
*/
-#define PRIVLIB "c:\\perl\\5.00467\\lib" /**/
+#define PRIVLIB "c:\\perl.gcc\\5.00467\\lib" /**/
#define PRIVLIB_EXP (win32_get_privlib("5.00467")) /**/
/* SIG_NAME:
* This symbol contains the ~name expanded version of SITEARCH, to be used
* in programs that are not prepared to deal with ~ expansion at run-time.
*/
-#define SITEARCH "c:\\perl\\site\\5.00467\\lib\\MSWin32-x86" /**/
+#define SITEARCH "c:\\perl.gcc\\site\\5.00467\\lib\\MSWin32-x86" /**/
/*#define SITEARCH_EXP "" /**/
/* SITELIB:
* This symbol contains the ~name expanded version of SITELIB, to be used
* in programs that are not prepared to deal with ~ expansion at run-time.
*/
-#define SITELIB "c:\\perl\\site\\5.00467\\lib" /**/
+#define SITELIB "c:\\perl.gcc\\site\\5.00467\\lib" /**/
#define SITELIB_EXP (win32_get_sitelib("5.00467")) /**/
/* DLSYM_NEEDS_UNDERSCORE:
# Set these to wherever you want "nmake install" to put your
# newly built perl.
INST_DRV *= c:
-INST_TOP *= $(INST_DRV)\perl
+INST_TOP *= $(INST_DRV)\perl.gcc
# Comment this out if you DON'T want your perl installation to be versioned.
# This means that the new installation will overwrite any files from the
# uncomment one
#CCTYPE *= MSVC20
#CCTYPE *= MSVC
-CCTYPE *= BORLAND
-#CCTYPE *= GCC
+#CCTYPE *= BORLAND
+CCTYPE *= GCC
#
# uncomment next line if you want to use the perl object
# you may have compiled with/without it. Be prepared to recompile all extensions
# if you change the default. Currently, this cannot be enabled if you ask for
# PERL_OBJECT above.
-#PERL_MALLOC *= define
+PERL_MALLOC *= define
#
# set the install locations of the compiler include/libraries
#
#CCHOME *= f:\msdev\vc
-CCHOME *= C:\bc5
-#CCHOME *= D:\packages\mingw32
+#CCHOME *= C:\bc5
+CCHOME *= C:\mingw32
CCINCDIR *= $(CCHOME)\include
CCLIBDIR *= $(CCHOME)\lib
.ELIF "$(CCTYPE)" == "GCC"
-CC = gcc -pipe
-LINK32 = gcc -pipe
+CC = gcc
+LINK32 = gcc
LIB32 = ar rc
IMPLIB = dlltool
o = .o
+a = .a
#
# Options
############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
o *= .obj
+a *= .lib
LKPRE = INPUT (
LKPOST = )
# Rules
#
-.SUFFIXES : .c $(o) .dll .lib .exe .a
+.SUFFIXES : .c $(o) .dll $(a) .exe
.c$(o):
$(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
$(IMPLIB) $(*B).lib $@
.ELIF "$(CCTYPE)" == "GCC"
$(LINK32) -o $@ $(LINK_FLAGS) $< $(LIBFILES)
- $(IMPLIB) -def $(*B).def $(*B).lib $@
+ $(IMPLIB) -def $(*B).def $(*B).a $@
.ELSE
$(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
-out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
#
# various targets
-.IF "$(OBJECT)" == "-DPERL_OBJECT"
-PERLIMPLIB = ..\perlcore.lib
-PERLDLL = ..\perlcore.dll
-CAPILIB = $(COREDIR)\PerlCAPI.lib
-.ELSE
-PERLIMPLIB = ..\perl.lib
-PERLDLL = ..\perl.dll
-CAPILIB =
-.ENDIF
-
MINIPERL = ..\miniperl.exe
MINIDIR = .\mini
PERLEXE = ..\perl.exe
CFGSH_TMPL = config.gc
CFGH_TMPL = config_H.gc
+PERLIMPLIB *= ..\libperl$(a)
.ELSE
.ENDIF
+.IF "$(OBJECT)" == "-DPERL_OBJECT"
+PERLIMPLIB *= ..\perlcore$(a)
+PERLDLL = ..\perlcore.dll
+CAPILIB = $(COREDIR)\PerlCAPI$(a)
+.ELSE
+PERLIMPLIB *= ..\perl$(a)
+PERLDLL = ..\perl.dll
+CAPILIB =
+.ENDIF
+
+
+
XCOPY = xcopy /f /r /i /d
RCOPY = xcopy /f /r /i /e /d
NOOP = @echo
MICROCORE_OBJ = $(MICROCORE_SRC:db:+$(o))
CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:db:+$(o))
WIN32_OBJ = $(WIN32_SRC:db:+$(o))
-MINICORE_OBJ = $(MINIDIR)\{$(MICROCORE_OBJ:f) miniperlmain$(o) perlio$(o)}
+MINICORE_OBJ = $(MINIDIR)\{$(MICROCORE_OBJ:f) miniperlmain$(o) $(EXTRACORE_SRC:db:+$(o))}
MINIWIN32_OBJ = $(MINIDIR)\{$(WIN32_OBJ:f)}
MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
PERL95_OBJ = $(PERL95_SRC:db:+$(o))
"d_mymalloc=$(PERL_MALLOC)" \
"libs=$(LIBFILES:f)" \
"incpath=$(CCINCDIR)" \
- "libperl=$(PERLIMPLIB)" \
+ "libperl=$(PERLIMPLIB:f)" \
"libpth=$(strip $(CCLIBDIR) $(LIBFILES:d))" \
"libc=$(LIBC)" \
"make=dmake" \
+ "_o=$(o)" \
+ "_a=$(a)" \
+ "lib_ext=$(a)" \
"static_ext=$(STATIC_EXT)" \
"dynamic_ext=$(DYNAMIC_EXT)" \
"usethreads=$(USE_THREADS)" \
distclean: clean
-del /f $(MINIPERL) $(PERLEXE) $(PERL95EXE) $(PERLDLL) $(GLOBEXE) \
- $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
+ $(PERLIMPLIB) ..\miniperl$(a) $(MINIMOD)
-del /f *.def *.map
-del /f $(EXTENSION_DLL)
-del /f $(EXTENSION_C) $(DYNALOADER).c
-del /f perl95.c
.ENDIF
-del /f bin\*.bat
- -cd $(EXTDIR) && del /s *.lib *.def *.map *.bs Makefile *$(o) pm_to_blib
+ -cd $(EXTDIR) && del /s *$(a) *.def *.map *.bs Makefile *$(o) pm_to_blib
-rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
-rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
-@erase $(WIN32_OBJ)
-@erase $(DLL_OBJ)
-@erase $(X2P_OBJ)
- -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp
+ -@erase ..\*$(o) ..\*$(a) ..\*.exp *$(o) *$(a) *.exp
-@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
-@erase ..\x2p\*.exe ..\x2p\*.bat
-@erase *.ilk