Changeset cf240cb in mainline
- Timestamp:
- 2010-01-16T19:15:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 079f440
- Parents:
- 15eeb93
- Location:
- uspace/lib
- Files:
-
- 9 deleted
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/Makefile.common
r15eeb93 rcf240cb 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 += -Iinclude 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 generic/division.c\ 43 generic/multiplication.c 43 DEPEND = Makefile.depend 44 DEPEND_PREV = $(DEPEND).prev 45 46 LIBC_PREFIX = $(USPACE_PREFIX)/lib/libc 47 48 JOB = $(OUTPUT).job 44 49 45 50 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 46 51 47 .PHONY: all 52 include $(LIBC_PREFIX)/Makefile.toolchain 48 53 49 all: $(LIBSOFTINT) 54 CFLAGS += $(EXTRA_CFLAGS) 55 56 .PHONY: all build clean 57 58 all: \ 59 $(LIBC_PREFIX)/../../../version \ 60 $(LIBC_PREFIX)/../../../Makefile.config \ 61 $(LIBC_PREFIX)/../../../config.h \ 62 $(LIBC_PREFIX)/../../../config.defs \ 63 $(LIBS) \ 64 \ 65 $(OUTPUT) 66 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 67 68 clean: 69 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) 70 find . -name '*.o' -follow -exec rm \{\} \; 71 72 build: 50 73 51 74 -include $(DEPEND) 52 75 53 $( LIBSOFTINT): $(OBJECTS)76 $(OUTPUT): $(OBJECTS) 54 77 $(AR) rc $@ $(OBJECTS) 55 78 -
uspace/lib/libblock/Makefile
r15eeb93 rcf240cb 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 = libblock.a 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 libblock.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBBLOCK) 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../Makefile.common -
uspace/lib/libfs/Makefile
r15eeb93 rcf240cb 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 = libfs.a 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 libfs.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBFS) 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../Makefile.common -
uspace/lib/libpci/Makefile
r15eeb93 rcf240cb 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 = libpci.a 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 access.c \ 37 generic.c \ 38 names.c \ 39 i386-ports.c 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBPCI) 40 find . -name '*.o' -follow -exec rm \{\} \; 41 include ../Makefile.common -
uspace/lib/softfloat/Makefile
r15eeb93 rcf240cb 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS += -Iinclude -Iarch/$(UARCH)/include/ 31 33 32 .PHONY: all clean 34 OUTPUT = libsoftfloat.a 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 generic/add.c \ 38 generic/common.c \ 39 generic/comparison.c \ 40 generic/conversion.c \ 41 generic/div.c \ 42 generic/mul.c \ 43 generic/other.c \ 44 generic/softfloat.c \ 45 generic/sub.c 37 46 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBSOFTFLOAT) 40 find . -name '*.o' -follow -exec rm \{\} \; 47 include ../Makefile.common -
uspace/lib/softint/Makefile
r15eeb93 rcf240cb 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 = libsoftint.a 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)36 SOURCES = \ 37 generic/division.c\ 38 generic/multiplication.c 37 39 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBSOFTINT) 40 find . -name '*.o' -follow -exec rm \{\} \; 40 include ../Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.