Changeset 3b3e776 in mainline for uspace/app/Makefile.common
- Timestamp:
- 2010-02-05T10:57:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0358da0
- Parents:
- 3f085132 (diff), b4cbef1 (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
-
uspace/app/Makefile.common (moved) (moved from uspace/srv/dd/Makefile.build ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/Makefile.common
r3f085132 r3b3e776 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 ## 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 37 41 # 38 42 39 SOURCES = \ 40 main.c \ 41 pic.c \ 42 pci.c \ 43 intel_piix3.c \ 44 isa.c \ 45 serial.c 43 DEPEND = Makefile.depend 44 DEPEND_PREV = $(DEPEND).prev 46 45 47 ifeq ($(PROCESSOR), us) 48 SOURCES += psycho.c 49 endif 46 LIBC_PREFIX = $(USPACE_PREFIX)/lib/libc 47 LIBBLOCK_PREFIX = $(USPACE_PREFIX)/lib/libblock 48 SOFTINT_PREFIX = $(USPACE_PREFIX)/lib/softint 50 49 51 ifeq ($(UARCH), ia32) 52 SOURCES += intel_method1.c 53 endif 54 50 JOB = $(OUTPUT).job 55 51 56 52 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 57 53 58 .PHONY: all 54 include $(LIBC_PREFIX)/Makefile.toolchain 59 55 60 all: $(OUTPUT) $(OUTPUT).disasm 56 CFLAGS += $(EXTRA_CFLAGS) 57 58 .PHONY: all build clean 59 60 all: \ 61 $(LIBC_PREFIX)/../../../version \ 62 $(LIBC_PREFIX)/../../../Makefile.config \ 63 $(LIBC_PREFIX)/../../../config.h \ 64 $(LIBC_PREFIX)/../../../config.defs \ 65 $(LIBS) \ 66 \ 67 $(OUTPUT) $(OUTPUT).disasm 68 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 69 70 clean: 71 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 72 find . -name '*.o' -follow -exec rm \{\} \; 73 74 build: 61 75 62 76 -include $(DEPEND) … … 70 84 %.o: %.c $(DEPEND) 71 85 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 86 ifeq ($(PRECHECK),y) 87 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 88 endif 72 89 73 90 $(DEPEND):
Note:
See TracChangeset
for help on using the changeset viewer.
