From: John Hodge Date: Thu, 17 Nov 2011 14:15:06 +0000 (+0800) Subject: Usermode/Build - Updates to build system for crtbegin/crtend X-Git-Tag: rel0.14~93 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a644ed9dc9954091daf616dfe93ab2e2a920bf5d;p=tpg%2Facess2.git Usermode/Build - Updates to build system for crtbegin/crtend --- diff --git a/Usermode/Applications/Makefile.cfg b/Usermode/Applications/Makefile.cfg index b2f36e41..b4e4e51a 100644 --- a/Usermode/Applications/Makefile.cfg +++ b/Usermode/Applications/Makefile.cfg @@ -7,7 +7,7 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg ASFLAGS = -felf CPPFLAGS = -I$(ACESSUSERDIR)/include/ -DARCHDIR_is_$(ARCHDIR) CFLAGS = -fno-stack-protector $(CPPFLAGS) -LDFLAGS = -T $(OUTPUTDIR)Libs/acess.ld -rpath-link $(OUTPUTDIR)Libs -L $(OUTPUTDIR)Libs -I /Acess/Libs/ld-acess.so -lld-acess -lc +LDFLAGS = -T $(OUTPUTDIR)Libs/acess.ld -rpath-link $(OUTPUTDIR)Libs -L $(OUTPUTDIR)Libs -I /Acess/Libs/ld-acess.so -lld-acess -lc $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crtend.o # Extra-verbose errors! #CFLAGS += -Wall -Wextra -Wwrite-strings -Wshadow -Wswitch-default -Wswitch-enum -Wstrict-overflow=5 -Wfloat-equal -Wundef -Wmissing-declarations -Wlogical-op diff --git a/Usermode/Applications/Makefile.tpl b/Usermode/Applications/Makefile.tpl index 542fd815..27cf9e54 100644 --- a/Usermode/Applications/Makefile.tpl +++ b/Usermode/Applications/Makefile.tpl @@ -44,7 +44,7 @@ endif $(OBJ): $(_OBJPREFIX)%.o: %.c @echo [CC] -o $@ ifneq ($(_OBJPREFIX),) - @mkdir -p $(_OBJPREFIX) + @mkdir -p $(dir $@) endif @$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ @$(CC) -M -MT $@ $(CPPFLAGS) $< -o $(_OBJPREFIX)$*.dep