Changeset 48e1467 in mainline for uspace/app/Makefile.common
- Timestamp:
- 2010-01-22T16:52:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0cb2d72
- Parents:
- 92bee46 (diff), 9d3133d (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/Makefile.common
r92bee46 r48e1467 28 28 # 29 29 30 ## Setup toolchain30 ## Common rules for building apps. 31 31 # 32 32 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 39 41 # 40 42 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 43 DEPEND = Makefile.depend 44 DEPEND_PREV = $(DEPEND).prev 45 46 LIBC_PREFIX = $(USPACE_PREFIX)/lib/libc 47 LIBBLOCK_PREFIX = $(USPACE_PREFIX)/lib/libblock 48 SOFTINT_PREFIX = $(USPACE_PREFIX)/lib/softint 49 50 JOB = $(OUTPUT).job 65 51 66 52 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 67 53 68 .PHONY: all 54 include $(LIBC_PREFIX)/Makefile.toolchain 69 55 70 all: $(OUTPUT) $(OUTPUT).disasm 56 CFLAGS += $(EXTRA_CFLAGS) 57 58 .PHONY: all build clean 59 60 all: \ 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 70 clean: 71 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 72 find . -name '*.o' -follow -exec rm \{\} \; 73 74 build: 71 75 72 76 -include $(DEPEND)
Note:
See TracChangeset
for help on using the changeset viewer.