Added TRACEM option. Use -g when building native code for tests.

llvm-svn: 1438
This commit is contained in:
Vikram S. Adve 2001-12-12 15:19:55 +00:00
parent c34f500f71
commit 45ea2fd95e
2 changed files with 8 additions and 2 deletions

View File

@ -28,6 +28,9 @@ LIBS = $(LLCLIB) $(LOCAL_LIBS)
ifeq ($(TRACE), yes)
LLCFLAGS := $(LLCFLAGS) -trace
endif
ifeq ($(TRACEM), yes)
LLCFLAGS := $(LLCFLAGS) -tracem
endif
CC = /opt/SUNWspro/bin/cc
AS = /opt/SUNWspro/bin/cc
@ -56,7 +59,7 @@ ifdef PROG
$(RM) $(PROG).tmp.bc
$(PROG).native: $(OBJS:.o=.c)
$(CC) $(OBJS:.o=.c) -O $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
$(CC) $(OBJS:.o=.c) -g $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
endif
## Special target to force target-dependent library to be compiled

View File

@ -28,6 +28,9 @@ LIBS = $(LLCLIB) $(LOCAL_LIBS)
ifeq ($(TRACE), yes)
LLCFLAGS := $(LLCFLAGS) -trace
endif
ifeq ($(TRACEM), yes)
LLCFLAGS := $(LLCFLAGS) -tracem
endif
CC = /opt/SUNWspro/bin/cc
AS = /opt/SUNWspro/bin/cc
@ -56,7 +59,7 @@ ifdef PROG
$(RM) $(PROG).tmp.bc
$(PROG).native: $(OBJS:.o=.c)
$(CC) $(OBJS:.o=.c) -O $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
$(CC) $(OBJS:.o=.c) -g $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
endif
## Special target to force target-dependent library to be compiled