diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-06 19:23:28 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-06 19:23:28 -0500 |
| commit | afde2df05daa178cf4d4bddccc0f27093416a9c2 (patch) | |
| tree | 3624fc9c2d3a3f74842dfbd670ca78f8786e0932 /cs/Makefile | |
| parent | f1b72c6a7b4ada599cbd5d3f2dad5c3dee191bd2 (diff) | |
| download | mal-afde2df05daa178cf4d4bddccc0f27093416a9c2.tar.gz mal-afde2df05daa178cf4d4bddccc0f27093416a9c2.zip | |
C#: step0_repl using de Icaza's getline.cs
Diffstat (limited to 'cs/Makefile')
| -rw-r--r-- | cs/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/cs/Makefile b/cs/Makefile new file mode 100644 index 0000000..c03e6c9 --- /dev/null +++ b/cs/Makefile @@ -0,0 +1,46 @@ +##################### + +TESTS = + +SOURCES = readline.h readline.c types.h types.c \ + reader.h reader.c printer.h printer.c \ + env.c core.h core.c interop.h interop.c \ + stepA_more.c + +##################### + +SRCS = step0_repl.cs +OBJS = $(SRCS:%.cs=%.exe) +BINS = $(OBJS:%.o=%) +OTHER_OBJS = getline.dll + +##################### + +all: $(BINS) mal.exe + +mal.exe: $(word $(words $(OBJS)),$(OBJS)) + cp $< $@ + +$(OTHER_OBJS): %.dll: %.cs + mcs -target:library -out:$@ $+ + +$(OBJS): %.exe: %.cs $(OTHER_OBJS) + mcs $(foreach lib,$(OTHER_OBJS),-r:$(lib)) $(@:%.exe=%.cs) + +#$(patsubst %.o,%,$(filter step%,$(OBJS))): $(OTHER_OBJS) +#$(BINS): %: %.o +# gcc $+ -o $@ $(LDFLAGS) + +clean: + rm -f $(OBJS) $(OTHER_OBJS) mal.exe + +.PHONY: stats tests $(TESTS) + +stats: $(SOURCES) + @wc $^ + +tests: $(TESTS) + +$(TESTS): + @echo "Running $@"; \ + ./$@ || exit 1; \ |
