Changeset cf240cb in mainline for uspace/lib/Makefile.common
- 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
- File:
-
- 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
Note:
See TracChangeset
for help on using the changeset viewer.