Browse Source

update lab1-8 Makefile for clang compiling

main
yuchen 9 years ago
parent
commit
09ed4d04fb
8 changed files with 9 additions and 9 deletions
  1. +1
    -1
      labcodes/lab1/Makefile
  2. +1
    -1
      labcodes/lab2/Makefile
  3. +1
    -1
      labcodes/lab3/Makefile
  4. +1
    -1
      labcodes/lab4/Makefile
  5. +1
    -1
      labcodes/lab5/Makefile
  6. +1
    -1
      labcodes/lab6/Makefile
  7. +1
    -1
      labcodes/lab7/Makefile
  8. +2
    -2
      labcodes/lab8/Makefile

+ 1
- 1
labcodes/lab1/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif

+ 1
- 1
labcodes/lab2/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif

+ 1
- 1
labcodes/lab3/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif

+ 1
- 1
labcodes/lab4/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif

+ 1
- 1
labcodes/lab5/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif

+ 1
- 1
labcodes/lab6/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif

+ 1
- 1
labcodes/lab7/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif

+ 2
- 2
labcodes/lab8/Makefile View File

@ -53,7 +53,7 @@ CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 &
else
HOSTCC := clang
HOSTCFLAGS := -g -Wall -O2
CC := $(GCCPREFIX)clang
CC := clang
CFLAGS := -fno-builtin -Wall -g -m32 -mno-sse -nostdinc $(DEFS)
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
endif
@ -369,7 +369,7 @@ print-%:
.PHONY: clean dist-clean handin packall tags
clean:
$(V)$(RM) $(GRADE_GDB_IN) $(GRADE_QEMU_OUT) $(SFSBINS) cscope* tags
-$(RM) -r $(OBJDIR) $(BINDIR)
$(V)$(RM) -r $(OBJDIR) $(BINDIR) $(SFSROOT)
dist-clean: clean
-$(RM) $(HANDIN)

Loading…
Cancel
Save