Browse Source
			
			
			add makefile to support multiple C files (#1195)
			
				* tcc-based vscode project for windows
Signed-off-by: misterpah <misterpah@gmail.com>
* add makefile to support multiple C files
			
			
				pull/1197/head
			
			
		 
		
			
				
					
						 pah arif
					
					5 years ago
						pah arif
					
					5 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 4AEE18F83AFDEB23
				  	
				  
				
			
		
		
		
	
		
			  3 changed files with 
21 additions and 
1 deletions
			
		 
		
			
				- 
					
					
					 
					projects/VSCode_tcc_win/.vscode/tasks.json
				
- 
					
					
					 
					projects/VSCode_tcc_win/Makefile
				
- 
					
					
					 
					projects/VSCode_tcc_win/README.md
				
					
					
						
							
								
									
										
											
												
	
		
			
				|  |  | @ -16,7 +16,10 @@ | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | "label": "build & run", | 
		
	
		
			
			|  |  |  | "type": "shell", | 
		
	
		
			
			|  |  |  | "command": "tcc.exe ${workspaceFolder}\\${fileBasename} -o ${workspaceFolder}\\${fileBasenameNoExtension}.exe -std=c99 -Wall -lmsvcrt -lraylib -lopengl32 -lgdi32 -lkernel32 -lshell32 -luser32 -lwinmm -Wl,-subsystem=gui && ${fileBasenameNoExtension}.exe", | 
		
	
		
			
			|  |  |  | "command": "make.exe all workplaceFolder=${workspaceFolder} outputExe=${workspaceFolderBasename}.exe", | 
		
	
		
			
			|  |  |  | "args":[ | 
		
	
		
			
			|  |  |  | "&& ${workspaceFolderBasename}.exe", | 
		
	
		
			
			|  |  |  | ], | 
		
	
		
			
			|  |  |  | "options": { | 
		
	
		
			
			|  |  |  | "env":{ | 
		
	
		
			
			|  |  |  | "PATH" : "C:\\raylib\\tcc\\;%PATH%" | 
		
	
	
		
			
				|  |  |  | 
		
	
											
										
									
								
							 
						
					 
				 
			
		
		
			
				
					
					
						
							
								
									
										
											
												
	
		
			
				|  |  | @ -0,0 +1,12 @@ | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | MAIN_CFILE = main.c | 
		
	
		
			
			|  |  |  | SUPPORT_CFILES = | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | #************************************************************************************************** | 
		
	
		
			
			|  |  |  | # raylib makefile for TCC | 
		
	
		
			
			|  |  |  | #************************************************************************************************** | 
		
	
		
			
			|  |  |  | CC = tcc | 
		
	
		
			
			|  |  |  | CFLAGS = -vv -std=c99 -Wall -lmsvcrt -lraylib -lopengl32 -lgdi32 -lkernel32 -lshell32 -luser32 -lwinmm -Wl,-subsystem=gui | 
		
	
		
			
			|  |  |  | OUTPUT = $(outputExe) | 
		
	
		
			
			|  |  |  | all: | 
		
	
		
			
			|  |  |  | $(CC) -o $(OUTPUT) $(MAIN_CFILE) $(SUPPORT_CFILES) $(CFLAGS) | 
		
	
											
										
									
								
							 
						
					 
				 
			
		
		
			
				
					
					
						
							
								
									
										
											
												
	
		
			
				|  |  | @ -0,0 +1,5 @@ | 
		
	
		
			
			|  |  |  | How to use | 
		
	
		
			
			|  |  |  | 1. Rename Folder | 
		
	
		
			
			|  |  |  | 2. open workspace (main.code-workspace) | 
		
	
		
			
			|  |  |  | 3. edit Makefile to include your files | 
		
	
		
			
			|  |  |  | 4. F5 and choose "build & run" |