add cpp target

master
Fabien Freling 2020-04-24 16:34:32 +02:00
parent c785089647
commit ff19a98df4
1 changed files with 4 additions and 0 deletions

View File

@ -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