Keep files in their respective directories.
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -9,12 +9,12 @@ OBJ=kernel/kernel_entry.o kernel/kernel.o
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
all: os-image
 | 
					all: os-image
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os-image: boot/boot_sect.bin kernel.bin
 | 
					os-image: boot/boot_sect.bin kernel/kernel.bin
 | 
				
			||||||
	mkdir -p $(BIN)
 | 
						mkdir -p $(BIN)
 | 
				
			||||||
	cat $^ > $(BIN)/$@
 | 
						cat $^ > $(BIN)/$@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# build kernel binary file
 | 
					# build kernel binary file
 | 
				
			||||||
kernel.bin: $(OBJ)
 | 
					kernel/kernel.bin: $(OBJ)
 | 
				
			||||||
	$(LD) $(LDFLAGS) $^ -o $@
 | 
						$(LD) $(LDFLAGS) $^ -o $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%.o: %.c ${HEADERS}
 | 
					%.o: %.c ${HEADERS}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user