Procházet zdrojové kódy

Added assembler and VM in submodule

Taddeus Kroes před 11 roky
rodič
revize
098b5ebc19
6 změnil soubory, kde provedl 15 přidání a 3 odebrání
  1. 2 0
      .gitignore
  2. 3 0
      .gitmodules
  3. 9 3
      Makefile
  4. binární
      bin/civas
  5. binární
      bin/civvm
  6. 1 0
      civic

+ 2 - 0
.gitignore

@@ -1,5 +1,7 @@
 ._*/
 bin/civcc
+bin/civas
+bin/civvm
 *.cmo
 *.cmi
 *.cmx

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "civic"]
+	path = civic
+	url = ssh://git@csa.science.uva.nl:11111/teaching/bachelor/civic.git

+ 9 - 3
Makefile

@@ -36,7 +36,7 @@ all: native-code
 types.ml: types.mli
 	cp $< $@
 
-check: all
+check: all $(CIVAS) $(CIVVM)
 	@cd test; \
 		CIVAS=../$(CIVAS) \
 		CIVVM=../$(CIVVM) \
@@ -61,11 +61,17 @@ myclean:
 	rm -f a.out $(DIST_TGT) $(TESTSUITE_TGT) $(TOOLCHAIN_TGT)
 
 cleaner: clean
-	rm -rf doc/$(RESULT)
+	rm -rf doc/$(RESULT) $(CIVAS) $(CIVVM)
 
 toolchain: $(TOOLCHAIN_TGT)
 
-$(TOOLCHAIN_TGT): all
+$(TOOLCHAIN_TGT): all $(CIVAS) $(CIVVM)
 	tar -czf $@ $(BIN_DIR)
 
+$(CIVAS): civic/as/civas
+	cp $< $@
+
+$(CIVVM): civic/vm/civvm
+	cp $< $@
+
 include OCamlMakefile

binární
bin/civas


binární
bin/civvm


+ 1 - 0
civic

@@ -0,0 +1 @@
+Subproject commit a97efb6ab92c0599b119778b38fc73f1154f3578