Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b86d436 in mainline for uspace/app/Makefile.common


Ignore:
Timestamp:
2010-01-31T17:25:39Z (12 years ago)
Author:
Pavel Rimsky <pavel@…>
Branches:
lfn, master
Children:
5cde90f, b473611
Parents:
8e33e1d (diff), 3c081d0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged head changes up to revision 220.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/Makefile.common

    r8e33e1d rb86d436  
    2828#
    2929
    30 ## Setup toolchain
     30## Common rules for building apps.
    3131#
    3232
    33 include Makefile.common
    34 include $(LIBC_PREFIX)/Makefile.toolchain
    35 
    36 CFLAGS += -I$(LIBBLOCK_PREFIX) -I. -Icmds/ -Icmds/builtins -Icmds/modules
    37 
    38 ## Sources
     33# Individual makefiles set:
     34#
     35#       USPACE_PREFIX   relative path to uspace/ directory
     36#       LIBS            libraries to link with (with relative path)
     37#       EXTRA_CFLAGS    additional flags to pass to C compiler
     38#       JOB             job file name (like appname.job)
     39#       OUTPUT          output binary name (like appname)
     40#       SOURCES         list of source files
    3941#
    4042
    41 SOURCES = \
    42         cmds/modules/help/help.c \
    43         cmds/modules/mkdir/mkdir.c \
    44         cmds/modules/mkfile/mkfile.c \
    45         cmds/modules/rm/rm.c \
    46         cmds/modules/bdd/bdd.c \
    47         cmds/modules/cat/cat.c \
    48         cmds/modules/touch/touch.c \
    49         cmds/modules/ls/ls.c \
    50         cmds/modules/pwd/pwd.c \
    51         cmds/modules/sleep/sleep.c \
    52         cmds/modules/cp/cp.c \
    53         cmds/modules/mv/mv.c \
    54         cmds/modules/mount/mount.c \
    55         cmds/modules/kcon/kcon.c \
    56         cmds/builtins/exit/exit.c \
    57         cmds/builtins/cd/cd.c \
    58         cmds/mod_cmds.c \
    59         cmds/builtin_cmds.c \
    60         errors.c \
    61         input.c \
    62         util.c \
    63         exec.c \
    64         scli.c
     43DEPEND = Makefile.depend
     44DEPEND_PREV = $(DEPEND).prev
     45
     46LIBC_PREFIX = $(USPACE_PREFIX)/lib/libc
     47LIBBLOCK_PREFIX = $(USPACE_PREFIX)/lib/libblock
     48SOFTINT_PREFIX = $(USPACE_PREFIX)/lib/softint
     49
     50JOB = $(OUTPUT).job
    6551
    6652OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    6753
    68 .PHONY: all
     54include $(LIBC_PREFIX)/Makefile.toolchain
    6955
    70 all: $(OUTPUT) $(OUTPUT).disasm
     56CFLAGS += $(EXTRA_CFLAGS)
     57
     58.PHONY: all build clean
     59
     60all: \
     61    $(LIBC_PREFIX)/../../../version \
     62    $(LIBC_PREFIX)/../../../Makefile.config \
     63    $(LIBC_PREFIX)/../../../config.h \
     64    $(LIBC_PREFIX)/../../../config.defs \
     65    $(LIBS) \
     66    \
     67    $(OUTPUT) $(OUTPUT).disasm
     68        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
     69
     70clean:
     71        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     72        find . -name '*.o' -follow -exec rm \{\} \;
     73
     74build:
    7175
    7276-include $(DEPEND)
Note: See TracChangeset for help on using the changeset viewer.