Subversion Repositories HelenOS

Rev

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

Rev 3448 Rev 3563
Line 32... Line 32...
32
include ../../../version
32
include ../../../version
33
include ../../Makefile.config
33
include ../../Makefile.config
34
 
34
 
35
LIBC_PREFIX = ../../lib/libc
35
LIBC_PREFIX = ../../lib/libc
36
SOFTINT_PREFIX = ../../lib/softint
36
SOFTINT_PREFIX = ../../lib/softint
-
 
37
RTLD_PREFIX = ../../lib/rtld
37
include $(LIBC_PREFIX)/Makefile.toolchain
38
include $(LIBC_PREFIX)/Makefile.toolchain
-
 
39
include $(LIBC_PREFIX)/Makefile.app
38
 
40
 
39
CFLAGS += -I../../srv/kbd/include
41
CFLAGS += -I../../srv/kbd/include
40
 
42
 
41
LIBS = $(LIBC_PREFIX)/libc.a
-
 
42
DEFS += -DRELEASE=\"$(RELEASE)\"
43
DEFS += -DRELEASE=\"$(RELEASE)\"
43
 
44
 
44
ifdef REVISION
45
ifdef REVISION
45
	DEFS += "-DREVISION=\"$(TIMESTAMP)\""
46
	DEFS += "-DREVISION=\"$(TIMESTAMP)\""
46
endif
47
endif
Line 110... Line 111...
110
%.o: %.c
111
%.o: %.c
111
	$(CC) $(CFLAGS) $(INC) -c $< -o $@
112
	$(CC) $(CFLAGS) $(INC) -c $< -o $@
112
	@$(CC) -M $(CFLAGS) $(INC) $*.c > $*.d
113
	@$(CC) -M $(CFLAGS) $(INC) $*.c > $*.d
113
 
114
 
114
$(PROGRAM): $(OBJECTS) $(LIBS)
115
$(PROGRAM): $(OBJECTS) $(LIBS)
115
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map
116
	$(LD) -T $(LD_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map
116
 
117
 
117
# Everything else is a phony target
118
# Everything else is a phony target
118
.PHONY: all clean distclean depend disasm
119
.PHONY: all clean distclean depend disasm
119
 
120
 
120
all: $(PROGRAM) disasm
121
all: $(PROGRAM) disasm