diff interps/Makefile @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/interps/Makefile	Sun Dec 09 19:30:08 2012 +0000
@@ -0,0 +1,121 @@
+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