Changeset 169c408 in mainline for Makefile


Ignore:
Timestamp:
2005-11-01T22:14:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dbd1059
Parents:
1a70350
Message:

Move src/ and include/ to generic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r1a70350 r169c408  
    33include genarch/Makefile.inc
    44
    5 sources=src/cpu/cpu.c \
    6         src/main/main.c \
    7         src/main/kinit.c \
    8         src/main/uinit.c \
    9         src/proc/scheduler.c \
    10         src/proc/thread.c \
    11         src/proc/task.c \
    12         src/proc/the.c \
    13         src/mm/buddy.c \
    14         src/mm/heap.c \
    15         src/mm/frame.c \
    16         src/mm/page.c \
    17         src/mm/tlb.c \
    18         src/mm/vm.c \
    19         src/lib/func.c \
    20         src/lib/list.c \
    21         src/lib/memstr.c \
    22         src/lib/sort.c \
    23         src/debug/print.c \
    24         src/debug/symtab.c \
    25         src/time/clock.c \
    26         src/time/timeout.c \
    27         src/time/delay.c \
    28         src/preempt/preemption.c \
    29         src/synch/spinlock.c \
    30         src/synch/condvar.c \
    31         src/synch/rwlock.c \
    32         src/synch/mutex.c \
    33         src/synch/semaphore.c \
    34         src/synch/waitq.c \
    35         src/smp/ipi.c \
    36         src/fb/font-8x16.c
     5sources=generic/src/cpu/cpu.c \
     6        generic/src/main/main.c \
     7        generic/src/main/kinit.c \
     8        generic/src/main/uinit.c \
     9        generic/src/proc/scheduler.c \
     10        generic/src/proc/thread.c \
     11        generic/src/proc/task.c \
     12        generic/src/proc/the.c \
     13        generic/src/mm/buddy.c \
     14        generic/src/mm/heap.c \
     15        generic/src/mm/frame.c \
     16        generic/src/mm/page.c \
     17        generic/src/mm/tlb.c \
     18        generic/src/mm/vm.c \
     19        generic/src/lib/func.c \
     20        generic/src/lib/list.c \
     21        generic/src/lib/memstr.c \
     22        generic/src/lib/sort.c \
     23        generic/src/debug/print.c \
     24        generic/src/debug/symtab.c \
     25        generic/src/time/clock.c \
     26        generic/src/time/timeout.c \
     27        generic/src/time/delay.c \
     28        generic/src/preempt/preemption.c \
     29        generic/src/synch/spinlock.c \
     30        generic/src/synch/condvar.c \
     31        generic/src/synch/rwlock.c \
     32        generic/src/synch/mutex.c \
     33        generic/src/synch/semaphore.c \
     34        generic/src/synch/waitq.c \
     35        generic/src/smp/ipi.c \
     36        generic/src/fb/font-8x16.c
    3737
    3838# CFLAGS options same for all targets
    39 CFLAGS+=-nostdinc -Iinclude/ -Werror-implicit-function-declaration -Wmissing-prototypes -Werror
     39CFLAGS+=-nostdinc -Igeneric/include/ -Werror-implicit-function-declaration -Wmissing-prototypes -Werror
    4040
    4141ifdef DEBUG_SPINLOCK
     
    6262
    6363config:
    64         find src/ include/ -name arch -type l -exec rm \{\} \;
    65         find src/ include/ -name genarch -type l -exec rm \{\} \;       
    66         ln -s ../arch/$(ARCH)/src/ src/arch
    67         ln -s ../arch/$(ARCH)/include/ include/arch
    68         ln -s ../genarch/src/ src/genarch
    69         ln -s ../genarch/include/ include/genarch
     64        find generic/src/ generic/include/ -name arch -type l -exec rm \{\} \;
     65        find generic/src/ generic/include/ -name genarch -type l -exec rm \{\} \;       
     66        ln -s ../../arch/$(ARCH)/src/ generic/src/arch
     67        ln -s ../../arch/$(ARCH)/include/ generic/include/arch
     68        ln -s ../../genarch/src/ generic/src/genarch
     69        ln -s ../../genarch/include/ generic/include/genarch
    7070
    7171depend:
     
    7575
    7676clean:
    77         find src/ arch/$(ARCH)/src/ genarch/src/ test/ -name '*.o' -exec rm \{\} \;
    78         -rm *.bin kernel.map kernel.map.pre kernel.objdump src/debug/real_map.bin
     77        find generic/src/ arch/$(ARCH)/src/ genarch/src/ test/ -name '*.o' -exec rm \{\} \;
     78        -rm *.bin kernel.map kernel.map.pre kernel.objdump generic/src/debug/real_map.bin
    7979        $(MAKE) -C arch/$(ARCH)/boot/ clean
    8080
    8181dist-clean:
    82         find src/ include/ -name arch -type l -exec rm \{\} \;
    83         find src/ include/ -name genarch -type l -exec rm \{\} \;       
     82        find generic/src/ generic/include/ -name arch -type l -exec rm \{\} \;
     83        find generic/src/ generic/include/ -name genarch -type l -exec rm \{\} \;       
    8484        -rm Makefile.depend
    8585        -$(MAKE) clean
    8686
    87 src/debug/real_map.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld
    88         $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile src/debug/empty_map.o
    89         $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/empty_map.o -o $@ -Map kernel.map.pre
     87generic/src/debug/real_map.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld
     88        $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile generic/src/debug/empty_map.o
     89        $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) generic/src/debug/empty_map.o -o $@ -Map kernel.map.pre
    9090        $(OBJDUMP) -t $(arch_objects) $(genarch_objects) $(objects) $(test_objects) > kernel.objdump
    91         tools/genmap.py kernel.map.pre kernel.objdump src/debug/real_map.bin
     91        tools/genmap.py kernel.map.pre kernel.objdump generic/src/debug/real_map.bin
    9292
    93 src/debug/real_map.o: src/debug/real_map.bin
     93generic/src/debug/real_map.o: generic/src/debug/real_map.bin
    9494        $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab $< $@
    9595
    9696
    97 kernel.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld src/debug/real_map.o
    98         $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/real_map.o -o $@ -Map kernel.map
     97kernel.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld generic/src/debug/real_map.o
     98        $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) generic/src/debug/real_map.o -o $@ -Map kernel.map
    9999
    100100%.o: %.S
Note: See TracChangeset for help on using the changeset viewer.