libmeinos: +llist2
[meinos.git] / kernel2 / Makefile
blob5591fbfb7e4637bd1477c25ffc4553bf3a1ab6fb
1 -include ../Makefile.config
3 OBJFILES = aaacrt0.o \
4 biosint.o \
5 cpu.o \
6 elf.o \
7 gdt.o \
8 idt.o \
9 interrupt.o \
10 ioport.o \
11 ipc.o \
12 isr.o \
13 kprint.o \
14 lapic.o \
15 main.o \
16 malloc.o \
17 memkernel.o \
18 memphys.o \
19 memuser.o \
20 msg.o \
21 multiboot.o \
22 paging.o \
23 pic.o \
24 procm.o \
25 rpc.o \
26 sem.o \
27 shm.o \
28 signal.o \
29 swap.o \
30 syscall.o \
31 tss.o \
32 vga.o \
33 vm86.o \
34 dyncall.o \
35 llist.o \
36 pack.o \
37 perm.o \
38 tree.o \
39 string.o
41 all: kernel2 kernel2.objdump
42 cp $< ../files
44 kernel2: $(OBJFILES) libgcc.a
45 $(KERNEL_LD) -T link.ld -o $@ $(OBJFILES) libgcc.a
47 aaacrt0.o: crt0.asm
48 $(KERNEL_ASM) -f elf -o $@ $^
49 biosint.o: biosint.c
50 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
51 cpu.o: cpu.c
52 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
53 elf.o: elf.c
54 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
55 gdt.o: gdt.c
56 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
57 idt.o: idt.c
58 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
59 interrupt.o: interrupt.c
60 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
61 ioport.o: ioport.c
62 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
63 ipc.o: ipc.c
64 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
65 isr.o: isr.asm
66 $(KERNEL_ASM) -f elf -o $@ $^
67 kprint.o: kprint.c
68 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
69 lapic.o: lapic.c
70 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
71 main.o: main.c
72 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
73 malloc.o: malloc.c
74 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
75 memkernel.o: memkernel.c
76 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
77 memphys.o: memphys.c
78 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
79 memuser.o: memuser.c
80 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
81 msg.o: msg.c
82 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
83 multiboot.o: multiboot.c
84 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
85 paging.o: paging.c
86 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
87 pic.o: pic.c
88 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
89 procm.o: procm.c
90 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
91 rpc.o: rpc.c
92 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
93 sem.o: sem.c
94 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
95 shm.o: shm.c
96 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
97 signal.o: signal.c
98 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
99 swap.o: swap.c
100 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
101 syscall.o: syscall.c
102 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
103 tss.o: tss.c
104 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
105 vga.o: vga.c
106 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
107 vm86.o: vm86.c
108 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
109 dyncall.o: ../lib/libmeinos/dyncall.asm
110 $(KERNEL_ASM) -f elf -o $@ $^
111 llist.o: ../lib/libmeinos/llist.c
112 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
113 pack.o: ../lib/libmeinos/pack.c
114 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
115 perm.o: ../lib/libmeinos/perm.c
116 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
117 tree.o: ../lib/libmeinos/tree.c
118 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
119 string.o: ../lib/stdlibc/string.c
120 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $^
122 kernel2.objdump: kernel2
123 $(KERNEL_OBJDUMP) -d -S $^ > $@
125 clean:
126 rm -f $(OBJFILES) kernel2 *.objdump