Skip to content

Instantly share code, notes, and snippets.

@Benabik
Created August 13, 2013 18:07
Show Gist options
  • Save Benabik/6223922 to your computer and use it in GitHub Desktop.
Save Benabik/6223922 to your computer and use it in GitHub Desktop.
Makefile generated on OS X for MoarVM/MoarVM
CC = clang
LD = clang
AR = ar
MAKE = make
RM = rm -f
CAT = cat
CFLAGS = -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -Weverything -D_DARWIN_USE_64_BIT_INODE=1
CINCLUDES = -I3rdparty/apr/include \
-I3rdparty/libuv/include \
-I3rdparty/libuv/src \
-I3rdparty/libatomic_ops/src \
-I3rdparty/libtommath \
-I3rdparty/sha1 \
-I3rdparty/linenoise \
-I3rdparty \
-Isrc
LDFLAGS = -g
LDLIBS = 3rdparty/dyncall/dyncall/libdyncall_s.a 3rdparty/sha1/libsha1.a 3rdparty/dyncall/dyncallback/libdyncallback_s.a 3rdparty/linenoise/liblinenoise.a 3rdparty/libtommath/libtommath.a 3rdparty/libatomic_ops/src/libatomic_ops.a 3rdparty/apr/.libs/libapr-1.a 3rdparty/libuv/libuv.a 3rdparty/dyncall/dynload/libdynload_s.a -framework ApplicationServices -framework CoreServices -framework Foundation
ARFLAGS = rcs
OBJECTS = src/main.o \
src/core/args.o \
src/core/exceptions.o \
src/core/interp.o \
src/core/threadcontext.o \
src/core/compunit.o \
src/core/bytecode.o \
src/core/frame.o \
src/core/validation.o \
src/core/bytecodedump.o \
src/core/threads.o \
src/core/ops.o \
src/core/hll.o \
src/core/loadbytecode.o \
src/core/coerce.o \
src/gc/orchestrate.o \
src/gc/allocation.o \
src/gc/worklist.o \
src/gc/roots.o \
src/io/fileops.o \
src/io/socketops.o \
src/io/dirops.o \
src/io/procops.o \
src/gc/collect.o \
src/gc/gen2.o \
src/gc/wb.o \
src/6model/reprs.o \
src/6model/reprconv.o \
src/6model/containers.o \
src/6model/reprs/MVMString.o \
src/6model/reprs/MVMArray.o \
src/6model/reprs/MVMHash.o \
src/6model/reprs/MVMCFunction.o \
src/6model/reprs/KnowHOWREPR.o \
src/6model/reprs/KnowHOWAttributeREPR.o \
src/6model/reprs/P6str.o \
src/6model/reprs/P6opaque.o \
src/6model/reprs/MVMCode.o \
src/6model/reprs/MVMOSHandle.o \
src/6model/reprs/P6int.o \
src/6model/reprs/P6num.o \
src/6model/reprs/Uninstantiable.o \
src/6model/reprs/HashAttrStore.o \
src/6model/reprs/MVMThread.o \
src/6model/reprs/MVMIter.o \
src/6model/reprs/MVMContext.o \
src/6model/reprs/SCRef.o \
src/6model/reprs/Lexotic.o \
src/6model/reprs/MVMCallCapture.o \
src/6model/reprs/P6bigint.o \
src/6model/reprs/NFA.o \
src/6model/reprs/MVMException.o \
src/6model/6model.o \
src/6model/bootstrap.o \
src/6model/sc.o \
src/6model/serialization.o \
src/mast/compiler.o \
src/strings/ascii.o \
src/strings/utf8.o \
src/strings/ops.o \
src/strings/unicode.o \
src/strings/latin1.o \
src/strings/utf16.o \
src/math/bigintops.o \
src/moarvm.o
HEADERS = src/moarvm.h \
src/types.h \
src/6model/6model.h \
src/core/instance.h \
src/core/threadcontext.h \
src/core/args.h \
src/core/exceptions.h \
src/core/interp.h \
src/core/frame.h \
src/core/compunit.h \
src/core/bytecode.h \
src/core/ops.h \
src/core/validation.h \
src/core/bytecodedump.h \
src/core/threads.h \
src/core/hll.h \
src/core/loadbytecode.h \
src/core/coerce.h \
src/io/fileops.h \
src/io/socketops.h \
src/io/dirops.h \
src/io/procops.h \
src/gc/orchestrate.h \
src/gc/allocation.h \
src/gc/worklist.h \
src/gc/collect.h \
src/gc/roots.h \
src/gc/gen2.h \
src/gc/wb.h \
src/6model/reprs.h \
src/6model/reprconv.h \
src/6model/bootstrap.h \
src/6model/serialization.h \
src/6model/containers.h \
src/6model/reprs/MVMString.h \
src/6model/reprs/MVMArray.h \
src/6model/reprs/MVMHash.h \
src/6model/reprs/MVMCFunction.h \
src/6model/reprs/KnowHOWREPR.h \
src/6model/reprs/KnowHOWAttributeREPR.h \
src/6model/reprs/P6opaque.h \
src/6model/reprs/MVMCode.h \
src/6model/reprs/P6str.h \
src/6model/reprs/MVMOSHandle.h \
src/6model/reprs/P6int.h \
src/6model/reprs/P6num.h \
src/6model/reprs/Uninstantiable.h \
src/6model/reprs/HashAttrStore.h \
src/6model/reprs/MVMThread.h \
src/6model/reprs/MVMIter.h \
src/6model/reprs/MVMContext.h \
src/6model/reprs/SCRef.h \
src/6model/reprs/Lexotic.h \
src/6model/reprs/MVMCallCapture.h \
src/6model/reprs/P6bigint.h \
src/6model/reprs/NFA.h \
src/6model/reprs/MVMException.h \
src/6model/sc.h \
src/strings/unicode_gen.h \
src/strings/ascii.h \
src/strings/utf8.h \
src/strings/ops.h \
src/strings/unicode.h \
src/strings/latin1.h \
src/strings/utf16.h \
src/math/bigintops.h \
3rdparty/uthash.h \
src/gen/config.h \
3rdparty/apr/include/apr.h
UV_UNIX = 3rdparty/libuv/src/fs-poll.o \
3rdparty/libuv/src/inet.o \
3rdparty/libuv/src/uv-common.o \
3rdparty/libuv/src/version.o \
3rdparty/libuv/src/unix/async.o \
3rdparty/libuv/src/unix/core.o \
3rdparty/libuv/src/unix/dl.o \
3rdparty/libuv/src/unix/fs.o \
3rdparty/libuv/src/unix/getaddrinfo.o \
3rdparty/libuv/src/unix/internal.h \
3rdparty/libuv/src/unix/loop-watcher.o \
3rdparty/libuv/src/unix/loop.o \
3rdparty/libuv/src/unix/pipe.o \
3rdparty/libuv/src/unix/poll.o \
3rdparty/libuv/src/unix/process.o \
3rdparty/libuv/src/unix/signal.o \
3rdparty/libuv/src/unix/stream.o \
3rdparty/libuv/src/unix/tcp.o \
3rdparty/libuv/src/unix/thread.o \
3rdparty/libuv/src/unix/threadpool.o \
3rdparty/libuv/src/unix/timer.o \
3rdparty/libuv/src/unix/tty.o \
3rdparty/libuv/src/unix/udp.o
UV_LINUX = 3rdparty/libuv/src/unix/linux-core.o \
3rdparty/libuv/src/unix/linux-inotify.o \
3rdparty/libuv/src/unix/linux-syscalls.o \
3rdparty/libuv/src/unix/proctitle.o \
$(UV_UNIX)
UV_OPENBSD = 3rdparty/libuv/src/unix/openbsd.c \
3rdparty/libuv/src/unix/kqueue.c \
$(UV_UNIX)
UV_NETBSD = 3rdparty/libuv/src/unix/netbsd.c \
3rdparty/libuv/src/unix/kqueue.c \
$(UV_UNIX)
UV_FREEBSD = 3rdparty/libuv/src/unix/freebsd.c \
3rdparty/libuv/src/unix/kqueue.c \
$(UV_UNIX)
UV_DARWIN = 3rdparty/libuv/src/unix/darwin.c \
3rdparty/libuv/src/unix/darwin-proctitle.c \
3rdparty/libuv/src/unix/fsevents.c \
3rdparty/libuv/src/unix/kqueue.c \
3rdparty/libuv/src/unix/proctitle.c \
$(UV_UNIX)
UV_OBJECTS = $(UV_DARWIN)
TOM_OBJECTS = 3rdparty/libtommath/bn_error.o 3rdparty/libtommath/bn_fast_mp_invmod.o 3rdparty/libtommath/bn_fast_mp_montgomery_reduce.o 3rdparty/libtommath/bn_fast_s_mp_mul_digs.o 3rdparty/libtommath/bn_fast_s_mp_mul_high_digs.o 3rdparty/libtommath/bn_fast_s_mp_sqr.o 3rdparty/libtommath/bn_mp_2expt.o 3rdparty/libtommath/bn_mp_abs.o 3rdparty/libtommath/bn_mp_add.o 3rdparty/libtommath/bn_mp_add_d.o 3rdparty/libtommath/bn_mp_addmod.o 3rdparty/libtommath/bn_mp_and.o 3rdparty/libtommath/bn_mp_clamp.o 3rdparty/libtommath/bn_mp_clear.o 3rdparty/libtommath/bn_mp_clear_multi.o 3rdparty/libtommath/bn_mp_cmp.o 3rdparty/libtommath/bn_mp_cmp_d.o 3rdparty/libtommath/bn_mp_cmp_mag.o 3rdparty/libtommath/bn_mp_cnt_lsb.o 3rdparty/libtommath/bn_mp_copy.o 3rdparty/libtommath/bn_mp_count_bits.o 3rdparty/libtommath/bn_mp_div.o 3rdparty/libtommath/bn_mp_div_2.o 3rdparty/libtommath/bn_mp_div_2d.o 3rdparty/libtommath/bn_mp_div_3.o 3rdparty/libtommath/bn_mp_div_d.o 3rdparty/libtommath/bn_mp_dr_is_modulus.o 3rdparty/libtommath/bn_mp_dr_reduce.o 3rdparty/libtommath/bn_mp_dr_setup.o 3rdparty/libtommath/bn_mp_exch.o 3rdparty/libtommath/bn_mp_expt_d.o 3rdparty/libtommath/bn_mp_exptmod.o 3rdparty/libtommath/bn_mp_exptmod_fast.o 3rdparty/libtommath/bn_mp_exteuclid.o 3rdparty/libtommath/bn_mp_fread.o 3rdparty/libtommath/bn_mp_fwrite.o 3rdparty/libtommath/bn_mp_gcd.o 3rdparty/libtommath/bn_mp_get_int.o 3rdparty/libtommath/bn_mp_get_long.o 3rdparty/libtommath/bn_mp_grow.o 3rdparty/libtommath/bn_mp_init.o 3rdparty/libtommath/bn_mp_init_copy.o 3rdparty/libtommath/bn_mp_init_multi.o 3rdparty/libtommath/bn_mp_init_set.o 3rdparty/libtommath/bn_mp_init_set_int.o 3rdparty/libtommath/bn_mp_init_size.o 3rdparty/libtommath/bn_mp_invmod.o 3rdparty/libtommath/bn_mp_invmod_slow.o 3rdparty/libtommath/bn_mp_is_square.o 3rdparty/libtommath/bn_mp_jacobi.o 3rdparty/libtommath/bn_mp_karatsuba_mul.o 3rdparty/libtommath/bn_mp_karatsuba_sqr.o 3rdparty/libtommath/bn_mp_lcm.o 3rdparty/libtommath/bn_mp_lshd.o 3rdparty/libtommath/bn_mp_mod.o 3rdparty/libtommath/bn_mp_mod_2d.o 3rdparty/libtommath/bn_mp_mod_d.o 3rdparty/libtommath/bn_mp_montgomery_calc_normalization.o 3rdparty/libtommath/bn_mp_montgomery_reduce.o 3rdparty/libtommath/bn_mp_montgomery_setup.o 3rdparty/libtommath/bn_mp_mul.o 3rdparty/libtommath/bn_mp_mul_2.o 3rdparty/libtommath/bn_mp_mul_2d.o 3rdparty/libtommath/bn_mp_mul_d.o 3rdparty/libtommath/bn_mp_mulmod.o 3rdparty/libtommath/bn_mp_n_root.o 3rdparty/libtommath/bn_mp_neg.o 3rdparty/libtommath/bn_mp_or.o 3rdparty/libtommath/bn_mp_prime_fermat.o 3rdparty/libtommath/bn_mp_prime_is_divisible.o 3rdparty/libtommath/bn_mp_prime_is_prime.o 3rdparty/libtommath/bn_mp_prime_miller_rabin.o 3rdparty/libtommath/bn_mp_prime_next_prime.o 3rdparty/libtommath/bn_mp_prime_rabin_miller_trials.o 3rdparty/libtommath/bn_mp_prime_random_ex.o 3rdparty/libtommath/bn_mp_radix_size.o 3rdparty/libtommath/bn_mp_radix_smap.o 3rdparty/libtommath/bn_mp_rand.o 3rdparty/libtommath/bn_mp_read_radix.o 3rdparty/libtommath/bn_mp_read_signed_bin.o 3rdparty/libtommath/bn_mp_read_unsigned_bin.o 3rdparty/libtommath/bn_mp_reduce.o 3rdparty/libtommath/bn_mp_reduce_2k.o 3rdparty/libtommath/bn_mp_reduce_2k_l.o 3rdparty/libtommath/bn_mp_reduce_2k_setup.o 3rdparty/libtommath/bn_mp_reduce_2k_setup_l.o 3rdparty/libtommath/bn_mp_reduce_is_2k.o 3rdparty/libtommath/bn_mp_reduce_is_2k_l.o 3rdparty/libtommath/bn_mp_reduce_setup.o 3rdparty/libtommath/bn_mp_rshd.o 3rdparty/libtommath/bn_mp_set.o 3rdparty/libtommath/bn_mp_set_int.o 3rdparty/libtommath/bn_mp_set_long.o 3rdparty/libtommath/bn_mp_shrink.o 3rdparty/libtommath/bn_mp_signed_bin_size.o 3rdparty/libtommath/bn_mp_sqr.o 3rdparty/libtommath/bn_mp_sqrmod.o 3rdparty/libtommath/bn_mp_sqrt.o 3rdparty/libtommath/bn_mp_sub.o 3rdparty/libtommath/bn_mp_sub_d.o 3rdparty/libtommath/bn_mp_submod.o 3rdparty/libtommath/bn_mp_to_signed_bin.o 3rdparty/libtommath/bn_mp_to_signed_bin_n.o 3rdparty/libtommath/bn_mp_to_unsigned_bin.o 3rdparty/libtommath/bn_mp_to_unsigned_bin_n.o 3rdparty/libtommath/bn_mp_toom_mul.o 3rdparty/libtommath/bn_mp_toom_sqr.o 3rdparty/libtommath/bn_mp_toradix.o 3rdparty/libtommath/bn_mp_toradix_n.o 3rdparty/libtommath/bn_mp_unsigned_bin_size.o 3rdparty/libtommath/bn_mp_xor.o 3rdparty/libtommath/bn_mp_zero.o 3rdparty/libtommath/bn_prime_tab.o 3rdparty/libtommath/bn_reverse.o 3rdparty/libtommath/bn_s_mp_add.o 3rdparty/libtommath/bn_s_mp_exptmod.o 3rdparty/libtommath/bn_s_mp_mul_digs.o 3rdparty/libtommath/bn_s_mp_mul_high_digs.o 3rdparty/libtommath/bn_s_mp_sqr.o 3rdparty/libtommath/bn_s_mp_sub.o 3rdparty/libtommath/bncore.o
.SUFFIXES: .c .o
moarvm: $(OBJECTS) 3rdparty/dyncall/dyncall/libdyncall_s.a 3rdparty/sha1/libsha1.a 3rdparty/dyncall/dyncallback/libdyncallback_s.a 3rdparty/linenoise/liblinenoise.a 3rdparty/libtommath/libtommath.a 3rdparty/libatomic_ops/src/libatomic_ops.a 3rdparty/apr/.libs/libapr-1.a 3rdparty/libuv/libuv.a 3rdparty/dyncall/dynload/libdynload_s.a
$(LD) -o$@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
apr: 3rdparty/apr/.libs/libapr-1.a
libuv: 3rdparty/libuv/libuv.a
dyncall: 3rdparty/dyncall/dyncall/libdyncall_s.a
$(OBJECTS): $(HEADERS)
.c.o:
$(CC) -c $(CFLAGS) $(CINCLUDES) -o$@ $*.c
src/strings/unicode.c: src/strings/unicode_db.c src/strings/unicode_ops.c
$(CAT) src/strings/unicode_db.c >$@
$(CAT) src/strings/unicode_ops.c >>$@
3rdparty/apr/include/apr.h: 3rdparty/apr/.libs/libapr-1.a
3rdparty/apr/.libs/libapr-1.a:
cd 3rdparty/apr && CC='$(CC)' CFLAGS='$(CFLAGS)' ./configure --disable-shared && $(MAKE)
3rdparty/libuv/libuv.a: $(UV_DARWIN)
$(AR) $(ARFLAGS) $@ $(UV_OBJECTS)
3rdparty/libatomic_ops/src/libatomic_ops.a:
cd 3rdparty/libatomic_ops && CC='$(CC)' CFLAGS='$(CFLAGS)' ./configure && $(MAKE)
3rdparty/libtommath/libtommath.a: $(TOM_OBJECTS)
$(AR) $(ARFLAGS) $@ 3rdparty/libtommath/*.o
3rdparty/sha1/libsha1.a: 3rdparty/sha1/sha1.o
$(AR) $(ARFLAGS) $@ 3rdparty/sha1/*.o
3rdparty/linenoise/liblinenoise.a: 3rdparty/linenoise/linenoise.o
$(AR) $(ARFLAGS) $@ 3rdparty/linenoise/*.o
3rdparty/dyncall/dyncall/libdyncall_s.a:
cd 3rdparty/dyncall && ./configure2 && CC='$(CC)' CFLAGS='$(CFLAGS)' $(MAKE) -f Makefile
3rdparty/dyncall/dyncallback/libdyncallback_s.a 3rdparty/dyncall/dynload/libdynload_s.a: 3rdparty/dyncall/dyncall/libdyncall_s.a
clean:
-$(RM) $(OBJECTS)
@:
-cd 3rdparty/apr && $(MAKE) distclean
-$(RM) 3rdparty/libuv/libuv.a $(UV_OBJECTS)
-cd 3rdparty/libatomic_ops && $(MAKE) distclean
-$(RM) 3rdparty/libtommath/libtommath.a 3rdparty/libtommath/*.o
-$(RM) 3rdparty/sha1/libsha1.a 3rdparty/sha1/*.o
-$(RM) 3rdparty/linenoise/liblinenoise.a 3rdparty/linenoise/*.o
-cd 3rdparty/dyncall && $(MAKE) -f Makefile clean
realclean: clean
-$(RM) moarvm
-$(RM) Makefile src/gen/config.h src/strings/unicode.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment