Subversion Repositories HelenOS-historic

Rev

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

Rev 999 Rev 1014
Line 33... Line 33...
33
LIBIPC_PREFIX = ../libipc
33
LIBIPC_PREFIX = ../libipc
34
include $(LIBC_PREFIX)/Makefile.toolchain
34
include $(LIBC_PREFIX)/Makefile.toolchain
35
 
35
 
36
CFLAGS += -I../libipc/include
36
CFLAGS += -I../libipc/include
37
 
37
 
-
 
38
LIBS = $(LIBIPC_PREFIX)/libipc.a $(LIBC_PREFIX)/libc.a
-
 
39
 
38
## Sources
40
## Sources
39
#
41
#
40
 
42
 
41
OUTPUT = init
43
OUTPUT = init
42
SOURCES = \
44
SOURCES = \
Line 55... Line 57...
55
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
57
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
56
 
58
 
57
depend:
59
depend:
58
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
60
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
59
 
61
 
60
$(OUTPUT): $(OBJECTS)
62
$(OUTPUT): $(OBJECTS) $(LIBS)
61
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld  $(OBJECTS) $(LIBIPC_PREFIX)/libipc.a $(LIBC_PREFIX)/libc.a $(LFLAGS) -o $@ -Map $(OUTPUT).map
63
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld  $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
62
 
64
 
63
disasm:
65
disasm:
64
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
66
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
65
 
67
 
66
%.o: %.S
68
%.o: %.S