Changeset e5773c6 in mainline for uspace/srv
- Timestamp:
- 2010-01-15T22:13:12Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 15eeb93
- Parents:
- 5edb1f5
- Location:
- uspace/srv
- Files:
-
- 34 deleted
- 18 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/Makefile.common
r5edb1f5 re5773c6 28 28 # 29 29 30 ## Setup toolchain30 ## Common rules for building servers. 31 31 # 32 32 33 include Makefile.common 34 include $(LIBC_PREFIX)/Makefile.toolchain 35 include ../../../version 36 37 DEFS += -DRELEASE=$(RELEASE) "-DNAME=$(NAME)" 38 39 ## 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 40 41 # 41 42 42 SOURCES = \ 43 getterm.c \ 44 version.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 LIBFS_PREFIX = $(USPACE_PREFIX)/lib/libfs 49 LIBPCI_PREFIX = $(USPACE_PREFIX)/lib/libpci 50 SOFTINT_PREFIX = $(USPACE_PREFIX)/lib/softint 51 52 JOB = $(OUTPUT).job 45 53 46 54 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 47 55 48 .PHONY: all 56 include $(LIBC_PREFIX)/Makefile.toolchain 49 57 50 all: $(OUTPUT) $(OUTPUT).disasm 58 CFLAGS += $(EXTRA_CFLAGS) 59 60 .PHONY: all build clean 61 62 all: \ 63 $(LIBC_PREFIX)/../../../version \ 64 $(LIBC_PREFIX)/../../../Makefile.config \ 65 $(LIBC_PREFIX)/../../../config.h \ 66 $(LIBC_PREFIX)/../../../config.defs \ 67 $(LIBS) \ 68 \ 69 $(OUTPUT) $(OUTPUT).disasm 70 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 71 72 clean: 73 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 74 find . -name '*.o' -follow -exec rm \{\} \; 75 76 build: 51 77 52 78 -include $(DEPEND) -
uspace/srv/bd/ata_bd/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = ata_bd 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 ata_bd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/bd/file_bd/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = file_bd 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 file_bd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/bd/gxe_bd/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = gxe_bd 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 gxe_bd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/bd/part/mbr_part/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = mbr_part 33 35 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 PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 mbr_part.c 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 39 include ../../../Makefile.common -
uspace/srv/bd/rd/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = rd 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 rd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/clip/Makefile
r5edb1f5 re5773c6 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 Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 30 32 31 .PHONY: all clean 33 OUTPUT = clip 32 34 33 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 34 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 35 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 clip.c 36 37 37 clean: 38 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 39 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../Makefile.common -
uspace/srv/devmap/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = devmap 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 devmap.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../Makefile.common -
uspace/srv/fs/devfs/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBFS_PREFIX)/libfs.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS += -I$(LIBFS_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = devfs 33 35 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 PRECHECK=$(PRECHECK)36 SOURCES = \ 37 devfs.c \ 38 devfs_ops.c 37 39 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 40 include ../../Makefile.common -
uspace/srv/fs/fat/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBFS_PREFIX)/libfs.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS += -I$(LIBBLOCK_PREFIX) -I$(LIBFS_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = fat 33 35 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 PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 fat.c \ 38 fat_ops.c \ 39 fat_idx.c \ 40 fat_dentry.c \ 41 fat_fat.c 37 42 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 43 include ../../Makefile.common -
uspace/srv/fs/tmpfs/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBFS_PREFIX)/libfs.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS += -I$(LIBBLOCK_PREFIX) -I$(LIBFS_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = tmpfs 33 35 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 PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 tmpfs.c \ 38 tmpfs_ops.c \ 39 tmpfs_dump.c 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 41 include ../../Makefile.common -
uspace/srv/hid/c_mouse/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS = -Iinclude 31 33 32 .PHONY: all clean 34 OUTPUT = c_mouse 33 35 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 PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 proto/ps2.c \ 38 c_mouse.c \ 39 chardev.c 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 41 include ../../Makefile.common -
uspace/srv/hw/bus/pci/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBPCI_PREFIX)/libpci.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS = -I$(LIBPCI_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = pci 33 35 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 PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 pci.c 37 38 38 $(LIBPCI): 39 $(MAKE) -C libpci PRECHECK=$(PRECHECK) 40 41 clean: 42 $(MAKE) -C libpci clean 43 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 44 find . -name '*.o' -follow -exec rm \{\} \; 39 include ../../../Makefile.common -
uspace/srv/hw/bus/pci/pci.c
r5edb1f5 re5773c6 21 21 #include <errno.h> 22 22 23 #include "libpci/pci.h"23 #include <pci.h> 24 24 25 25 #define PCI_CONF1 0xcf8 -
uspace/srv/hw/char/i8042/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = i8042 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 i8042.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../../Makefile.common -
uspace/srv/hw/cir/fhc/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = fhc 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 fhc.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../../Makefile.common -
uspace/srv/hw/cir/obio/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = obio 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 obio.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../../Makefile.common -
uspace/srv/ns/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = ns 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 ns.c \ 37 service.c \ 38 clonable.c \ 39 task.c 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 41 include ../Makefile.common -
uspace/srv/vfs/Makefile
r5edb1f5 re5773c6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = vfs 33 34 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 PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 vfs.c \ 37 vfs_node.c \ 38 vfs_file.c \ 39 vfs_ops.c \ 40 vfs_lookup.c \ 41 vfs_register.c 37 42 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 43 include ../Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.