Changeset 2446
- Timestamp:
- Nov 15, 2005, 2:06:42 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 30 deleted
- 27 edited
- 11 copied
- 29 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Makefile ¶
r2445 r2446 73 73 export EMX_CVS_VENDOR ?= EMX 74 74 export EMX_CVS_REL ?= EMX_0-9D-FIX04 75 export LIBC_VERSION ?= 0. 6.0rc276 export LIBC_VERSION_SHORT ?= 0 6r275 export LIBC_VERSION ?= 0.7.0a1 76 export LIBC_VERSION_SHORT ?= 07a1 77 77 78 78 # innotek version and timestamp … … 631 631 all-quick-step1-it: \ 632 632 all-preload \ 633 emx-quick-libs\633 libc-quick \ 634 634 all-preload-unload \ 635 emx-quick-libs-install \635 libc-quick-install \ 636 636 all-preload 637 637 $(PATH_OBJ)/.quick-step1: … … 650 650 all-quick-step2: $(PATH_OBJ)/.quick-step2 651 651 all-quick-step2-it: \ 652 emx-quick -rest\652 emx-quick \ 653 653 all-preload-unload \ 654 emx-quick- rest-install \654 emx-quick-install \ 655 655 all-preload 656 656 $(PATH_OBJ)/.quick-step2: … … 896 896 all-symlinks-binutils: 897 897 for file in $(SYMLINKS_BINUTILS_TO_GCC_FILES); do \ 898 if [ ! -f "$(PATH_TOP)/ src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`" ]; then \899 echo symlinking file src/gcc/$${file} to src/binutils/$${file} ; \900 if rm -f $(PATH_TOP)/ src/gcc/$$file && \901 $(TOOL_SYMLINK_FILE) $(PATH_TOP)/ src/binutils/$$file $(PATH_TOP)/src/gcc/$$file && \902 touch $(PATH_TOP)/ src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`; \898 if [ ! -f "$(PATH_TOP)/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`" ]; then \ 899 echo symlinking file gcc/$${file} to binutils/$${file} ; \ 900 if rm -f $(PATH_TOP)/gcc/$$file && \ 901 $(TOOL_SYMLINK_FILE) $(PATH_TOP)/binutils/$$file $(PATH_TOP)/gcc/$$file && \ 902 touch $(PATH_TOP)/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`; \ 903 903 then true ; \ 904 904 else exit 1; \ … … 907 907 done 908 908 for dir in $(SYMLINKS_BINUTILS_TO_GCC_DIRS) ; do \ 909 if [ ! -f "$(PATH_TOP)/ src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'`" ] ; then \910 echo symlinking directory src/gcc/$${dir} to src/binutils/$${dir} ; \911 if [ -d "$(PATH_TOP)/ src/gcc/$$dir" ] ; then \909 if [ ! -f "$(PATH_TOP)/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'`" ] ; then \ 910 echo symlinking directory gcc/$${dir} to binutils/$${dir} ; \ 911 if [ -d "$(PATH_TOP)/gcc/$$dir" ] ; then \ 912 912 echo removing existing directory: $${dir} ; \ 913 rm -Rf $(PATH_TOP)/ src/gcc/$$dir ; \913 rm -Rf $(PATH_TOP)/gcc/$$dir ; \ 914 914 fi ; \ 915 if $(TOOL_SYMLINK_MKDIR) $(PATH_TOP)/ src/gcc/$$dir && \916 $(TOOL_SYMLINK_DIR) $(PATH_TOP)/ src/binutils/$$dir $(PATH_TOP)/src/gcc/`echo $${dir}| sed -e '/\//!d' -e 's@\([a-zA-z0-9]*\)/.*@\1/@'` ; \917 touch $(PATH_TOP)/ src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'` ; \915 if $(TOOL_SYMLINK_MKDIR) $(PATH_TOP)/gcc/$$dir && \ 916 $(TOOL_SYMLINK_DIR) $(PATH_TOP)/binutils/$$dir $(PATH_TOP)/gcc/`echo $${dir}| sed -e '/\//!d' -e 's@\([a-zA-z0-9]*\)/.*@\1/@'` ; \ 917 touch $(PATH_TOP)/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'` ; \ 918 918 then true ; \ 919 919 else exit 1; \ … … 921 921 fi ; \ 922 922 done 923 -ls -a1 src/gcc/.sym*923 -ls -a1 gcc/.sym* 924 924 925 925 all-symlinks-unlink-binutils: 926 for name in `ls src/gcc/.symlinked* | sed -e "s/.*\.symlinked.//" -e "s/_/\//g"`; do \926 for name in `ls gcc/.symlinked* | sed -e "s/.*\.symlinked.//" -e "s/_/\//g"`; do \ 927 927 echo unlinking $${name} ; \ 928 if [ -d "$(PATH_TOP)/ src/gcc/$${name}" ] ; then \929 rm -Rf $(PATH_TOP)/ src/gcc/$${name} ; \928 if [ -d "$(PATH_TOP)/gcc/$${name}" ] ; then \ 929 rm -Rf $(PATH_TOP)/gcc/$${name} ; \ 930 930 else \ 931 rm -f $(PATH_TOP)/ src/gcc/$${name} ; \931 rm -f $(PATH_TOP)/gcc/$${name} ; \ 932 932 fi ; \ 933 if [ ! -f "$(PATH_TOP)/ src/gcc/$${name}" -a ! -d "$(PATH_TOP)/src/gcc/$${name}" ] ; then \934 rm $(PATH_TOP)/ src/gcc/.symlinked.`echo $${name} | sed -e 's@/@_@g'` ; \933 if [ ! -f "$(PATH_TOP)/gcc/$${name}" -a ! -d "$(PATH_TOP)/gcc/$${name}" ] ; then \ 934 rm $(PATH_TOP)/gcc/.symlinked.`echo $${name} | sed -e 's@/@_@g'` ; \ 935 935 else \ 936 echo "unlink error: $(PATH_TOP)/ src/gcc/$${name} exist" ; \937 ls -l "$(PATH_TOP)/ src/gcc/$${name}" ; \936 echo "unlink error: $(PATH_TOP)/gcc/$${name} exist" ; \ 937 ls -l "$(PATH_TOP)/gcc/$${name}" ; \ 938 938 exit 1; \ 939 939 fi ; \ 940 940 done 941 -ls -a1 src/gcc/.sym*941 -ls -a1 gcc/.sym* 942 942 943 943 … … 1012 1012 1013 1013 # let the build/bootstrap create the gcc import .def file before kicking off a build. 1014 gcc-bootstrap gcc-build: src/gcc/gcc/config/i386/emx-libgcc_so_d.def1015 src/gcc/gcc/config/i386/emx-libgcc_so_d.def: src/emx/src/lib/libgcc_d.awk $(PATH_OBJD)/emx/omf/libc.def src/emx/src/lib/libc.def1016 $(GAWK) -f src/emx/src/lib/libgcc_d.awk $(filter %.def,$^) > $@1014 gcc-bootstrap gcc-build: gcc/gcc/config/i386/emx-libgcc_so_d.def 1015 gcc/gcc/config/i386/emx-libgcc_so_d.def: libc/src/lib/libgcc_d.awk $(PATH_OBJD)/emx/omf/libc.def libc/src/lib/libc.def 1016 $(GAWK) -f libc/src/lib/libgcc_d.awk $(filter %.def,$^) > $@ 1017 1017 1018 1018 … … 1020 1020 # We pass down BOOT_ flags for stage2+. 1021 1021 # Because strip is broken on OS/2 we pass -s for release build and -g for 1022 # non release builds - This overrides some stuff in src/gcc/gcc/config/i386/t-emx!1022 # non release builds - This overrides some stuff in gcc/gcc/config/i386/t-emx! 1023 1023 # For the 2nd stage we need a hack for using the right specs when linking... 1024 1024 #SPEC_HACK = $(if $(wildchar $(PATH_OBJ)/.all-stage1),\ 1025 # -specs $(PATH_TOP)/ src/emx/src/lib/libc.specs, \1025 # -specs $(PATH_TOP)/libc/src/lib/libc.specs, \ 1026 1026 # -specs $(PATH_TOP)/tools/x86.os2/gcc/staged/lib/gcc-lib/i386-pc-os2-emx/$(GCC_VERSION)/specs) 1027 1027 SPECS_HACK = … … 1045 1045 # We set CC to help configure finding it. 1046 1046 # We also set some LDFLAGS to get omf linking. 1047 gcc-configure-it $(PATH_OBJ)/gcc/.ts.configured: $(PATH_TOP)/ src/gcc/configure1047 gcc-configure-it $(PATH_OBJ)/gcc/.ts.configured: $(PATH_TOP)/gcc/configure 1048 1048 ifeq "$(BUILD_PLATFORM)" "OS2" 1049 1049 $(ASH) -c " \ … … 1083 1083 1084 1084 1085 # easy, update src/gcc/gcc/version.c1085 # easy, update gcc/gcc/version.c 1086 1086 gcc-versionstamps: 1087 1087 @echo "Version stamping gcc..." 1088 mv -f $(PATH_TOP)/ src/gcc/gcc/version.c $(PATH_TOP)/src/gcc/gcc/version.tmp.c1088 mv -f $(PATH_TOP)/gcc/gcc/version.c $(PATH_TOP)/gcc/gcc/version.tmp.c 1089 1089 sed -e '/version_string/s/\([0-9]\.[0-9]*\.[0-9]*\).*/\1 $(INNOTEK_VERSION)";/' \ 1090 $(PATH_TOP)/ src/gcc/gcc/version.tmp.c > $(PATH_TOP)/src/gcc/gcc/version.c1091 rm -f $(PATH_TOP)/ src/gcc/gcc/version.tmp.c1090 $(PATH_TOP)/gcc/gcc/version.tmp.c > $(PATH_TOP)/gcc/gcc/version.c 1091 rm -f $(PATH_TOP)/gcc/gcc/version.tmp.c 1092 1092 1093 1093 … … 1096 1096 gcc-builtunix-stage2: 1097 1097 $(MAKE) $(MAKEOPT) -C $(PATH_OBJ)/gcc prefix=$(PATH_BUILTTOOLS_TMPD) install 1098 ## cp $(PATH_TOP)/ src/emx/src/lib/libc.specs $(PATH_OBJ)/gcc/gcc/specs1098 ## cp $(PATH_TOP)/libc/src/lib/libc.specs $(PATH_OBJ)/gcc/gcc/specs 1099 1099 1100 1100 … … 1116 1116 $(ALL_PREFIX)/src/diffs/gcc-$(GCC_VERSION).diff: 1117 1117 mkdir -p $(@D) 1118 $(TOOL_CVS_DIFF_TREE) $(GCC_CVS_REL) src/gcc > $@1118 $(TOOL_CVS_DIFF_TREE) $(GCC_CVS_REL) gcc > $@ 1119 1119 1120 1120 … … 1200 1200 # We set CC to help configure finding it. 1201 1201 # And we reconfigure libiberty to the gcc one. 1202 binutils-configure-it $(PATH_OBJ)/binutils/.ts.configured: $(PATH_TOP)/ src/binutils/configure1202 binutils-configure-it $(PATH_OBJ)/binutils/.ts.configured: $(PATH_TOP)/binutils/configure 1203 1203 ifeq "$(BUILD_PLATFORM)" "OS2" 1204 1204 $(ASH) -c " \ … … 1234 1234 CFLAGS=\"$(BUILD_DEBUGINFO) $(BUILD_OPTIMIZE) -Zhigh-mem\" \ 1235 1235 LDFLAGS=\"$(BUILD_DEBUGINFO) -Zhigh-mem -Zstack 1024 -Zomf\" \ 1236 $(PATH_TOP)/ src/binutils/gas/configure \1236 $(PATH_TOP)/binutils/gas/configure \ 1237 1237 --target=i386-pc-os2-elf \ 1238 1238 --enable-shared=libgcc,bfd,opcodes \ … … 1248 1248 CFLAGS=\"$(BUILD_DEBUGINFO) $(BUILD_OPTIMIZE) -Zhigh-mem\" \ 1249 1249 LDFLAGS=\"$(BUILD_DEBUGINFO) -Zhigh-mem -Zstack 1024 -Zomf\" \ 1250 $(PATH_TOP)/ src/binutils/ld/configure \1250 $(PATH_TOP)/binutils/ld/configure \ 1251 1251 --target=i386-pc-os2-elf \ 1252 1252 --enable-shared=libgcc,bfd,opcodes \ … … 1274 1274 binutils-versionstamps: 1275 1275 @echo "Version stamping binutils..." 1276 cp -f $(PATH_TOP)/ src/binutils/binutils/version.c $(PATH_TOP)/src/binutils/binutils/version.tmp.c1276 cp -f $(PATH_TOP)/binutils/binutils/version.c $(PATH_TOP)/binutils/binutils/version.tmp.c 1277 1277 sed -e '/printf.*program_version/s/%s %s.*\\n/%s %s $(INNOTEK_VERSION)\\n/' \ 1278 $(PATH_TOP)/ src/binutils/binutils/version.tmp.c > $(PATH_TOP)/src/binutils/binutils/version.c1279 rm -f $(PATH_TOP)/ src/binutils/binutils/version.tmp.c1280 if [ -f $(PATH_TOP)/ src/gcc/binutils/version.c ]; then \1281 cp -f $(PATH_TOP)/ src/gcc/binutils/version.c $(PATH_TOP)/src/gcc/binutils/version.tmp.c && \1278 $(PATH_TOP)/binutils/binutils/version.tmp.c > $(PATH_TOP)/binutils/binutils/version.c 1279 rm -f $(PATH_TOP)/binutils/binutils/version.tmp.c 1280 if [ -f $(PATH_TOP)/gcc/binutils/version.c ]; then \ 1281 cp -f $(PATH_TOP)/gcc/binutils/version.c $(PATH_TOP)/gcc/binutils/version.tmp.c && \ 1282 1282 sed -e '/printf.*program_version/s/%s %s.*\\n/%s %s $(INNOTEK_VERSION)\\n/' \ 1283 $(PATH_TOP)/ src/gcc/binutils/version.tmp.c > $(PATH_TOP)/src/gcc/binutils/version.c && \1284 rm -f $(PATH_TOP)/ src/gcc/binutils/version.tmp.c ; \1283 $(PATH_TOP)/gcc/binutils/version.tmp.c > $(PATH_TOP)/gcc/binutils/version.c && \ 1284 rm -f $(PATH_TOP)/gcc/binutils/version.tmp.c ; \ 1285 1285 fi 1286 1286 @echo "Version stamping gas..." 1287 cp -f $(PATH_TOP)/ src/binutils/gas/as.c $(PATH_TOP)/src/binutils/gas/as.tmp.c1287 cp -f $(PATH_TOP)/binutils/gas/as.c $(PATH_TOP)/binutils/gas/as.tmp.c 1288 1288 sed -e '/printf.*GNU.*assembler/s/%s.*\\n/%s $(INNOTEK_VERSION)\\n/' \ 1289 1289 -e '/fprintf.*GNU.*assembler.*version.*BFD.*/s/using BFD version %s.*/using BFD version %s $(INNOTEK_VERSION)"),/ ' \ 1290 $(PATH_TOP)/ src/binutils/gas/as.tmp.c > $(PATH_TOP)/src/binutils/gas/as.c1291 rm -f $(PATH_TOP)/ src/binutils/gas/as.tmp.c1292 if [ -f $(PATH_TOP)/ src/gcc/gas/as.c ]; then \1293 cp -f $(PATH_TOP)/ src/gcc/gas/as.c $(PATH_TOP)/src/gcc/gas/as.tmp.c && \1290 $(PATH_TOP)/binutils/gas/as.tmp.c > $(PATH_TOP)/binutils/gas/as.c 1291 rm -f $(PATH_TOP)/binutils/gas/as.tmp.c 1292 if [ -f $(PATH_TOP)/gcc/gas/as.c ]; then \ 1293 cp -f $(PATH_TOP)/gcc/gas/as.c $(PATH_TOP)/gcc/gas/as.tmp.c && \ 1294 1294 sed -e '/printf.*GNU.*assembler/s/%s.*\\n/%s $(INNOTEK_VERSION)\\n/' \ 1295 1295 -e '/fprintf.*GNU.*assembler.*version.*BFD.*/s/using BFD version %s.*/using BFD version %s $(INNOTEK_VERSION)"),/ ' \ 1296 $(PATH_TOP)/ src/gcc/gas/as.tmp.c > $(PATH_TOP)/src/gcc/gas/as.c && \1297 rm -f $(PATH_TOP)/ src/gcc/gas/as.tmp.c ; \1296 $(PATH_TOP)/gcc/gas/as.tmp.c > $(PATH_TOP)/gcc/gas/as.c && \ 1297 rm -f $(PATH_TOP)/gcc/gas/as.tmp.c ; \ 1298 1298 fi 1299 1299 @echo "Version stamping ld..." 1300 cp -f $(PATH_TOP)/ src/binutils/ld/ldver.c $(PATH_TOP)/src/binutils/ld/ldver.tmp.c1300 cp -f $(PATH_TOP)/binutils/ld/ldver.c $(PATH_TOP)/binutils/ld/ldver.tmp.c 1301 1301 sed -e '/fprintf.*GNU.*ld.*version/s/(with BFD %s).*/(with BFD %s) $(INNOTEK_VERSION)\\n"),/' \ 1302 $(PATH_TOP)/ src/binutils/ld/ldver.tmp.c > $(PATH_TOP)/src/binutils/ld/ldver.c1303 rm -f $(PATH_TOP)/ src/binutils/ld/ldver.tmp.c1304 if [ -f $(PATH_TOP)/ src/gcc/ld/ldver.c ]; then \1305 cp -f $(PATH_TOP)/ src/gcc/ld/ldver.c $(PATH_TOP)/src/gcc/ld/ldver.tmp.c && \1302 $(PATH_TOP)/binutils/ld/ldver.tmp.c > $(PATH_TOP)/binutils/ld/ldver.c 1303 rm -f $(PATH_TOP)/binutils/ld/ldver.tmp.c 1304 if [ -f $(PATH_TOP)/gcc/ld/ldver.c ]; then \ 1305 cp -f $(PATH_TOP)/gcc/ld/ldver.c $(PATH_TOP)/gcc/ld/ldver.tmp.c && \ 1306 1306 sed -e '/fprintf.*GNU.*ld.*version/s/(with BFD %s).*/(with BFD %s) $(INNOTEK_VERSION)\\n"),/' \ 1307 $(PATH_TOP)/ src/gcc/ld/ldver.tmp.c > $(PATH_TOP)/src/gcc/ld/ldver.c && \1308 rm -f $(PATH_TOP)/ src/gcc/ld/ldver.tmp.c ; \1307 $(PATH_TOP)/gcc/ld/ldver.tmp.c > $(PATH_TOP)/gcc/ld/ldver.c && \ 1308 rm -f $(PATH_TOP)/gcc/ld/ldver.tmp.c ; \ 1309 1309 fi 1310 1310 … … 1332 1332 $(ALL_PREFIX)/src/diffs/binutils-$(BINUTILS_VERSION).diff: 1333 1333 mkdir -p $(@D) 1334 $(TOOL_CVS_DIFF_TREE) $(BINUTILS_CVS_REL) src/binutils > $@1334 $(TOOL_CVS_DIFF_TREE) $(BINUTILS_CVS_REL) binutils > $@ 1335 1335 1336 1336 … … 1372 1372 emx-build emx-install: 1373 1373 mkdir -p $(PATH_OBJ)/emx 1374 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/ src/emx -f $(MAKEFILE) $@-it1374 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/emx -f $(MAKEFILE) $@-it 1375 1375 1376 1376 emx-build-it: 1377 $(MAKE) $(MAKEOPT) -j 1 -C $(PATH_TOP)/ src/emx $(EMX_DEFINES) tools1378 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/ src/emx $(EMX_DEFINES) all1377 $(MAKE) $(MAKEOPT) -j 1 -C $(PATH_TOP)/emx $(EMX_DEFINES) tools 1378 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/emx $(EMX_DEFINES) all 1379 1379 1380 1380 emx-install-it: 1381 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/ src/emx $(EMX_DEFINES) INS=$(ALL_PREFIX)/ install1381 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/emx $(EMX_DEFINES) INS=$(ALL_PREFIX)/ install 1382 1382 1383 1383 … … 1388 1388 # Install the compiled emx stuff to builtunix. 1389 1389 emx-builtunix-stage2: 1390 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/ src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS_TMP)/ install1390 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS_TMP)/ install 1391 1391 1392 1392 # Quick bootstrap workers. 1393 emx-quick-libs: 1394 GCCLOAD=3 $(MAKE) $(MAKEOPT) -f $(PATH_TOP)/src/emx/libonly.gmk -C $(PATH_TOP)/src/emx $(EMX_DEFINES) all 1395 1396 emx-quick-libs-install: 1397 $(MAKE) $(MAKEOPT) -f $(PATH_TOP)/src/emx/libonly.gmk -C $(PATH_TOP)/src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS)/ install 1398 1399 emx-quick-rest: 1400 GCCLOAD=3 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/src/emx $(EMX_DEFINES) all 1393 emx-quick: 1394 GCCLOAD=3 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/emx $(EMX_DEFINES) all 1401 1395 1402 emx-quick- rest-install:1403 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/ src/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS)/ install1396 emx-quick-install: 1397 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/emx $(EMX_DEFINES) INS=$(PATH_BUILTTOOLS)/ install 1404 1398 1405 1399 … … 1409 1403 $(ALL_PREFIX)/src/diffs/emx-$(EMX_VERSION).diff: 1410 1404 mkdir -p $(@D) 1411 $(TOOL_CVS_DIFF_TREE) $(EMX_CVS_REL) src/emx > $@ 1412 1405 $(TOOL_CVS_DIFF_TREE) $(EMX_CVS_REL) emx > $@ 1406 1407 1408 1409 ############################################################################### 1410 ############################################################################### 1411 ############################################################################### 1412 # 1413 # L I B C 1414 # 1415 ############################################################################### 1416 ############################################################################### 1417 ############################################################################### 1418 all-libc libc: \ 1419 libc-build 1420 @echo "Successfully build LIBC." 1421 1422 # Some helpers. 1423 # TODO: Change OUT and INS to the right ones. Currently not possible as 1424 # doing such breaks the rules generating. 1425 LIBC_MODE = dbg 1426 ifeq "$(BUILD_MODE)" "RELEASE" 1427 LIBC_MODE = opt 1428 endif 1429 #LIBC_OUT = out/ 1430 #LIBC_INS = out/install/ 1431 LIBC_OUT = $(PATH_OBJD)/libc/ 1432 LIBC_INS = $(ALL_PREFIX)/ 1433 LIBC_MASM = $(PATH_TOP)/tools/x86.os2/masm/v6.0/binp/ml.exe 1434 LIBC_DEFINES = "OUT=$(LIBC_OUT)" "INS=$(LIBC_INS)" "MODE=$(LIBC_MODE)" "ASM=$(LIBC_MASM) -c" 1435 1436 # build the components. (directory changer rules) 1437 .PHONY: libc-build libc-install libc-configure 1438 libc-build libc-install: 1439 mkdir -p $(PATH_OBJ)/libc 1440 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/libc -f $(MAKEFILE) $@-it 1441 1442 libc-build-it: 1443 $(MAKE) $(MAKEOPT) -j 1 -C $(PATH_TOP)/libc $(LIBC_DEFINES) tools 1444 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/libc $(LIBC_DEFINES) all 1445 1446 libc-install-it: 1447 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/libc $(LIBC_DEFINES) INS=$(ALL_PREFIX)/ install 1448 1449 1450 # We pass down the INNOTEK_VERSION define when building LIBC. 1451 libc-versionstamps: 1452 @echo "Version stamping LIBC... nothing to do" 1453 1454 # Install the compiled libc stuff to builtunix. 1455 libc-builtunix-stage2: 1456 $(MAKE) $(MAKEOPT) -C $(PATH_TOP)/libc $(LIBC_DEFINES) INS=$(PATH_BUILTTOOLS_TMP)/ install 1457 1458 # Quick bootstrap workers. 1459 libc-quick: 1460 GCCLOAD=3 $(MAKE) $(MAKEOPT) -f $(PATH_TOP)/libc/libonly.gmk -C $(PATH_TOP)/libc $(LIBC_DEFINES) all 1461 1462 libc-quick-install: 1463 $(MAKE) $(MAKEOPT) -f $(PATH_TOP)/libc/libonly.gmk -C $(PATH_TOP)/libc $(LIBC_DEFINES) INS=$(PATH_BUILTTOOLS)/ install 1464 1465 1466 1467 # Generate diffs for LIBC (part of packing). 1468 .PHONY: libc-diff $(ALL_PREFIX)/src/diffs/libc-$(LIBC_VERSION).diff 1469 libc-diff: $(ALL_PREFIX)/src/diffs/libc-$(LIBC_VERSION).diff 1470 $(ALL_PREFIX)/src/diffs/libc-$(LIBC_VERSION).diff: 1471 mkdir -p $(@D) 1472 $(TOOL_CVS_DIFF_TREE) $(LIBC_CVS_REL) libc > $@ 1473 1474 1413 1475 1414 1476 … … 1467 1529 packing-src-binutils \ 1468 1530 packing-src-emx \ 1531 packing-src-libc \ 1469 1532 1470 1533 packing-src-gcc: 1471 1534 rm -f $(ZIPBASE)-src-GCC.zip 1472 zip $(ZIPFLAGS) $(ZIPBASE)-src-GCC.zip src/gcc -x \*CVS\*1535 zip $(ZIPFLAGS) $(ZIPBASE)-src-GCC.zip gcc -x \*CVS\* 1473 1536 1474 1537 packing-src-binutils: 1475 1538 rm -f $(ZIPBASE)-src-binutils.zip 1476 zip $(ZIPFLAGS) $(ZIPBASE)-src-binutils.zip src/binutils -x \*CVS\*1539 zip $(ZIPFLAGS) $(ZIPBASE)-src-binutils.zip binutils -x \*CVS\* 1477 1540 1478 1541 packing-src-emx: 1479 1542 rm -f $(ZIPBASE)-src-emx.zip 1480 zip $(subst r,,$(ZIPFLAGS)) $(ZIPBASE)-src-emx.zip src/emx/* -x \*CVS\* -x \*testcase\* -x \*out\* 1481 zip $(ZIPFLAGS) $(ZIPBASE)-src-emx.zip src/emx/src/* src/emx/include/* src/emx/src/bsd/* -x \*CVS\* 1543 zip $(ZIPFLAGS) $(ZIPBASE)-src-emx.zip emx/* -x \*CVS\* -x \*testcase\* -x \*out\* 1544 1545 packing-src-libc: 1546 rm -f $(ZIPBASE)-src-libc.zip 1547 zip $(ZIPFLAGS) $(ZIPBASE)-src-libc.zip libc/* -x \*CVS\* -x \*testcase\* -x \*out\* 1482 1548 1483 1549 installer: … … 1507 1573 cp $(PATH_TOP)/doc/COPYING $(ALL_PREFIX)/doc/GCC-$(GCC_VERSION) 1508 1574 # cp $(PATH_TOP)/ChangeLog $(ALL_PREFIX)/doc/GCC-$(GCC_VERSION)/ChangeLog.os2 1509 cp $(PATH_TOP)/ src/emx/ChangeLog.LIBC$(ALL_PREFIX)/doc/GCC-$(GCC_VERSION)1575 cp $(PATH_TOP)/libc/ChangeLog.LIBC $(ALL_PREFIX)/doc/GCC-$(GCC_VERSION) 1510 1576 cp $(PATH_TOP)/src/misc/MakeOmfLibs.cmd $(ALL_PREFIX)/lib 1511 1577 cp $(PATH_TOP)/src/misc/dllar.cmd $(ALL_PREFIX)/bin -
TabularUnified trunk/gcc/gcc/version.c ¶
r2444 r2446 7 7 organization's name in parentheses at the end of the string. */ 8 8 9 const char version_string[] = "3.3.5 ";9 const char version_string[] = "3.3.5 (Innotek Build 2005-11-15 02:02)"; 10 10 11 11 /* This is the location of the online document giving instructions for -
TabularUnified trunk/libc/Makefile.gmk ¶
r2444 r2446 49 49 PATH_OBJD := $(shell echo $(PATH_OBJ)|sed 's/^[a-zA-Z]://') 50 50 endif 51 OUT = $(PATH_OBJD)/ emx/51 OUT = $(PATH_OBJD)/libc/ 52 52 INS = $(PATH_OBJD)/builtunix/usr/ 53 53 . = $(OUT) … … 97 97 endif 98 98 CFLAGS.INC += -Isrc/include 99 CFLAGS.INC += -Isrc/lib /bsd/include99 CFLAGS.INC += -Isrc/libc/bsd/include 100 100 CFLAGS = -Wall -Wundef -Wmissing-prototypes -mstack-arg-probe $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND) 101 101 # The additional C compiler flags for different build modes -
TabularUnified trunk/libc/src/libc/alias/alias.smak ¶
r2444 r2446 13 13 include common.smak 14 14 15 ALIAS.FUNCS = $(shell gawk -f src/lib /alias/aliasfuncs.awk $.)16 ALIAS._FUNCS = $(shell gawk -f src/lib /alias/aliasfuncs.awk $. _)15 ALIAS.FUNCS = $(shell gawk -f src/libc/alias/aliasfuncs.awk $.) 16 ALIAS._FUNCS = $(shell gawk -f src/libc/alias/aliasfuncs.awk $. _) 17 17 # list of alias pairs: 18 ALIAS.ALIASES = $(shell gawk -f src/lib /alias/aliasbsdfuncs.awk $.) $(shell gawk -f src/lib/alias/aliasgnufuncs.awk $.) \18 ALIAS.ALIASES = $(shell gawk -f src/libc/alias/aliasbsdfuncs.awk $.) $(shell gawk -f src/libc/alias/aliasgnufuncs.awk $.) \ 19 19 strcasecmp _std_stricmp \ 20 20 strncasecmp _std_strnicmp \ … … 34 34 ## Depending on the timestamp kind of sucks, now we depend on the 35 35 ## header, which is better but will require libc to be build first. 36 $.$(.TARG): $.libc-std.h src/lib /alias/alias.smak36 $.$(.TARG): $.libc-std.h src/libc/alias/alias.smak 37 37 $(call MKDIR,$.aliases) 38 38 # custom aliases -
TabularUnified trunk/libc/src/libc/app/app.smak ¶
r2444 r2446 8 8 .TKIND := aout 9 9 .TARGET := libc_app.a 10 .TSRC := $(wildcard src/lib /app/*.c)10 .TSRC := $(wildcard src/libc/app/*.c) 11 11 .TCF := -I$. 12 .TCF.src/lib /app/stdio.c := -D_NFILES=4013 .TCF.src/lib /app/iodata.c := -D_NFILES=4012 .TCF.src/libc/app/stdio.c := -D_NFILES=40 13 .TCF.src/libc/app/iodata.c := -D_NFILES=40 14 14 .INSDIR = lib/ 15 15 .TKEEP := 1 -
TabularUnified trunk/libc/src/libc/bsd/db/db.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /bsd/db/btree/*.c)2 libc.TSRC += $(wildcard src/lib /bsd/db/db/*.c)3 libc.TSRC += $(wildcard src/lib /bsd/db/hash/*.c)4 libc.TSRC += $(wildcard src/lib /bsd/db/mpool/*.c)5 libc.TSRC += $(wildcard src/lib /bsd/db/recno/*.c)1 libc.TSRC += $(wildcard src/libc/bsd/db/btree/*.c) 2 libc.TSRC += $(wildcard src/libc/bsd/db/db/*.c) 3 libc.TSRC += $(wildcard src/libc/bsd/db/hash/*.c) 4 libc.TSRC += $(wildcard src/libc/bsd/db/mpool/*.c) 5 libc.TSRC += $(wildcard src/libc/bsd/db/recno/*.c) -
TabularUnified trunk/libc/src/libc/bsd/gdtoa/gdtoa.smak ¶
r2444 r2446 1 libc.TSRC += $(filter-out %arithchk.c,$(wildcard src/lib /bsd/gdtoa/*.c)) \2 $(addprefix src/lib /bsd/gdtoa/glue/, machdep_ldisx.c _hdtoa.c _ldtoa.c glue.c)1 libc.TSRC += $(filter-out %arithchk.c,$(wildcard src/libc/bsd/gdtoa/*.c)) \ 2 $(addprefix src/libc/bsd/gdtoa/glue/, machdep_ldisx.c _hdtoa.c _ldtoa.c glue.c) 3 3 libc.TDEP += 4 4 5 5 # make everything depend on arith.h. 6 $(filter-out %arithchk.c,$(wildcard src/lib /bsd/gdtoa/*.c)): $.arith.h6 $(filter-out %arithchk.c,$(wildcard src/libc/bsd/gdtoa/*.c)): $.arith.h 7 7 8 8 # generate arith.h. … … 11 11 12 12 # build arith.h generator. 13 $.arithchk.exe: src/lib /bsd/gdtoa/arithchk.c13 $.arithchk.exe: src/libc/bsd/gdtoa/arithchk.c 14 14 $(LD) $(CFLAGS:-Iinclude=) $(CFLAGS.dbg) $(LDFLAGS.dbg) $(LDFLAGS.aout) -o $@ $< 15 15 -
TabularUnified trunk/libc/src/libc/bsd/gen/gen.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /bsd/gen/*.c)1 libc.TSRC += $(wildcard src/libc/bsd/gen/*.c) -
TabularUnified trunk/libc/src/libc/bsd/locale/locale.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /bsd/locale/*.c)1 libc.TSRC += $(wildcard src/libc/bsd/locale/*.c) -
TabularUnified trunk/libc/src/libc/bsd/net/net.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /bsd/net/*.c)1 libc.TSRC += $(wildcard src/libc/bsd/net/*.c) -
TabularUnified trunk/libc/src/libc/bsd/nls/nls.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /bsd/nls/*.c)1 libc.TSRC += $(wildcard src/libc/bsd/nls/*.c) -
TabularUnified trunk/libc/src/libc/bsd/stdtime/stdtime.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /bsd/stdtime/*.c)1 libc.TSRC += $(wildcard src/libc/bsd/stdtime/*.c) -
TabularUnified trunk/libc/src/libc/conv/conv.smak ¶
r2444 r2446 1 libc.TSRC.386 += $(filter-out %smallcnv.s,$(wildcard src/lib /conv/386/*.s))2 libc.TSRC += $(filter-out %makepow5.c,$(wildcard src/lib /conv/*.c))3 libc.TDEP += $(addprefix @O@src/lib /conv/,strtoul.o strtoll.o strtoull.o)1 libc.TSRC.386 += $(filter-out %smallcnv.s,$(wildcard src/libc/conv/386/*.s)) 2 libc.TSRC += $(filter-out %makepow5.c,$(wildcard src/libc/conv/*.c)) 3 libc.TDEP += $(addprefix @O@src/libc/conv/,strtoul.o strtoll.o strtoull.o) 4 4 5 5 # bird: this doesn't work any better now. sorry. :/ 6 #$(call .MVER,conv/strtoul.o): src/lib /conv/strtol.c6 #$(call .MVER,conv/strtoul.o): src/libc/conv/strtol.c 7 7 # $(call DO.COMPILE.c, -I$. -DUNSIGNED) 8 #$(call .MVER,conv/strtoll.o): src/lib /conv/strtol.c8 #$(call .MVER,conv/strtoll.o): src/libc/conv/strtol.c 9 9 # $(call DO.COMPILE.c, -I$. -DLONG_LONG) 10 #$(call .MVER,conv/strtoull.o): src/lib /conv/strtol.c10 #$(call .MVER,conv/strtoull.o): src/libc/conv/strtol.c 11 11 # $(call DO.COMPILE.c, -I$. -DLONG_LONG -DUNSIGNED) 12 12 13 $.aout-prof/src/lib /conv/strtoul.o: src/lib/conv/strtol.c13 $.aout-prof/src/libc/conv/strtoul.o: src/libc/conv/strtol.c 14 14 $(call DO.COMPILE.c, -I$. -DUNSIGNED) 15 $.aout-prof/src/lib /conv/strtoll.o: src/lib/conv/strtol.c15 $.aout-prof/src/libc/conv/strtoll.o: src/libc/conv/strtol.c 16 16 $(call DO.COMPILE.c, -I$. -DLONG_LONG) 17 $.aout-prof/src/lib /conv/strtoull.o: src/lib/conv/strtol.c17 $.aout-prof/src/libc/conv/strtoull.o: src/libc/conv/strtol.c 18 18 $(call DO.COMPILE.c, -I$. -DLONG_LONG -DUNSIGNED) 19 19 20 $.aout-log/src/lib /conv/strtoul.o: src/lib/conv/strtol.c20 $.aout-log/src/libc/conv/strtoul.o: src/libc/conv/strtol.c 21 21 $(call DO.COMPILE.c, -I$. -DUNSIGNED) 22 $.aout-log/src/lib /conv/strtoll.o: src/lib/conv/strtol.c22 $.aout-log/src/libc/conv/strtoll.o: src/libc/conv/strtol.c 23 23 $(call DO.COMPILE.c, -I$. -DLONG_LONG) 24 $.aout-log/src/lib /conv/strtoull.o: src/lib/conv/strtol.c24 $.aout-log/src/libc/conv/strtoull.o: src/libc/conv/strtol.c 25 25 $(call DO.COMPILE.c, -I$. -DLONG_LONG -DUNSIGNED) 26 26 27 $.aout/src/lib /conv/strtoul.o: src/lib/conv/strtol.c27 $.aout/src/libc/conv/strtoul.o: src/libc/conv/strtol.c 28 28 $(call DO.COMPILE.c, -I$. -DUNSIGNED) 29 $.aout/src/lib /conv/strtoll.o: src/lib/conv/strtol.c29 $.aout/src/libc/conv/strtoll.o: src/libc/conv/strtol.c 30 30 $(call DO.COMPILE.c, -I$. -DLONG_LONG) 31 $.aout/src/lib /conv/strtoull.o: src/lib/conv/strtol.c31 $.aout/src/libc/conv/strtoull.o: src/libc/conv/strtol.c 32 32 $(call DO.COMPILE.c, -I$. -DLONG_LONG -DUNSIGNED) 33 33 34 .TCF.src/lib /conv/bipow5.c := -I$.34 .TCF.src/libc/conv/bipow5.c := -I$. 35 35 $(call .MVER,conv/bipow5.o): $.bipow5.tab 36 src/lib /conv/bipow5.c: $.bipow5.tab36 src/libc/conv/bipow5.c: $.bipow5.tab 37 37 $.bipow5.tab: $.makepow5.exe 38 38 $< -o $@ -s -m325 4951 … … 40 40 # bird: This ain't performance ciritical, so while my -Zomf is broken could we use aout? 41 41 # bird: Bootstrapping is impossible if we include -Iinclude sometimes, hope that's ok t exclude... 42 $.makepow5.exe: src/lib /conv/makepow5.c42 $.makepow5.exe: src/libc/conv/makepow5.c 43 43 $(LD) $(CFLAGS:-Iinclude=) $(CFLAGS.dbg) $(LDFLAGS.dbg) $(LDFLAGS.aout) -o $@ $< 44 44 … … 46 46 .MODULE := 47 47 .TKIND := aout 48 #.TSRC.386 := src/lib /conv/386/smallcnv.s - smallcnv is dead.48 #.TSRC.386 := src/libc/conv/386/smallcnv.s - smallcnv is dead. 49 49 .TSRC := $(.TSRC.$(CPU)) 50 50 .INSDIR := … … 62 62 63 63 # Additional dependencies to help stupid make. 64 $.omf/src/lib /conv/386/smallcnv.obj: $.aout/src/lib/conv/386/smallcnv.o64 $.omf/src/libc/conv/386/smallcnv.obj: $.aout/src/libc/conv/386/smallcnv.o 65 65 66 66 include comend.smak -
TabularUnified trunk/libc/src/libc/io/io.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /io/*.c)1 libc.TSRC += $(wildcard src/libc/io/*.c) 2 2 3 3 # Build some object files separately (not included in libraries) 4 4 .MODULE := 5 5 .TKIND := aout 6 .TSRC.386 := src/lib /io/386/binmode.s6 .TSRC.386 := src/libc/io/386/binmode.s 7 7 .TSRC := $(.TSRC.$(CPU)) 8 8 include common.smak … … 21 21 22 22 # Additional dependency to help make make omf version. 23 $.omf/src/lib /io/386/binmode.obj: $.aout/src/lib/io/386/binmode.o23 $.omf/src/libc/io/386/binmode.obj: $.aout/src/libc/io/386/binmode.o -
TabularUnified trunk/libc/src/libc/lgpl/argp/argp.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /lgpl/argp/*.c)1 libc.TSRC += $(wildcard src/libc/lgpl/argp/*.c) -
TabularUnified trunk/libc/src/libc/lgpl/crypt/crypt.smak ¶
r2444 r2446 1 libc.TSRC += $(addprefix src/lib /lgpl/crypt/,crypt-entry.c md5-crypt.c md5.c crypt.c crypt_util.c)1 libc.TSRC += $(addprefix src/libc/lgpl/crypt/,crypt-entry.c md5-crypt.c md5.c crypt.c crypt_util.c) 2 2 3 3 include comend.smak -
TabularUnified trunk/libc/src/libc/lgpl/intl/intl.smak ¶
r2444 r2446 1 libc.TSRC += $(filter-out %plural-eval.c,$(wildcard src/lib /lgpl/intl/*.c))1 libc.TSRC += $(filter-out %plural-eval.c,$(wildcard src/libc/lgpl/intl/*.c)) 2 2 3 #$(foreach srcfile,$(wildcard src/lib /lgpl/intl/*.c), \3 #$(foreach srcfile,$(wildcard src/libc/lgpl/intl/*.c), \ 4 4 # $(eval .TCF.$(srcfile) := )) 5 5 -
TabularUnified trunk/libc/src/libc/lgpl/malloc/malloc.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /lgpl/malloc/*.c)1 libc.TSRC += $(wildcard src/libc/lgpl/malloc/*.c) -
TabularUnified trunk/libc/src/libc/lgpl/math/math.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /lgpl/math/*.c)1 libc.TSRC += $(wildcard src/libc/lgpl/math/*.c) -
TabularUnified trunk/libc/src/libc/lgpl/string/string.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /lgpl/string/*.c)1 libc.TSRC += $(wildcard src/libc/lgpl/string/*.c) -
TabularUnified trunk/libc/src/libc/lgpl/sysdeps/sysdeps.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /lgpl/sysdeps/os2/*.c) \2 $(wildcard src/lib /lgpl/sysdeps/i386/*.S) \3 $(wildcard src/lib /lgpl/sysdeps/i386/fpu/*.S) \4 $(wildcard src/lib /lgpl/sysdeps/i386/fpu/*.c) \5 $(wildcard src/lib /lgpl/sysdeps/generic/*.c) \6 $(wildcard src/lib /lgpl/sysdeps/ieee754/ldbl-96/*.c)1 libc.TSRC += $(wildcard src/libc/lgpl/sysdeps/os2/*.c) \ 2 $(wildcard src/libc/lgpl/sysdeps/i386/*.S) \ 3 $(wildcard src/libc/lgpl/sysdeps/i386/fpu/*.S) \ 4 $(wildcard src/libc/lgpl/sysdeps/i386/fpu/*.c) \ 5 $(wildcard src/libc/lgpl/sysdeps/generic/*.c) \ 6 $(wildcard src/libc/lgpl/sysdeps/ieee754/ldbl-96/*.c) -
TabularUnified trunk/libc/src/libc/libc.smak ¶
r2444 r2446 3 3 # Utility function used in second-level submakefiles 4 4 # Creates four versions of object file name for all kinds of outputs. 5 .MVER = $(foreach x,aout aout-prof,$.$x/src/lib /$1)5 .MVER = $(foreach x,aout aout-prof,$.$x/src/libc/$1) 6 6 7 7 # This is the list of object files for libc.dll (appended by some submakefiles) … … 9 9 10 10 # First of all, include all second-level libc submakefiles 11 LIBC.SUBMAK := $(wildcard src/lib /*/*.smak) $(wildcard src/lib/bsd/*/*.smak) $(wildcard src/lib/lgpl/*/*.smak)11 LIBC.SUBMAK := $(wildcard src/libc/*/*.smak) $(wildcard src/libc/bsd/*/*.smak) $(wildcard src/libc/lgpl/*/*.smak) 12 12 -include $(LIBC.SUBMAK) 13 13 # Add to the list of genrules.smak dependencies … … 39 39 -D_BSD_NAMESPACE_POLLUTION \ 40 40 -I$. \ 41 -Isrc/lib /bsd/include \42 -Isrc/lib /bsd/locale \43 -Isrc/lib /lgpl \44 -Isrc/lib /lgpl/sysdeps/os2 \45 -Isrc/lib /lgpl/sysdeps/i386 \46 -Isrc/lib /lgpl/sysdeps/generic \47 -Isrc/lib /lgpl/include41 -Isrc/libc/bsd/include \ 42 -Isrc/libc/bsd/locale \ 43 -Isrc/libc/lgpl \ 44 -Isrc/libc/lgpl/sysdeps/os2 \ 45 -Isrc/libc/lgpl/sysdeps/i386 \ 46 -Isrc/libc/lgpl/sysdeps/generic \ 47 -Isrc/libc/lgpl/include 48 48 .TSF += $(.TCF) 49 49 .INSDIR = lib/ … … 69 69 .TARGET := libc_omf386.lib 70 70 .TKIND := omf 71 .TSRC := $(wildcard src/lib /sys/386/*.asm)71 .TSRC := $(wildcard src/libc/sys/386/*.asm) 72 72 .TDEP := 73 73 .TCF := … … 88 88 LIBC.DEF := $.omf/libc.def 89 89 LIBC.OBJS.COMMON := \ 90 $.omf/src/lib /sys/libcfork.obj \91 $.omf/src/lib /sys/sharedpm.obj \92 $.omf/src/lib /sys/__initdll.obj \93 $.omf/src/lib /malloc/_heapvoting.obj \94 $.omf/src/lib /sys/FastInfoBlocks.obj \95 $.omf/src/lib /process/fmutex.obj \96 $.omf/src/lib /sys/DosCreateEventSemEx.obj \97 $.omf/src/lib /sys/DosEx.obj \98 $.omf/src/lib /str/386/bzero.obj \99 $.omf/src/lib /sys/386/__init_environ.obj \100 $.omf/src/lib /malloc/_hmalloc.obj \101 $.omf/src/lib /malloc/_hinitheap.obj \102 $.omf/src/lib /sys/heaphigh.obj \103 $.omf/src/lib /sys/DosAllocMemEx.obj \104 $.omf/src/lib /malloc/ucreate2.obj \105 $.omf/src/lib /malloc/iaddmem.obj \106 $.omf/src/lib /malloc/imisc.obj \107 $.omf/src/lib /malloc/uopen.obj \108 $.omf/src/lib /sys/DosOpenEventSemEx.obj \109 $.omf/src/lib /malloc/umalloc.obj \110 $.omf/src/lib /malloc/ialloc.obj \111 $.omf/src/lib /sys/filehandles.obj \112 $.omf/src/lib /malloc/_hcalloc.obj \113 $.omf/src/lib /malloc/ucalloc.obj \114 $.omf/src/lib /startup/dllinit.obj \115 $.omf/src/lib /startup/startup.obj \116 $.omf/src/lib /startup/ctor1.obj \117 $.omf/src/lib /sys/tcpipver.obj \118 $.omf/src/lib /sys/tcpipver43.obj \119 $.omf/src/lib /sys/pathrewrite.obj \120 $.omf/src/lib /app/getenv.obj \121 $.omf/src/lib /str/386/strlen.obj \122 $.omf/src/lib /str/strncmp.obj \123 $.omf/src/lib /app/stdio.obj \124 $.omf/src/lib /process/fmutex2.obj \125 $.omf/src/lib /io/_tmp.obj \126 $.omf/src/lib /process/thread_internals.obj \127 $.omf/src/lib /sys/b_threadInit.obj \128 $.omf/src/lib /malloc/malloc.obj \129 $.omf/src/lib /malloc/initr.obj \130 $.omf/src/lib /malloc/_linitheap.obj \131 $.omf/src/lib /sys/uflags.obj \132 $.omf/src/lib /sys/sbrk.obj \133 $.omf/src/lib /sys/heap.obj \134 $.omf/src/lib /sys/__init.obj90 $.omf/src/libc/sys/libcfork.obj \ 91 $.omf/src/libc/sys/sharedpm.obj \ 92 $.omf/src/libc/sys/__initdll.obj \ 93 $.omf/src/libc/malloc/_heapvoting.obj \ 94 $.omf/src/libc/sys/FastInfoBlocks.obj \ 95 $.omf/src/libc/process/fmutex.obj \ 96 $.omf/src/libc/sys/DosCreateEventSemEx.obj \ 97 $.omf/src/libc/sys/DosEx.obj \ 98 $.omf/src/libc/str/386/bzero.obj \ 99 $.omf/src/libc/sys/386/__init_environ.obj \ 100 $.omf/src/libc/malloc/_hmalloc.obj \ 101 $.omf/src/libc/malloc/_hinitheap.obj \ 102 $.omf/src/libc/sys/heaphigh.obj \ 103 $.omf/src/libc/sys/DosAllocMemEx.obj \ 104 $.omf/src/libc/malloc/ucreate2.obj \ 105 $.omf/src/libc/malloc/iaddmem.obj \ 106 $.omf/src/libc/malloc/imisc.obj \ 107 $.omf/src/libc/malloc/uopen.obj \ 108 $.omf/src/libc/sys/DosOpenEventSemEx.obj \ 109 $.omf/src/libc/malloc/umalloc.obj \ 110 $.omf/src/libc/malloc/ialloc.obj \ 111 $.omf/src/libc/sys/filehandles.obj \ 112 $.omf/src/libc/malloc/_hcalloc.obj \ 113 $.omf/src/libc/malloc/ucalloc.obj \ 114 $.omf/src/libc/startup/dllinit.obj \ 115 $.omf/src/libc/startup/startup.obj \ 116 $.omf/src/libc/startup/ctor1.obj \ 117 $.omf/src/libc/sys/tcpipver.obj \ 118 $.omf/src/libc/sys/tcpipver43.obj \ 119 $.omf/src/libc/sys/pathrewrite.obj \ 120 $.omf/src/libc/app/getenv.obj \ 121 $.omf/src/libc/str/386/strlen.obj \ 122 $.omf/src/libc/str/strncmp.obj \ 123 $.omf/src/libc/app/stdio.obj \ 124 $.omf/src/libc/process/fmutex2.obj \ 125 $.omf/src/libc/io/_tmp.obj \ 126 $.omf/src/libc/process/thread_internals.obj \ 127 $.omf/src/libc/sys/b_threadInit.obj \ 128 $.omf/src/libc/malloc/malloc.obj \ 129 $.omf/src/libc/malloc/initr.obj \ 130 $.omf/src/libc/malloc/_linitheap.obj \ 131 $.omf/src/libc/sys/uflags.obj \ 132 $.omf/src/libc/sys/sbrk.obj \ 133 $.omf/src/libc/sys/heap.obj \ 134 $.omf/src/libc/sys/__init.obj 135 135 LIBC.OBJS := \ 136 $.omf/src/lib /startup/386/dll0hi.obj \136 $.omf/src/libc/startup/386/dll0hi.obj \ 137 137 $(LIBC.OBJS.COMMON) 138 138 LIBC.LIBS := $.omf/libc_s.lib $.omf/libc_app.lib $.omf/libc_omf386.lib 139 LIBC.DEPS := $(LIBC.STUB) $.omf/libc_alias.lib $.omf /liblazyimp.lib $.omf-lazy/libos2_unicode_lazy.lib $.omf/libos2.lib $.omf/libend.lib139 LIBC.DEPS := $(LIBC.STUB) $.omf/libc_alias.lib $.omf-lazy/libos2_unicode_lazy.lib $.omf/libos2.lib 140 140 LIBC.DLL.OBJS := 141 141 LIBC.DIRS := $(sort $(dir $(LIBC.OBJS) $(LIBC.DEPS) $(LIBC.DLL.OBJS))) … … 144 144 LIBC.PRF.DEF := $.omf/libc.prf.def 145 145 LIBC.PRF.OBJS := \ 146 $.omf/src/lib /startup/386/dll0hi.obj \146 $.omf/src/libc/startup/386/dll0hi.obj \ 147 147 $(subst /omf/,/omf-prof/,$(LIBC.OBJS.COMMON)) 148 148 LIBC.PRF.LIBS := $.omf-prof/libc_p_s.lib $.omf-prof/libc_app_p.lib $.omf/libc_omf386.lib 149 LIBC.PRF.DEPS := $(LIBC.STUB) $.omf/libc_alias.lib $.omf- prof/liblazyimp_p.lib $.omf-lazy/libos2_unicode_lazy.lib $.omf-prof/libos2_p.lib $.omf/libend.lib149 LIBC.PRF.DEPS := $(LIBC.STUB) $.omf/libc_alias.lib $.omf-lazy/libos2_unicode_lazy.lib $.omf-prof/libos2_p.lib 150 150 LIBC.PRF.DIRS := $(sort $(dir $(LIBC.PRF.OBJS) $(LIBC.PRF.DEPS))) 151 151 … … 153 153 LIBC.ELH.DEF := $.omf/libc.elh.def 154 154 LIBC.ELH.OBJS := \ 155 $.omf/src/lib /startup/386/dll0hi.obj \156 $.omf/src/lib /startup/dllinit.obj155 $.omf/src/libc/startup/386/dll0hi.obj \ 156 $.omf/src/libc/startup/dllinit.obj 157 157 LIBC.ELH.LIBS := $(LIBC.LIBS) 158 158 LIBC.ELH.DEPS := $(LIBC.DEPS) … … 162 162 LIBC.LOG.DEF := $(LIBC.DEF) 163 163 LIBC.LOG.OBJS := \ 164 $.omf/src/lib /startup/386/dll0hi.obj \164 $.omf/src/libc/startup/386/dll0hi.obj \ 165 165 $(subst /omf/,/omf-log/,$(LIBC.OBJS.COMMON)) 166 166 LIBC.LOG.LIBS := $.omf-log/libc_l_s.lib $.omf-log/libc_app_l.lib $.omf/libc_omf386.lib … … 187 187 $(LIBC.LIBS) \ 188 188 $(filter %.lib,$(LIBC.DEPS)) \ 189 -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) 189 -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) -llazyimp -lend 190 190 ifeq ($(MODE),opt) 191 191 cp $@ $(@:.dll=.dbg) … … 194 194 195 195 # LIBC .def file 196 $(LIBC.DEF): $(LIBC.LIBS) src/lib /libc.def196 $(LIBC.DEF): $(LIBC.LIBS) src/libc/libc.def 197 197 $(call RM,$@) 198 198 @$(call FECHO,$@,LIBRARY libc$(VH)$(VM) INITINSTANCE TERMINSTANCE) … … 204 204 sed -e "/\"___pfn/d" -e "/\"__sys_/d" -e "/\"___sys_/d" -e "/\"___libc_[a-z]/d" -e "/\"__nsyy/d" $@ > $@.tmp 205 205 mv -f $@.tmp $@ 206 krx.exe src/lib /dlllegacy.cmd -e "_DLL_InitTerm" $@ src/lib/libc.def206 krx.exe src/libc/dlllegacy.cmd -e "_DLL_InitTerm" $@ src/libc/libc.def 207 207 208 208 # LIBC import libraries with dllinit, libsocket and libsyslog. 209 209 # (It's stuff which belongs to libc, but for historical reasons isn't physically in the .dll yet.) 210 $(filter %.lib,$(LIBC.IMPLIB) $(LIBC.IMPLIB.TCPIPV4)): $(LIBC.DEF) $.omf/src/lib /startup/dllinit.obj \210 $(filter %.lib,$(LIBC.IMPLIB) $(LIBC.IMPLIB.TCPIPV4)): $(LIBC.DEF) $.omf/src/libc/startup/dllinit.obj \ 211 211 $.omf/libsocket.lib $.omf/tcpipv4/libsocket.lib \ 212 212 $.omf/libsyslog.lib $.omf/tcpipv4/libsyslog.lib … … 215 215 $(AR) r $@ $(filter %.obj,$^) $(dir $@)libsocket.lib $(dir $@)libsyslog.lib 216 216 217 $(filter %.a,$(LIBC.IMPLIB) $(LIBC.IMPLIB.TCPIPV4)): $(LIBC.DEF) $.aout/src/lib /startup/dllinit.o \217 $(filter %.a,$(LIBC.IMPLIB) $(LIBC.IMPLIB.TCPIPV4)): $(LIBC.DEF) $.aout/src/libc/startup/dllinit.o \ 218 218 $.aout/libsocket.a $.aout/tcpipv4/libsocket.a \ 219 219 $.aout/libsyslog.a $.aout/tcpipv4/libsyslog.a … … 238 238 $(LIBC.LOG.LIBS) \ 239 239 $(filter %.lib,$(LIBC.LOG.DEPS)) \ 240 -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) 240 -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) -llazyimp -lend 241 241 echo $@ 242 242 … … 248 248 $(LIBC.PRF.LIBS) \ 249 249 $(filter %.lib,$(LIBC.PRF.DEPS)) \ 250 -L$.omf-prof -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) 250 -L$.omf-prof -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) -llazyimp -lend 251 251 echo $@ 252 252 … … 268 268 $(LIBC.ELH.LIBS) \ 269 269 $(filter %.lib,$(LIBC.ELH.DEPS)) \ 270 -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) 270 -L$.omf -lgcc -lgcc_eh $(LIBC.STUBARG) -llazyimp -lend 271 271 echo $@ 272 272 … … 275 275 # Even M$/IBM nmake have that. ;-) 276 276 # And no, I couldn't care less about performance with this type of DLL. No need for ordinals. 277 $(LIBC.ELH.DEF): $(LIBC.DEF) src/lib /libc.smak277 $(LIBC.ELH.DEF): $(LIBC.DEF) src/libc/libc.smak 278 278 $(call RM,$@) 279 279 cp $< $@ … … 351 351 all: libc-dll 352 352 ifndef LIBC_CORE_ONLY 353 libc-dll: emxbind emxexp app alias libc libos2 libos2@omf liblazyimp liblazyimp@omf libend\353 libc-dll: emxbind emxexp app alias libc libos2 libos2@omf \ 354 354 $(LIBC.DIRS) $(LIBC.DLL) $(LIBC.IMPLIB) $(LIBC.IMPLIB.TCPIPV4) \ 355 355 $(LIBC.PRF.DIRS) $(LIBC.PRF.DLL) \ … … 357 357 $(LIBC.ELH.DIRS) $(LIBC.ELH.DLL) 358 358 else 359 libc-dll: emxbind emxexp app alias libc libos2 libos2@omf liblazyimp liblazyimp@omf libend\359 libc-dll: emxbind emxexp app alias libc libos2 libos2@omf \ 360 360 $(LIBC.DIRS) $(LIBC.DLL) $(LIBC.IMPLIB) $(LIBC.IMPLIB.TCPIPV4) 361 361 endif … … 418 418 # this happens in just a fraction of second. 419 419 _STD_WILDWILD = \ 420 src/lib /*/*.c \421 src/lib /*/386/*.s \422 src/lib /msun/*/*.c \423 src/lib /msun/*/*.S \424 src/lib /bsd/*/*.c \425 src/lib /bsd/*/glue/*.c \426 src/lib /lgpl/*/*.c \427 src/lib /lgpl/sysdeps/i386/*.S \428 src/lib /lgpl/sysdeps/i386/*.c \429 src/lib /lgpl/sysdeps/i386/i486/*.S \430 src/lib /lgpl/sysdeps/i386/fpu/*.S \431 src/lib /lgpl/sysdeps/i386/fpu/*.c \432 src/lib /lgpl/sysdeps/generic/*.c \433 src/lib /lgpl/sysdeps/ieee754/ldbl-96/*.c420 src/libc/*/*.c \ 421 src/libc/*/386/*.s \ 422 src/libc/msun/*/*.c \ 423 src/libc/msun/*/*.S \ 424 src/libc/bsd/*/*.c \ 425 src/libc/bsd/*/glue/*.c \ 426 src/libc/lgpl/*/*.c \ 427 src/libc/lgpl/sysdeps/i386/*.S \ 428 src/libc/lgpl/sysdeps/i386/*.c \ 429 src/libc/lgpl/sysdeps/i386/i486/*.S \ 430 src/libc/lgpl/sysdeps/i386/fpu/*.S \ 431 src/libc/lgpl/sysdeps/i386/fpu/*.c \ 432 src/libc/lgpl/sysdeps/generic/*.c \ 433 src/libc/lgpl/sysdeps/ieee754/ldbl-96/*.c 434 434 $.stmp-libc-std: $(wildcard $(_STD_WILDWILD)) 435 cd src/lib && gawk -f ./mkstd.awk $(patsubst src/lib/%,%,$^) > ../../__tmp__435 cd src/libc && gawk -f ./mkstd.awk $(patsubst src/libc/%,%,$^) > ../../__tmp__ 436 436 $(call UPDATE,__tmp__,$.libc-std.h) 437 437 $(call TOUCH,$@) 438 438 439 439 # dependencies to help make (baka, baka, baka) 440 $.omf-prof/src/lib /startup/dllinit.obj: $.aout-prof/src/lib/startup/dllinit.o440 $.omf-prof/src/libc/startup/dllinit.obj: $.aout-prof/src/libc/startup/dllinit.o 441 441 $(DO.EMXOMF) 442 442 … … 453 453 # Forwarder DLLs for backward compatibility. 454 454 # 455 $.omf/fwdstub.obj: src/lib /fwdstub.asm455 $.omf/fwdstub.obj: src/libc/fwdstub.asm 456 456 $(call DO.COMPILE.asm) 457 457 458 458 ## libc06b4 459 #$.omf/libc06b4.dll: src/lib /libc06b4.def $.omf/fwdstub.obj $.omf/libc_dll.lib459 #$.omf/libc06b4.dll: src/libc/libc06b4.def $.omf/fwdstub.obj $.omf/libc_dll.lib 460 460 # gcc -Zomf -o $@ -nostdlib -Zdll $^ 461 461 #$(INS)lib/libc06b4.dll: $.omf/libc06b4.dll … … 465 465 466 466 ## libc06b5 467 #$.omf/libc06b5.dll: src/lib /libc06b5.def $.omf/fwdstub.obj $.omf/libc_dll.lib467 #$.omf/libc06b5.dll: src/libc/libc06b5.def $.omf/fwdstub.obj $.omf/libc_dll.lib 468 468 # gcc -Zomf -o $@ -nostdlib -Zdll $^ 469 469 #$(INS)lib/libc06b5.dll: $.omf/libc06b5.dll -
TabularUnified trunk/libc/src/libc/locale/locale.smak ¶
r2444 r2446 1 libc.TSRC += $(wildcard src/lib /locale/*.c)1 libc.TSRC += $(wildcard src/libc/locale/*.c) -
TabularUnified trunk/libc/src/libc/misc/misc.smak ¶
r2444 r2446 1 libc.TSRC.386 += $(wildcard src/lib /misc/386/*.s)2 libc.TSRC += $(wildcard src/lib /misc/*.c)1 libc.TSRC.386 += $(wildcard src/libc/misc/386/*.s) 2 libc.TSRC += $(wildcard src/libc/misc/*.c) -
TabularUnified trunk/libc/src/libc/msun/msun.smak ¶
r2444 r2446 51 51 # select the sources we need. 52 52 $(foreach asrc,$(basename $(ARCH_SRCS)),$(eval COMMON_SRCS := $(filter-out $(asrc).%,$(COMMON_SRCS)))) 53 MSUN_SRCS := $(wildcard src/lib /msun/bsdsrc/*.c) \54 $(addprefix src/lib /msun/src/,$(COMMON_SRCS))53 MSUN_SRCS := $(wildcard src/libc/msun/bsdsrc/*.c) \ 54 $(addprefix src/libc/msun/src/,$(COMMON_SRCS)) 55 55 56 56 # No optimizations based on strict aliasing here, thank you. … … 58 58 59 59 # Add to libc modules. 60 libc.TSRC.386 += $(addprefix src/lib /msun/i387/,$(ARCH_SRCS))60 libc.TSRC.386 += $(addprefix src/libc/msun/i387/,$(ARCH_SRCS)) 61 61 libc.TSRC += $(MSUN_SRCS) 62 62 -
TabularUnified trunk/libc/src/libc/process/process.smak ¶
r2444 r2446 1 libc.TSRC.386 += $(wildcard src/lib /process/386/*.s)2 libc.TSRC += $(wildcard src/lib /process/*.c)1 libc.TSRC.386 += $(wildcard src/libc/process/386/*.s) 2 libc.TSRC += $(wildcard src/libc/process/*.c) -
TabularUnified trunk/libc/src/libc/startup/startup.smak ¶
r2444 r2446 1 libc.TSRC += $(filter-out %gmon.c,$(wildcard src/lib /startup/*.c)) \2 src/lib /startup/386/mcountstub.s1 libc.TSRC += $(filter-out %gmon.c,$(wildcard src/libc/startup/*.c)) \ 2 src/libc/startup/386/mcountstub.s 3 3 4 4 # Build startup object files separately (not included in libraries) 5 5 .MODULE := 6 6 .TKIND := aout 7 .TSRC.386 := $(addprefix src/lib /startup/386/,crt0.s dll0.s)7 .TSRC.386 := $(addprefix src/libc/startup/386/,crt0.s dll0.s) 8 8 .TSRC := $(.TSRC.$(CPU)) 9 9 .INSDIR := lib/ 10 10 include common.smak 11 .OBJS += $(addprefix $.omf/src/lib /startup/386/,crt0.obj dll0.obj)11 .OBJS += $(addprefix $.omf/src/libc/startup/386/,crt0.obj dll0.obj) 12 12 13 13 # define what to do 14 14 define def_startup 15 $$.aout/src/lib /startup/386/crt0$(i).o: src/lib/startup/386/crt0.s15 $$.aout/src/libc/startup/386/crt0$(i).o: src/libc/startup/386/crt0.s 16 16 $$(call DO.COMPILE.s, $(subst wild, -DARGS_WILD, $(subst resp, -DARGS_RESP, $(subst noux, -DNOUNIX,$(subst nofork, -DNOFORK,$(subst hi, -DHIGHMEM, $i)))))) 17 17 18 $$.omf/src/lib /startup/386/crt0$(i).obj: $$.aout/src/lib/startup/386/crt0$(i).o18 $$.omf/src/libc/startup/386/crt0$(i).obj: $$.aout/src/libc/startup/386/crt0$(i).o 19 19 $$(call DO.EMXOMF,-m__text) 20 $(eval .OBJS += $.aout/src/lib /startup/386/crt0$(i).o \21 $.omf/src/lib /startup/386/crt0$(i).obj)20 $(eval .OBJS += $.aout/src/libc/startup/386/crt0$(i).o \ 21 $.omf/src/libc/startup/386/crt0$(i).obj) 22 22 23 23 ifeq ($(subst resp,,$(subst wild,,$(i))),$(i)) 24 $$.aout/src/lib /startup/386/dll0$(i).o: src/lib/startup/386/dll0.s24 $$.aout/src/libc/startup/386/dll0$(i).o: src/libc/startup/386/dll0.s 25 25 $$(call DO.COMPILE.s, $(subst wild, -DARGS_WILD, $(subst resp, -DARGS_RESP, $(subst noux, -DNOUNIX,$(subst nofork, -DNOFORK,$(subst hi, -DHIGHMEM, $i)))))) 26 26 27 $$.omf/src/lib /startup/386/dll0$(i).obj: $$.aout/src/lib/startup/386/dll0$(i).o27 $$.omf/src/libc/startup/386/dll0$(i).obj: $$.aout/src/libc/startup/386/dll0$(i).o 28 28 $$(call DO.EMXOMF,-l__text) 29 $$(eval .OBJS += $.aout/src/lib /startup/386/dll0$(i).o \30 $.omf/src/lib /startup/386/dll0$(i).obj)29 $$(eval .OBJS += $.aout/src/libc/startup/386/dll0$(i).o \ 30 $.omf/src/libc/startup/386/dll0$(i).obj) 31 31 endif 32 32 endef … … 81 81 startup: $(.DIRS) $(.OBJS) 82 82 83 # This rule doesn't work if the aout/src/lib /startup/ directory does not83 # This rule doesn't work if the aout/src/libc/startup/ directory does not 84 84 # exist when make is started, and is ignored because of this (shit!) 85 #$.omf/src/lib /startup/%.obj: $.aout/src/lib/startup/%.o85 #$.omf/src/libc/startup/%.obj: $.aout/src/libc/startup/%.o 86 86 # $(call DO.EMXOMF,-m__text) 87 87 88 88 # Additional dependencies to help stupid make. 89 $.omf/src/lib /startup/386/dll0.obj: $.aout/src/lib/startup/386/dll0.o89 $.omf/src/libc/startup/386/dll0.obj: $.aout/src/libc/startup/386/dll0.o 90 90 $(call DO.EMXOMF,-l__text) 91 $.omf/src/lib /startup/386/crt0.obj: $.aout/src/lib/startup/386/crt0.o91 $.omf/src/libc/startup/386/crt0.obj: $.aout/src/libc/startup/386/crt0.o 92 92 $(call DO.EMXOMF,-m__text) 93 $.omf/src/lib /startup/386/res0.obj: $.aout/src/lib/startup/386/res0.o93 $.omf/src/libc/startup/386/res0.obj: $.aout/src/libc/startup/386/res0.o 94 94 $(call DO.EMXOMF,-m__text) 95 95 -
TabularUnified trunk/libc/src/libc/sys/sys.smak ¶
r2444 r2446 1 libc.TSRC.386 += $(wildcard src/lib /sys/386/*.s)2 libc.TSRC += $(wildcard src/lib /sys/*.c)1 libc.TSRC.386 += $(wildcard src/libc/sys/386/*.s) 2 libc.TSRC += $(wildcard src/libc/sys/*.c) 3 3 4 .TCF.src/lib /sys/heapsize.c := -DHEAPSIZE=0x20000004 .TCF.src/libc/sys/heapsize.c := -DHEAPSIZE=0x2000000
Note:
See TracChangeset
for help on using the changeset viewer.