Changeset dc9162b in mainline for uspace/srv/Makefile.common
- Timestamp:
- 2010-01-15T22:22:44Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cec261e
- Parents:
- d45660a (diff), 15eeb93 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/Makefile.common
rd45660a rdc9162b 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)
Note:
See TracChangeset
for help on using the changeset viewer.