Subversion Repositories HelenOS

Rev

Rev 4377 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4377 Rev 4692
Line 32... Line 32...
32
LIBC_PREFIX = ../../lib/libc
32
LIBC_PREFIX = ../../lib/libc
33
SOFTINT_PREFIX = ../../lib/softint
33
SOFTINT_PREFIX = ../../lib/softint
34
 
34
 
35
include $(LIBC_PREFIX)/Makefile.toolchain
35
include $(LIBC_PREFIX)/Makefile.toolchain
36
 
36
 
37
CFLAGS += -Iinclude -I../libadt/include
37
CFLAGS += -Iinclude
38
 
38
 
39
LIBS = $(LIBC_PREFIX)/libc.a
39
LIBS = $(LIBC_PREFIX)/libc.a
40
 
40
 
41
## Sources
41
## Sources
42
#
42
#
Line 44... Line 44...
44
OUTPUT = kbd
44
OUTPUT = kbd
45
GENERIC_SOURCES = \
45
GENERIC_SOURCES = \
46
	generic/kbd.c \
46
	generic/kbd.c \
47
	genarch/gsp.c \
47
	genarch/gsp.c \
48
	genarch/stroke.c \
48
	genarch/stroke.c \
49
	generic/key_buffer.c
49
	generic/keybuffer.c
50
 
50
 
51
ARCH_SOURCES =
51
ARCH_SOURCES =
52
GENARCH_SOURCES = \
52
GENARCH_SOURCES = \
53
	layout/cz.c \
53
	layout/cz.c \
54
	layout/us_qwerty.c \
54
	layout/us_qwerty.c \
Line 59... Line 59...
59
		port/i8042.c \
59
		port/i8042.c \
60
		ctl/pc.c
60
		ctl/pc.c
61
endif
61
endif
62
 
62
 
63
ifeq ($(UARCH), arm32)
63
ifeq ($(UARCH), arm32)
-
 
64
ifeq ($(MACHINE), testarm)
64
	GENARCH_SOURCES += \
65
	GENARCH_SOURCES += \
65
		port/gxemul.c
66
		port/gxemul.c
66
	
67
	
67
	ifeq ($(CONFIG_FB), y)
68
	ifeq ($(CONFIG_FB), y)
68
		GENARCH_SOURCES += \
69
		GENARCH_SOURCES += \
Line 70... Line 71...
70
	else
71
	else
71
		GENARCH_SOURCES += \
72
		GENARCH_SOURCES += \
72
			ctl/stty.c
73
			ctl/stty.c
73
	endif
74
	endif
74
endif
75
endif
-
 
76
ifeq ($(MACHINE), integratorcp)
-
 
77
	 GENARCH_SOURCES += \
-
 
78
		port/pl050.c \
-
 
79
		ctl/pl050.c
-
 
80
endif
-
 
81
endif
75
 
82
 
76
ifeq ($(UARCH), ia32)
83
ifeq ($(UARCH), ia32)
77
	GENARCH_SOURCES += \
84
	GENARCH_SOURCES += \
78
		port/i8042.c \
85
		port/i8042.c \
79
		ctl/pc.c
86
		ctl/pc.c
Line 165... Line 172...
165
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
172
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
166
 
173
 
167
disasm: $(OUTPUT).disasm
174
disasm: $(OUTPUT).disasm
168
 
175
 
169
$(OUTPUT).disasm: $(OUTPUT)
176
$(OUTPUT).disasm: $(OUTPUT)
170
	$(OBJDUMP) -d $< >$@
177
	$(OBJDUMP) -d $< > $@
171
 
178
 
172
%.o: %.S
179
%.o: %.S
173
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
180
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
174
 
181
 
175
%.o: %.s
182
%.o: %.s