Skip to content

Commit

Permalink
Merge remote branch 'ashgti/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
atrodo committed Oct 30, 2010
2 parents 037c455 + 2af9244 commit 52758a1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
@@ -1,11 +1,30 @@
PERL = perl
HEADERS = config.h lorito.h microcode.h interp.h loader.h pmc.h internal_pmc.h
COMPILED = main.o interp.o core.o loader.o pmc.o internal_pmc.o
TEST_FILES = $(wildcard t/*.t)
COMPILED_TESTS = $(patsubst %.t,%.ito,$(TEST_FILES))

%.o: %.c $(HEADERS)
$(CC) -g -c $(CPPFLAGS) $(CFLAGS) -o $@ $<

lorito: $(COMPILED) $(HEADERS)
$(CC) -g $(CFLAGS) $(CC_WARN) -o $@ $(COMPILED)

.PHONY: CLEAN
clean:
rm lorito $(COMPILED)

%.ito: %.t
$(PERL) lasm.pl < $< > $@

.PHONY: help
help:
@echo "Available Targets:"
@echo " lorito: The experimental lorito interp"
@echo " clean: Remove the compile time objects"
@echo " test: Run the test suite"

.PHONY: test
test: $(COMPILED_TESTS)
./lorito t/00_sanity.ito
./lorito t/90_fib.ito

0 comments on commit 52758a1

Please sign in to comment.