view interps/Makefile @ 6923:a66d8f61b2a7

<b_jonas> slashlearn one ring/One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them
author HackBot
date Sun, 21 Feb 2016 12:46:48 +0000
parents 859f9b4339e6
children
line wrap: on
line source

CC=gcc
CXX=g++
JAVAC=javac
GCJ=gcj
CFLAGS=-O2 -g
CXXFLAGS=$(CFLAGS)
LDFLAGS=

# Put language interpreters required by non-compiled interpreters here. This
# simply cheks when you make that these are installed, which is nice for fresh
# installs of EgoBot, since otherwise these would only trigger an error when
# somebody tries to run the relevant interpreter.
CHECK_INSTALLED=\
	/usr/bin/gforth \
	/usr/bin/ghc \
	/usr/bin/perl \
	/usr/bin/python

all: \
    1l/1l_a.bin \
    2l/2li.bin \
    adjust/adjust.bin \
    axo/axopp.0.1.0.bin \
    befunge/bef.bin \
    bf_txtgen/textgen.class \
    bfjoust/gearlance \
    boof/boof \
    cfunge/cfunge \
    c-intercal/inst/bin/ick \
    clc-intercal/inst/bin/sick \
    egobch/src/egobchi \
    egobf/src/egobfi32 \
    fukyorbrane/fukyorbrane \
    glass/glass \
    glypho/Glypho.class \
    kipple/cipple.bin \
    lazyk/lazy \
    malbolge/malbolge.bin \
    rail/rail \
    sadol/BDSM2 \
    sceql/sceql-0.1.bin \
    trigger/trigger.bin \
    udage01/switch.bin \
    underload/underload.bin \
    unlambda/unlambda.bin \
    installed_interpreters

installed_interpreters: $(CHECK_INSTALLED)

.SUFFIXES: .c .cc .cpp .bin

.c.bin:
	$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@

.cc.bin:
	$(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@

.cpp.bin:
	$(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@

bf_txtgen/textgen.class:
	cd bf_txtgen ; \
	$(JAVAC) textgen.java

bfjoust/gearlance:
	cd bfjoust ; \
	$(MAKE)

boof/boof:
	cd boof ; \
	$(MAKE)

cfunge/cfunge:
	cd cfunge ; \
	$(MAKE)

c-intercal/inst/bin/ick:
	cd c-intercal ; \
	./configure --prefix="`pwd`/inst" ; \
	$(MAKE) ; \
	$(MAKE) install

clc-intercal/inst/bin/sick:
	cd clc-intercal ; \
	perl Makefile.PL INSTALL_BASE="`pwd`/inst" ; \
	$(MAKE) ; \
	$(MAKE) install

egobch/src/egobchi:
	cd egobch ; \
	./configure ; \
	$(MAKE)

egobf/src/egobfi32:
	cd egobf ; \
	./configure ; \
	$(MAKE)

fukyorbrane/fukyorbrane:
	cd fukyorbrane ; \
	$(MAKE)

glass/glass:
	cd glass ; \
	$(MAKE)

glypho/Glypho.class:
	cd glypho ; \
	$(JAVAC) *.java

rail/rail:
	cd rail ; \
	$(CXX) $(CXXFLAGS) $(LDFLAGS) src/*.cpp -o rail

rhotor/rhotor-hi:
	cd rhotor ; \
	./build.sh

sadol/BDSM2:
	cd sadol ; \
	sh -x make.sh