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

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


Ignore:
Timestamp:
2010-01-27T20:35:49Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
fb6f1a5
Parents:
fccc236 (diff), 95e6c4f (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:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/Makefile.common

    rfccc236 rb79d450  
    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/rm/rm.c \
    45         cmds/modules/bdd/bdd.c \
    46         cmds/modules/cat/cat.c \
    47         cmds/modules/touch/touch.c \
    48         cmds/modules/ls/ls.c \
    49         cmds/modules/pwd/pwd.c \
    50         cmds/modules/sleep/sleep.c \
    51         cmds/modules/cp/cp.c \
    52         cmds/modules/mv/mv.c \
    53         cmds/modules/mount/mount.c \
    54         cmds/modules/kcon/kcon.c \
    55         cmds/builtins/exit/exit.c \
    56         cmds/builtins/cd/cd.c \
    57         cmds/mod_cmds.c \
    58         cmds/builtin_cmds.c \
    59         errors.c \
    60         input.c \
    61         util.c \
    62         exec.c \
    63         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
    6451
    6552OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    6653
    67 .PHONY: all
     54include $(LIBC_PREFIX)/Makefile.toolchain
    6855
    69 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:
    7075
    7176-include $(DEPEND)
Note: See TracChangeset for help on using the changeset viewer.