From ff19a98df469891859bb658019271d5a34645571 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Fri, 24 Apr 2020 16:34:32 +0200 Subject: [PATCH] add cpp target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 2fbe7c7..32613a8 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,10 @@ c: gcc -c c/main.c -I$(OCAML_ROOT) -o $(BUILD)/main.o gcc -o $(BUILD)/test.exe $(BUILD)/main.o -L$(OCAML_ROOT) -L$(BUILD) -lfoo -lm -ldl -lasmrun +cpp: + g++ -c c/main.cpp -I$(OCAML_ROOT) -o $(BUILD)/main.o + g++ -o $(BUILD)/test.exe $(BUILD)/main.o -L$(OCAML_ROOT) -L$(BUILD) -lfoo -lm -ldl -lasmrun + run: $(BUILD)/test.exe