add cpp target

This commit is contained in:
Fabien Freling 2020-04-24 16:34:32 +02:00
parent c785089647
commit ff19a98df4

View file

@ -18,6 +18,10 @@ c:
gcc -c c/main.c -I$(OCAML_ROOT) -o $(BUILD)/main.o 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 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: run:
$(BUILD)/test.exe $(BUILD)/test.exe