Subversion Repositories HelenOS

Rev

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

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