Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/Makefile

    r61cc94e r1ea99cc  
    11#
    22# Copyright (c) 2005 Martin Decky
    3 # Copyright (c) 2007 Jakub Jermar
    43# All rights reserved.
    54#
     
    2827#
    2928
    30 USPACE_PREFIX = ../..
    31 BINARY = tester
     29## Setup toolchain
     30#
    3231
    33 SOURCES = \
    34         tester.c \
     32LIBC_PREFIX = ../../lib/libc
     33SOFTINT_PREFIX = ../../lib/softint
     34
     35include $(LIBC_PREFIX)/Makefile.toolchain
     36include $(LIBC_PREFIX)/Makefile.app
     37
     38CFLAGS += -I../../srv/kbd/include
     39
     40## Sources
     41#
     42
     43OUTPUT = tester
     44SOURCES = tester.c \
    3545        thread/thread1.c \
    3646        print/print1.c \
     
    3848        print/print3.c \
    3949        print/print4.c \
    40         print/print5.c \
    4150        console/console1.c \
    4251        stdio/stdio1.c \
     
    4453        fault/fault1.c \
    4554        fault/fault2.c \
    46         fault/fault3.c \
    4755        vfs/vfs1.c \
    4856        ipc/ping_pong.c \
     57        ipc/register.c \
     58        ipc/connect.c \
    4959        loop/loop1.c \
    50         mm/malloc1.c \
    51         hw/misc/virtchar1.c \
    52         hw/serial/serial1.c
     60        mm/malloc1.c
    5361
    54 include $(USPACE_PREFIX)/Makefile.common
     62OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     63
     64.PHONY: all clean depend disasm
     65
     66all: $(OUTPUT) $(OUTPUT).disasm
     67
     68-include Makefile.depend
     69
     70clean:
     71        -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
     72
     73depend:
     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
     79disasm: $(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 $@
Note: See TracChangeset for help on using the changeset viewer.