Subversion Repositories HelenOS

Rev

Rev 3578 | Rev 3667 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3578 Rev 3579
Line 45... Line 45...
45
		   -j .rela -j .reloc --target=$(FORMAT) hello.so hello.efi
45
		   -j .rela -j .reloc --target=$(FORMAT) hello.so hello.efi
46
	$(OBJDUMP) -d hello.efi > hello.disass  
46
	$(OBJDUMP) -d hello.efi > hello.disass  
47
 
47
 
48
#When selected first lines or second lines, select if image is linked into hello or not - usefull for network boot
48
#When selected first lines or second lines, select if image is linked into hello or not - usefull for network boot
49
#hello.so: hello.o image.o 
49
#hello.so: hello.o image.o 
50
hello.so: hello.o
50
hello.so: hello.o image.bin
51
#	$(LD) $(LDFLAGS) -Map hello.map hello.o image.o -o hello.so $(LOADLIBES) #link image inside hello
51
#	$(LD) $(LDFLAGS) -Map hello.map hello.o image.o -o hello.so $(LOADLIBES) #link image inside hello
52
	$(LD) $(LDFLAGS) -Map hello.map hello.o -o hello.so $(LOADLIBES) #dont link image inside hello
52
	$(LD) $(LDFLAGS) -Map hello.map hello.o -o hello.so $(LOADLIBES) #dont link image inside hello
53
 
53
 
54
hello.o: hello.c
54
hello.o: hello.c
55
	$(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -c hello.c -o hello.o
55
	$(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -c hello.c -o hello.o
56
 
56
 
-
 
57
 
-
 
58
image.bin: ../../image.boot 
-
 
59
	$(OBJCOPY) -O binary ../../image.boot image.bin
-
 
60
 
-
 
61
 
57
image.o: ../../image.boot mkimage
62
image.o: ../../image.boot mkimage
58
	$(OBJCOPY) -O binary ../../image.boot image.bin
63
	$(OBJCOPY) -O binary ../../image.boot image.bin
59
	./mkimage
64
	./mkimage
60
	$(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -c image.c -o image.o
65
	$(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -c image.c -o image.o
61
#	$(OBJCOPY) -I binary -O elf64-ia64-little -B ia64  image.bin image.o
66
#	$(OBJCOPY) -I binary -O elf64-ia64-little -B ia64  image.bin image.o