forked from OSchip/llvm-project
Fix makefile to compile olden and main benchmarks
llvm-svn: 1142
This commit is contained in:
parent
7e89a616e6
commit
7bb67c8ab8
|
@ -5,19 +5,6 @@
|
||||||
|
|
||||||
.PHONY: clean default
|
.PHONY: clean default
|
||||||
|
|
||||||
## Special targets to build a program from multiple source files
|
|
||||||
##
|
|
||||||
ifdef PROG
|
|
||||||
|
|
||||||
default: $(PROG).clean.bc $(PROG).native
|
|
||||||
#.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
|
||||||
|
|
||||||
$(PROG).bc: $(OBJS)
|
|
||||||
$(LLINK) -f $(OBJS) -o $@ $(CFLAGS)
|
|
||||||
|
|
||||||
$(PROG).native: $(OBJS:.o=.c)
|
|
||||||
gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
|
|
||||||
endif
|
|
||||||
|
|
||||||
TOOLS = $(LEVEL)/tools/Debug
|
TOOLS = $(LEVEL)/tools/Debug
|
||||||
|
|
||||||
|
@ -46,6 +33,19 @@ CCFLAGS = $(CFLAGS)
|
||||||
LDFLAGS = $(CFLAGS)
|
LDFLAGS = $(CFLAGS)
|
||||||
ASFLAGS = -c $(CFLAGS)
|
ASFLAGS = -c $(CFLAGS)
|
||||||
|
|
||||||
|
## Special targets to build a program from multiple source files
|
||||||
|
##
|
||||||
|
ifdef PROG
|
||||||
|
|
||||||
|
default: $(PROG).clean.bc $(PROG).native
|
||||||
|
#.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
||||||
|
|
||||||
|
$(PROG).bc: $(OBJS)
|
||||||
|
$(LLINK) -f $(OBJS) -o $@
|
||||||
|
|
||||||
|
$(PROG).native: $(OBJS:.o=.c)
|
||||||
|
gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
|
||||||
|
endif
|
||||||
|
|
||||||
## Special target to force target-dependent library to be compiled
|
## Special target to force target-dependent library to be compiled
|
||||||
## directly to native code.
|
## directly to native code.
|
||||||
|
|
|
@ -5,19 +5,6 @@
|
||||||
|
|
||||||
.PHONY: clean default
|
.PHONY: clean default
|
||||||
|
|
||||||
## Special targets to build a program from multiple source files
|
|
||||||
##
|
|
||||||
ifdef PROG
|
|
||||||
|
|
||||||
default: $(PROG).clean.bc $(PROG).native
|
|
||||||
#.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
|
||||||
|
|
||||||
$(PROG).bc: $(OBJS)
|
|
||||||
$(LLINK) -f $(OBJS) -o $@ $(CFLAGS)
|
|
||||||
|
|
||||||
$(PROG).native: $(OBJS:.o=.c)
|
|
||||||
gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
|
|
||||||
endif
|
|
||||||
|
|
||||||
TOOLS = $(LEVEL)/tools/Debug
|
TOOLS = $(LEVEL)/tools/Debug
|
||||||
|
|
||||||
|
@ -46,6 +33,19 @@ CCFLAGS = $(CFLAGS)
|
||||||
LDFLAGS = $(CFLAGS)
|
LDFLAGS = $(CFLAGS)
|
||||||
ASFLAGS = -c $(CFLAGS)
|
ASFLAGS = -c $(CFLAGS)
|
||||||
|
|
||||||
|
## Special targets to build a program from multiple source files
|
||||||
|
##
|
||||||
|
ifdef PROG
|
||||||
|
|
||||||
|
default: $(PROG).clean.bc $(PROG).native
|
||||||
|
#.SECONDARY: $(PROG).clean.bc ## keep %.clean.bc from being deleted
|
||||||
|
|
||||||
|
$(PROG).bc: $(OBJS)
|
||||||
|
$(LLINK) -f $(OBJS) -o $@
|
||||||
|
|
||||||
|
$(PROG).native: $(OBJS:.o=.c)
|
||||||
|
gcc -o $@ $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall
|
||||||
|
endif
|
||||||
|
|
||||||
## Special target to force target-dependent library to be compiled
|
## Special target to force target-dependent library to be compiled
|
||||||
## directly to native code.
|
## directly to native code.
|
||||||
|
|
Loading…
Reference in New Issue