Changeset 10568


Ignore:
Timestamp:
Aug 26, 2008, 4:11:07 AM (11 years ago)
Author:
gb
Message:

real version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/win64/Makefile

    r8551 r10568  
    2525ASFLAGS = -g --64
    2626M4FLAGS = -DWIN64 -DWINDOWS -DX86 -DX8664 -DHAVE_TLS -DEMUTLS
    27 CDEFINES = -DWIN64 -DWINDOWS -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE -DHAVE_TLS -DEMUTLS #-DDISABLE_EGC
     27CDEFINES = -DWIN64 -DWINDOWS -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE -DHAVE_TLS -DEMUTLS
    2828CDEBUG = -g
    29 COPT = -O0
     29COPT = -O2
    3030
    3131# If the linker supports a "--hash-style=" option, use traditional
     
    3939endif
    4040
     41# There may be some confusion about whether or not C symbols have
     42# leading underscores or not.  The assembler sources seem to
     43# expect them to and mingw import libs seem to use them, but
     44# it's not clear whether or not native win64 libraries use this
     45# convention (and I'm not sure whether the Cygwin-hosted win64
     46# toolchain behaves the same was as when hosted on Linux ...
     47# The compiler default seems to be to use them; if we want to
     48# suppress their use, uncomment the following:
     49
     50SUPPRESS_UNDERSCORES=#-fno-leading-underscore
    4151
    4252.s.o:
    4353        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    4454.c.o:
    45         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -fno-leading-underscore -m64 -o $@
     55        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) ${SUPPRESS_UNDERSCORES} -m64 -o $@
    4656
    4757SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
     
    4959
    5060COBJ  = pmcl-kernel.o gc-common.o x86-gc.o bits.o  x86-exceptions.o \
    51         image.o thread_manager.o lisp-debug.o memory.o
     61        image.o thread_manager.o lisp-debug.o memory.o windows-calls.o
    5262
    5363DEBUGOBJ = lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o
     
    6676
    6777
    68 OSLIBS =
     78OSLIBS = -lpsapi -lws2_32
    6979
    7080
    71 ../../wx86cl64.exe:     $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile
    72         $(CC) -m64 $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -o $@ $(USE_LINK_MAP) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
     81../../wx86cl64.exe:     $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile pei-x86-64.x
     82        $(CC) -Wl,--image-base=0x10000 -Wl,-script=pei-x86-64.x -m64 $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -o $@ $(USE_LINK_MAP) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
    7383
    7484
Note: See TracChangeset for help on using the changeset viewer.