Changeset 04803bf in mainline for uspace/app/bdsh/Makefile
- Timestamp:
- 2011-03-21T22:00:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e
- Parents:
- b50b5af2 (diff), 7308e84 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/Makefile
rb50b5af2 r04803bf 1 # Copyright (c) 2005, Martin Decky2 # All rights reserved.3 # Copyright (c) 200 8, Tim Post <tinkertim@gmail.com>1 # 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 4 4 # All rights reserved. 5 5 # 6 6 # Redistribution and use in source and binary forms, with or without 7 # modification, are permitted provided that the following conditions are met: 7 # modification, are permitted provided that the following conditions 8 # are met: 8 9 # 9 # Redistributions of source code must retain the above copyright notice, this 10 # list of conditions and the following disclaimer. 10 # - Redistributions of source code must retain the above copyright 11 # notice, this list of conditions and the following disclaimer. 12 # - Redistributions in binary form must reproduce the above copyright 13 # notice, this list of conditions and the following disclaimer in the 14 # documentation and/or other materials provided with the distribution. 15 # - The name of the author may not be used to endorse or promote products 16 # derived from this software without specific prior written permission. 11 17 # 12 # Redistributions in binary form must reproduce the above copyright notice, 13 # this list of conditions and the following disclaimer in the documentation 14 # and/or other materials provided with the distribution. 18 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 15 28 # 16 # Neither the name of the original program's authors nor the names of its17 # contributors may be used to endorse or promote products derived from this18 # software without specific prior written permission.19 #20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"21 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE24 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR25 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF26 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS27 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN28 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)29 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE30 # POSSIBILITY OF SUCH DAMAGE.31 29 32 include ../../../version 33 34 LIBC_PREFIX = ../../lib/libc 35 SOFTINT_PREFIX = ../../lib/softint 36 LIBBLOCK_PREFIX = ../../lib/libblock 37 38 include $(LIBC_PREFIX)/Makefile.toolchain 39 include $(LIBC_PREFIX)/Makefile.app 40 41 CFLAGS += -I../../srv/kbd/include -I$(LIBBLOCK_PREFIX) 42 43 LIBS += $(LIBBLOCK_PREFIX)/libblock.a $(LIBC_PREFIX)/libc.a 44 DEFS += -DRELEASE=$(RELEASE) 45 46 PROGRAM = bdsh 47 48 # Any directory that cleaning targets should know about 49 SUBDIRS = \ 50 ./ \ 51 cmds/ \ 52 cmds/modules/ \ 53 cmds/modules/help/ \ 54 cmds/modules/mkdir/ \ 55 cmds/modules/rm/ \ 56 cmds/modules/bdd/ \ 57 cmds/modules/cat/ \ 58 cmds/modules/touch/ \ 59 cmds/modules/ls/ \ 60 cmds/modules/pwd/ \ 61 cmds/modules/sleep/ \ 62 cmds/modules/cp/ \ 63 cmds/modules/mv/ \ 64 cmds/modules/mount/ \ 65 cmds/modules/kcon/ \ 66 cmds/builtins/ \ 67 cmds/builtins/exit/\ 68 cmds/builtins/cd/ 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBCLUI_PREFIX)/libclui.a 32 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) -I$(LIBCLUI_PREFIX) -I. -Icmds/ \ 33 -Icmds/builtins -Icmds/modules 34 BINARY = bdsh 69 35 70 36 SOURCES = \ 71 37 cmds/modules/help/help.c \ 72 38 cmds/modules/mkdir/mkdir.c \ 39 cmds/modules/mkfile/mkfile.c \ 73 40 cmds/modules/rm/rm.c \ 74 41 cmds/modules/bdd/bdd.c \ … … 81 48 cmds/modules/mv/mv.c \ 82 49 cmds/modules/mount/mount.c \ 50 cmds/modules/unmount/unmount.c \ 83 51 cmds/modules/kcon/kcon.c \ 84 52 cmds/builtins/exit/exit.c \ … … 92 60 scli.c 93 61 94 CFLAGS += -I. -Icmds/ -Icmds/builtins -Icmds/modules 95 96 OBJECTS = $(SOURCES:.c=.o) 97 98 # For easy cleaning, *.o is already handled 99 CLEANDIRS := $(addsuffix *~,$(SUBDIRS)) 100 CLEANDIRS += $(addsuffix *.bak,$(SUBDIRS)) 101 CLEANDIRS += $(addsuffix *.tmp,$(SUBDIRS)) 102 CLEANDIRS += $(addsuffix *.out,$(SUBDIRS)) 103 CLEANDIRS += $(addsuffix *.d,$(SUBDIRS)) 104 CLEANDIRS += $(addsuffix *.gch,$(SUBDIRS) ) 105 106 %.o: %.S 107 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 108 109 %.o: %.s 110 $(AS) $(AFLAGS) $< -o $@ 111 112 %.o: %.c 113 $(CC) $(CFLAGS) $(INC) -c $< -o $@ 114 @$(CC) -M $(CFLAGS) $(INC) $*.c > $*.d 115 116 $(PROGRAM): $(OBJECTS) $(LIBS) 117 $(LD) -T $(LD_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map 118 119 # Everything else is a phony target 120 .PHONY: all clean distclean depend disasm 121 122 all: $(PROGRAM) disasm 123 124 clean: 125 @-rm -f $(OBJECTS) 126 @-rm -f $(PROGRAM) 127 @-rm -f $(PROGRAM).map 128 @-rm -f $(PROGRAM).disasm 129 @-rm -f $(CLEANDIRS) 130 131 depend: 132 @echo '' 133 134 disasm: 135 $(OBJDUMP) -d $(PROGRAM) >$(PROGRAM).disasm 136 137 distclean: clean 138 139 # Do not delete - dependencies 140 -include $(OBJECTS:.o=.d) 62 include $(USPACE_PREFIX)/Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.