Changes in uspace/srv/kbd/Makefile [e795203:cc1f8d4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/Makefile
re795203 rcc1f8d4 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 ## Setup toolchain 30 # 30 include Makefile.common 31 31 32 LIBC_PREFIX = ../../lib/libc 33 SOFTINT_PREFIX = ../../lib/softint 32 .PHONY: all clean 34 33 35 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 CFLAGS += -Iinclude 38 39 LIBS = $(LIBC_PREFIX)/libc.a 40 41 ## Sources 42 # 43 44 OUTPUT = kbd 45 GENERIC_SOURCES = \ 46 generic/kbd.c \ 47 genarch/gsp.c \ 48 genarch/stroke.c 49 50 ARCH_SOURCES = 51 GENARCH_SOURCES = \ 52 layout/cz.c \ 53 layout/us_qwerty.c \ 54 layout/us_dvorak.c 55 56 ifeq ($(UARCH), amd64) 57 GENARCH_SOURCES += \ 58 port/i8042.c \ 59 ctl/pc.c 60 endif 61 62 ifeq ($(UARCH), arm32) 63 ifeq ($(MACHINE), testarm) 64 GENARCH_SOURCES += \ 65 port/gxemul.c 66 67 ifeq ($(CONFIG_FB), y) 68 GENARCH_SOURCES += \ 69 ctl/gxe_fb.c 70 else 71 GENARCH_SOURCES += \ 72 ctl/stty.c 73 endif 74 endif 75 ifeq ($(MACHINE), integratorcp) 76 GENARCH_SOURCES += \ 77 port/pl050.c \ 78 ctl/pl050.c 79 endif 80 endif 81 82 ifeq ($(UARCH), ia32) 83 GENARCH_SOURCES += \ 84 port/i8042.c \ 85 ctl/pc.c 86 endif 87 88 ifeq ($(MACHINE), i460GX) 89 GENARCH_SOURCES += \ 90 port/i8042.c \ 91 ctl/pc.c 92 endif 93 94 ifeq ($(MACHINE), ski) 95 GENARCH_SOURCES += \ 96 port/ski.c \ 97 ctl/stty.c 98 endif 99 100 ifeq ($(MACHINE), msim) 101 GENARCH_SOURCES += \ 102 port/msim.c \ 103 ctl/stty.c 104 endif 105 106 ifeq ($(MACHINE), lgxemul) 107 GENARCH_SOURCES += \ 108 port/gxemul.c 109 110 ifeq ($(CONFIG_FB), y) 111 GENARCH_SOURCES += \ 112 ctl/gxe_fb.c 113 else 114 GENARCH_SOURCES += \ 115 ctl/stty.c 116 endif 117 endif 118 119 ifeq ($(MACHINE), bgxemul) 120 GENARCH_SOURCES += \ 121 port/gxemul.c 122 123 ifeq ($(CONFIG_FB), y) 124 GENARCH_SOURCES += \ 125 ctl/gxe_fb.c 126 else 127 GENARCH_SOURCES += \ 128 ctl/stty.c 129 endif 130 endif 131 132 ifeq ($(UARCH), ppc32) 133 GENARCH_SOURCES += \ 134 port/dummy.c \ 135 ctl/stty.c 136 endif 137 138 ifeq ($(UARCH), sparc64) 139 ifeq ($(MACHINE),serengeti) 140 GENARCH_SOURCES += \ 141 port/sgcn.c \ 142 ctl/stty.c 143 else 144 GENARCH_SOURCES += \ 145 port/sun.c \ 146 port/z8530.c \ 147 port/ns16550.c \ 148 ctl/sun.c 149 endif 150 endif 151 152 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 153 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) 154 GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) 155 156 OBJECTS := $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS) 157 158 .PHONY: all clean depend disasm links 159 160 all: $(OUTPUT) $(OUTPUT).disasm 161 162 -include Makefile.depend 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 163 37 164 38 clean: 165 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 166 167 depend: 168 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 169 170 $(OUTPUT): $(OBJECTS) $(LIBS) 171 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 172 173 disasm: $(OUTPUT).disasm 174 175 $(OUTPUT).disasm: $(OUTPUT) 176 $(OBJDUMP) -d $< > $@ 177 178 %.o: %.S 179 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 180 181 %.o: %.s 182 $(AS) $(AFLAGS) $< -o $@ 183 184 %.o: %.c 185 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \;
Note:
See TracChangeset
for help on using the changeset viewer.