Rev 8182 | Rev 9758 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8182 | Rev 8518 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | CC = kos32-gcc |
1 | CC = kos32-gcc |
2 | LD = kos32-ld |
2 | LD = kos32-ld |
Line 3... | Line 3... | ||
3 | 3 | ||
Line 4... | Line 4... | ||
4 | SDK_DIR = $(abspath ../..) |
4 | SDK_DIR = $(abspath ../..) |
Line 5... | Line 5... | ||
5 | 5 | ||
Line 6... | Line 6... | ||
6 | LDFLAGS = -call_shared -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds --image-base 0 |
6 | LDFLAGS = -static -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0 |
7 | 7 | ||
Line 16... | Line 16... | ||
16 | OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES)) |
16 | OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES)) |
Line 17... | Line 17... | ||
17 | 17 | ||
Line 18... | Line 18... | ||
18 | default: hello |
18 | default: hello |
19 | 19 | ||
20 | hello: $(OBJECTS) Makefile |
20 | hello: $(OBJECTS) Makefile |
21 | $(LD) $(LDFLAGS) $(LIBPATH) --subsystem console -o hello.kex $(OBJECTS) -lstdc++ -lsupc++ -lgcc -lc |
21 | $(LD) $(LDFLAGS) $(LIBPATH) --subsystem console -o hello.kex $(OBJECTS) -lstdc++ -lsupc++ -lgcc -lc.dll |
22 | strip -s hello.kex -o hello.kex |
22 | strip -s hello.kex -o hello.kex |
Line 23... | Line 23... | ||
23 | objcopy hello.kex -O binary |
23 | objcopy hello.kex -O binary |