Changeset 388


Ignore:
Timestamp:
Nov 28, 2008, 6:01:34 PM (17 years ago)
Author:
cinc
Message:

NOM compiles now on FreeBSD. The fame goes to gahr for the patches.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.kmk

    r326 r388  
    1717# Include the sub-makefiles.
    1818#
    19 include gc6.8/Makefile.kmk
     19ifneq ($(BUILD_TARGET),freebsd)
     20 include gc6.8/Makefile.kmk
     21endif
    2022include idl-compiler/Makefile.kmk
    2123include nom/Makefile.kmk
    2224include tests/Makefile.kmk
     25include nomc/Makefile.kmk
    2326
    2427#
  • trunk/idl-compiler/ih-emitter_c/ih_file_emitter.c

    r376 r388  
    550550  fprintf(fh, "#elif defined(__linux__)\n");
    551551  fprintf(fh, "# warning FIXME: Check out GC/so on linux.\n");
     552  fprintf(fh, "#elif defined(__FreeBSD__)\n");
     553  fprintf(fh, "# warning FIXME: Check out GC/so on FreeBSD\n");
    552554  fprintf(fh, "#else\n");
    553555  fprintf(fh, "#error DLL must be registered with the garbage collector!\n");
  • trunk/nom/Makefile.kmk

    r353 r388  
    5858ifeq ($(BUILD_TARGET),darwin_)
    5959           libnomobjtk_LIBS += /opt/local/lib/libgc.dylib
     60endif
     61ifeq ($(BUILD_TARGET),freebsd)
     62           libnomobjtk_LIBS += /usr/local/lib/libgc$(SUFF_DLL)
    6063else
    61  libnomobjtk_LIBS += $(PATH_LIB)/libnomgc$(SUFF_DLL)
     64          libnomobjtk_LIBS += $(PATH_LIB)/libnomgc$(SUFF_DLL)
    6265endif
    6366
  • trunk/nom/src/nombuildclass.c

    r331 r388  
    4646#include <string.h>
    4747#include <stdlib.h>
    48 #if !defined(_MSC_VER)
     48#if !defined(_MSC_VER) && !defined(__FreeBSD__)
    4949# include <alloca.h>
    5050#endif
Note: See TracChangeset for help on using the changeset viewer.