add cpp target
This commit is contained in:
		
							parent
							
								
									c785089647
								
							
						
					
					
						commit
						ff19a98df4
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue