Have Makefile create bin folder
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -5,5 +5,5 @@ OBJDIR=bin | |||||||
|  |  | ||||||
| # Use variables for source and object files | # Use variables for source and object files | ||||||
| ip-lookup: $(SRCDIR)/main.c | ip-lookup: $(SRCDIR)/main.c | ||||||
|  | 	@mkdir -p $(OBJDIR) | ||||||
| 	$(CC) -o $(OBJDIR)/ip-lookup $(SRCDIR)/main.c $(CFLAGS) | 	$(CC) -o $(OBJDIR)/ip-lookup $(SRCDIR)/main.c $(CFLAGS) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user