Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/Makefile

    r1ea99cc r61cc94e  
    11#
    22# Copyright (c) 2005 Martin Decky
     3# Copyright (c) 2007 Jakub Jermar
    34# All rights reserved.
    45#
     
    2728#
    2829
    29 ## Setup toolchain
    30 #
     30USPACE_PREFIX = ../..
     31BINARY = tester
    3132
    32 LIBC_PREFIX = ../../lib/libc
    33 SOFTINT_PREFIX = ../../lib/softint
    34 
    35 include $(LIBC_PREFIX)/Makefile.toolchain
    36 include $(LIBC_PREFIX)/Makefile.app
    37 
    38 CFLAGS += -I../../srv/kbd/include
    39 
    40 ## Sources
    41 #
    42 
    43 OUTPUT = tester
    44 SOURCES = tester.c \
     33SOURCES = \
     34        tester.c \
    4535        thread/thread1.c \
    4636        print/print1.c \
     
    4838        print/print3.c \
    4939        print/print4.c \
     40        print/print5.c \
    5041        console/console1.c \
    5142        stdio/stdio1.c \
     
    5344        fault/fault1.c \
    5445        fault/fault2.c \
     46        fault/fault3.c \
    5547        vfs/vfs1.c \
    5648        ipc/ping_pong.c \
    57         ipc/register.c \
    58         ipc/connect.c \
    5949        loop/loop1.c \
    60         mm/malloc1.c
     50        mm/malloc1.c \
     51        hw/misc/virtchar1.c \
     52        hw/serial/serial1.c
    6153
    62 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    63 
    64 .PHONY: all clean depend disasm
    65 
    66 all: $(OUTPUT) $(OUTPUT).disasm
    67 
    68 -include Makefile.depend
    69 
    70 clean:
    71         -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
    72 
    73 depend:
    74         $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
    75 
    76 $(OUTPUT): $(OBJECTS) $(LIBS)
    77         $(LD) -T $(LD_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    78 
    79 disasm: $(OUTPUT).disasm
    80 
    81 $(OUTPUT).disasm: $(OUTPUT)
    82         $(OBJDUMP) -d $< > $@
    83 
    84 %.o: %.S
    85         $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
    86 
    87 %.o: %.s
    88         $(AS) $(AFLAGS) $< -o $@
    89 
    90 %.o: %.c
    91         $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     54include $(USPACE_PREFIX)/Makefile.common
Note: See TracChangeset for help on using the changeset viewer.