Changeset cc1f8d4 in mainline for uspace/app
- Timestamp:
- 2009-10-20T16:08:08Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50989793
- Parents:
- 00413c5c
- Location:
- uspace/app
- Files:
-
- 16 added
- 9 edited
-
bdsh/Makefile (modified) (1 diff)
-
bdsh/Makefile.build (added)
-
bdsh/Makefile.common (added)
-
edit/Makefile (modified) (2 diffs)
-
edit/Makefile.build (added)
-
edit/Makefile.common (added)
-
getvc/Makefile (modified) (2 diffs)
-
getvc/Makefile.build (added)
-
getvc/Makefile.common (added)
-
init/Makefile (modified) (2 diffs)
-
init/Makefile.build (added)
-
init/Makefile.common (added)
-
init/init.c (modified) (1 diff)
-
klog/Makefile (modified) (2 diffs)
-
klog/Makefile.build (added)
-
klog/Makefile.common (added)
-
tester/Makefile (modified) (2 diffs)
-
tester/Makefile.build (added)
-
tester/Makefile.common (added)
-
tetris/Makefile (modified) (1 diff)
-
tetris/Makefile.build (added)
-
tetris/Makefile.common (added)
-
trace/Makefile (modified) (2 diffs)
-
trace/Makefile.build (added)
-
trace/Makefile.common (added)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/Makefile
r00413c5c rcc1f8d4 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 ../../../version30 include Makefile.common 33 31 34 LIBC_PREFIX = ../../lib/libc 35 SOFTINT_PREFIX = ../../lib/softint 36 LIBBLOCK_PREFIX = ../../lib/libblock 32 .PHONY: all clean 37 33 38 include $(LIBC_PREFIX)/Makefile.toolchain 39 40 CFLAGS += -I../../srv/kbd/include -I$(LIBBLOCK_PREFIX) 41 42 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBC_PREFIX)/libc.a 43 DEFS += -DRELEASE=$(RELEASE) 44 45 PROGRAM = bdsh 46 47 # Any directory that cleaning targets should know about 48 SUBDIRS = \ 49 ./ \ 50 cmds/ \ 51 cmds/modules/ \ 52 cmds/modules/help/ \ 53 cmds/modules/mkdir/ \ 54 cmds/modules/rm/ \ 55 cmds/modules/bdd/ \ 56 cmds/modules/cat/ \ 57 cmds/modules/touch/ \ 58 cmds/modules/ls/ \ 59 cmds/modules/pwd/ \ 60 cmds/modules/sleep/ \ 61 cmds/modules/cp/ \ 62 cmds/modules/mv/ \ 63 cmds/modules/mount/ \ 64 cmds/modules/kcon/ \ 65 cmds/builtins/ \ 66 cmds/builtins/exit/\ 67 cmds/builtins/cd/ 68 69 SOURCES = \ 70 cmds/modules/help/help.c \ 71 cmds/modules/mkdir/mkdir.c \ 72 cmds/modules/rm/rm.c \ 73 cmds/modules/bdd/bdd.c \ 74 cmds/modules/cat/cat.c \ 75 cmds/modules/touch/touch.c \ 76 cmds/modules/ls/ls.c \ 77 cmds/modules/pwd/pwd.c \ 78 cmds/modules/sleep/sleep.c \ 79 cmds/modules/cp/cp.c \ 80 cmds/modules/mv/mv.c \ 81 cmds/modules/mount/mount.c \ 82 cmds/modules/kcon/kcon.c \ 83 cmds/builtins/exit/exit.c \ 84 cmds/builtins/cd/cd.c \ 85 cmds/mod_cmds.c \ 86 cmds/builtin_cmds.c \ 87 errors.c \ 88 input.c \ 89 util.c \ 90 exec.c \ 91 scli.c 92 93 CFLAGS += -I. -Icmds/ -Icmds/builtins -Icmds/modules 94 95 OBJECTS = $(SOURCES:.c=.o) 96 97 # For easy cleaning, *.o is already handled 98 CLEANDIRS := $(addsuffix *~,$(SUBDIRS)) 99 CLEANDIRS += $(addsuffix *.bak,$(SUBDIRS)) 100 CLEANDIRS += $(addsuffix *.tmp,$(SUBDIRS)) 101 CLEANDIRS += $(addsuffix *.out,$(SUBDIRS)) 102 CLEANDIRS += $(addsuffix *.d,$(SUBDIRS)) 103 CLEANDIRS += $(addsuffix *.gch,$(SUBDIRS) ) 104 105 %.o: %.S 106 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 107 108 %.o: %.s 109 $(AS) $(AFLAGS) $< -o $@ 110 111 %.o: %.c 112 $(CC) $(CFLAGS) $(INC) -c $< -o $@ 113 @$(CC) -M $(CFLAGS) $(INC) $*.c > $*.d 114 115 $(PROGRAM): $(OBJECTS) $(LIBS) 116 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map 117 118 # Everything else is a phony target 119 .PHONY: all clean distclean depend 120 121 all: $(PROGRAM) $(PROGRAM).disasm 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 122 37 123 38 clean: 124 @-rm -f $(OBJECTS) 125 @-rm -f $(PROGRAM) 126 @-rm -f $(PROGRAM).map 127 @-rm -f $(PROGRAM).disasm 128 @-rm -f $(CLEANDIRS) 129 130 depend: 131 @echo '' 132 133 $(PROGRAM).disasm: $(PROGRAM) 134 $(OBJDUMP) -d $< > $@ 135 136 distclean: clean 137 138 # Do not delete - dependencies 139 -include $(OBJECTS:.o=.d) 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/edit/Makefile
r00413c5c rcc1f8d4 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 ## Setup toolchain 30 # 30 include Makefile.common 31 31 32 LIBC_PREFIX = ../../lib/libc 33 SOFTINT_PREFIX = ../../lib/softint 32 .PHONY: all clean 34 33 35 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 CFLAGS += -I../../.. 38 LIBS = $(LIBC_PREFIX)/libc.a 39 40 ## Sources 41 # 42 43 OUTPUT = edit 44 SOURCES = \ 45 edit.c \ 46 sheet.c 47 48 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 49 50 .PHONY: all clean depend 51 52 all: $(OUTPUT) $(OUTPUT).disasm 53 54 -include Makefile.depend 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 55 37 56 38 clean: 57 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 58 59 depend: 60 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 61 62 $(OUTPUT): $(OBJECTS) $(LIBS) 63 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 64 65 $(OUTPUT).disasm: $(OUTPUT) 66 $(OBJDUMP) -d $< > $@ 67 68 %.o: %.S 69 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 70 71 %.o: %.s 72 $(AS) $(AFLAGS) $< -o $@ 73 74 %.o: %.c 75 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/getvc/Makefile
r00413c5c rcc1f8d4 1 1 # 2 # Copyright (c) 2009 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 include ../../../version30 include Makefile.common 30 31 31 ## Setup toolchain 32 # 32 .PHONY: all clean 33 33 34 LIBC_PREFIX = ../../lib/libc 35 SOFTINT_PREFIX = ../../lib/softint 36 37 include $(LIBC_PREFIX)/Makefile.toolchain 38 39 LIBS = $(LIBC_PREFIX)/libc.a 40 DEFS += -DRELEASE=$(RELEASE) "-DNAME=$(NAME)" 41 42 ## Sources 43 # 44 45 OUTPUT = getvc 46 SOURCES = \ 47 getvc.c \ 48 version.c 49 50 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 51 52 .PHONY: all clean depend 53 54 all: $(OUTPUT) $(OUTPUT).disasm 55 56 -include Makefile.depend 34 all: $(LIBC_PREFIX)/../../../version $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 57 37 58 38 clean: 59 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 60 61 depend: 62 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 63 64 $(OUTPUT): $(OBJECTS) $(LIBS) 65 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 66 67 $(OUTPUT).disasm: $(OUTPUT) 68 $(OBJDUMP) -d $< > $@ 69 70 %.o: %.S 71 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 72 73 %.o: %.s 74 $(AS) $(AFLAGS) $< -o $@ 75 76 %.o: %.c 77 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/init/Makefile
r00413c5c rcc1f8d4 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 ## Setup toolchain 30 # 30 include Makefile.common 31 31 32 LIBC_PREFIX = ../../lib/libc 33 SOFTINT_PREFIX = ../../lib/softint 32 .PHONY: all clean 34 33 35 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 CFLAGS += -I../../.. 38 LIBS = $(LIBC_PREFIX)/libc.a 39 40 ## Sources 41 # 42 43 OUTPUT = init 44 SOURCES = \ 45 init.c 46 47 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 48 49 .PHONY: all clean depend 50 51 all: $(OUTPUT) $(OUTPUT).disasm 52 53 -include Makefile.depend 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 54 37 55 38 clean: 56 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 57 58 depend: 59 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 60 61 $(OUTPUT): $(OBJECTS) $(LIBS) 62 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 63 64 $(OUTPUT).disasm: $(OUTPUT) 65 $(OBJDUMP) -d $< > $@ 66 67 %.o: %.S 68 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 69 70 %.o: %.s 71 $(AS) $(AFLAGS) $< -o $@ 72 73 %.o: %.c 74 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/init/init.c
r00413c5c rcc1f8d4 48 48 #include <string.h> 49 49 #include <devmap.h> 50 #include <config.h>51 50 #include "init.h" 52 51 -
uspace/app/klog/Makefile
r00413c5c rcc1f8d4 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 ## Setup toolchain 30 # 30 include Makefile.common 31 31 32 LIBC_PREFIX = ../../lib/libc 33 SOFTINT_PREFIX = ../../lib/softint 32 .PHONY: all clean 34 33 35 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 LIBS = $(LIBC_PREFIX)/libc.a 38 39 ## Sources 40 # 41 42 OUTPUT = klog 43 SOURCES = \ 44 klog.c 45 46 47 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 48 49 .PHONY: all clean depend 50 51 all: $(OUTPUT) $(OUTPUT).disasm 52 53 -include Makefile.depend 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 54 37 55 38 clean: 56 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 57 58 depend: 59 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 60 61 $(OUTPUT): $(OBJECTS) $(LIBS) 62 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 63 64 $(OUTPUT).disasm: $(OUTPUT) 65 $(OBJDUMP) -d $< > $@ 66 67 %.o: %.S 68 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 69 70 %.o: %.s 71 $(AS) $(AFLAGS) $< -o $@ 72 73 %.o: %.c 74 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/tester/Makefile
r00413c5c rcc1f8d4 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 ## Setup toolchain 30 # 30 include Makefile.common 31 31 32 LIBC_PREFIX = ../../lib/libc 33 SOFTINT_PREFIX = ../../lib/softint 32 .PHONY: all clean 34 33 35 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 CFLAGS += -I../../srv/kbd/include 38 39 LIBS = $(LIBC_PREFIX)/libc.a 40 41 ## Sources 42 # 43 44 OUTPUT = tester 45 SOURCES = tester.c \ 46 thread/thread1.c \ 47 print/print1.c \ 48 print/print2.c \ 49 print/print3.c \ 50 print/print4.c \ 51 console/console1.c \ 52 stdio/stdio1.c \ 53 stdio/stdio2.c \ 54 fault/fault1.c \ 55 fault/fault2.c \ 56 vfs/vfs1.c \ 57 ipc/ping_pong.c \ 58 ipc/register.c \ 59 ipc/connect.c \ 60 loop/loop1.c \ 61 mm/malloc1.c 62 63 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 64 65 .PHONY: all clean depend disasm 66 67 all: $(OUTPUT) $(OUTPUT).disasm 68 69 -include Makefile.depend 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 70 37 71 38 clean: 72 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 73 74 depend: 75 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 76 77 $(OUTPUT): $(OBJECTS) $(LIBS) 78 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 79 80 $(OUTPUT).disasm: $(OUTPUT) 81 $(OBJDUMP) -d $< > $@ 82 83 %.o: %.S 84 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 85 86 %.o: %.s 87 $(AS) $(AFLAGS) $< -o $@ 88 89 %.o: %.c 90 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/tetris/Makefile
r00413c5c rcc1f8d4 1 LIBC_PREFIX = ../../lib/libc 2 SOFTINT_PREFIX = ../../lib/softint 1 # 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 4 # All rights reserved. 5 # 6 # Redistribution and use in source and binary forms, with or without 7 # modification, are permitted provided that the following conditions 8 # are met: 9 # 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. 17 # 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. 28 # 3 29 4 include $(LIBC_PREFIX)/Makefile.toolchain30 include Makefile.common 5 31 6 LIBS = $(LIBC_PREFIX)/libc.a 32 .PHONY: all clean 7 33 8 OUTPUT = tetris 9 SOURCES = shapes.c scores.c input.c tetris.c screen.c 10 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 11 12 .PHONY: all clean depend 13 14 all: $(OUTPUT) $(OUTPUT).disasm 15 16 -include Makefile.depend 17 18 depend: 19 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 20 21 $(OUTPUT): $(OBJECTS) $(LIBS) 22 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 23 37 24 38 clean: 25 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend *.o 26 27 $(OUTPUT).disasm: $(OUTPUT) 28 $(OBJDUMP) -d $< > $@ 29 30 %.o: %.S 31 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 32 33 %.o: %.s 34 $(AS) $(AFLAGS) $< -o $@ 35 36 %.o: %.c 37 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/trace/Makefile
r00413c5c rcc1f8d4 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 ## Setup toolchain 30 # 30 include Makefile.common 31 31 32 LIBC_PREFIX = ../../lib/libc 33 SOFTINT_PREFIX = ../../lib/softint 32 .PHONY: all clean 34 33 35 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 CFLAGS += -I../../srv/kbd/include 38 39 LIBS = $(LIBC_PREFIX)/libc.a 40 41 ## Sources 42 # 43 44 OUTPUT = trace 45 SOURCES = trace.c \ 46 syscalls.c \ 47 ipcp.c \ 48 ipc_desc.c \ 49 proto.c \ 50 errors.c 51 52 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 53 54 .PHONY: all clean depend 55 56 all: $(OUTPUT) $(OUTPUT).disasm 57 58 -include Makefile.depend 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 59 37 60 38 clean: 61 -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend 62 63 depend: 64 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 65 66 $(OUTPUT): $(OBJECTS) $(LIBS) 67 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 68 69 $(OUTPUT).disasm: $(OUTPUT) 70 $(OBJDUMP) -d $< > $@ 71 72 %.o: %.S 73 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 74 75 %.o: %.s 76 $(AS) $(AFLAGS) $< -o $@ 77 78 %.o: %.c 79 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 39 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \;
Note:
See TracChangeset
for help on using the changeset viewer.
