Difference: MakefileExample (1 vs. 5)

Revision 52008-02-12 - JonathanGordon

Line: 1 to 1
 
META TOPICPARENT name="ProjectHome"
In the following Makefile, it assumes that your testing program is named loop.
Line: 25 to 25
  $(CC) $(OPT) $(CS255) $(DUMP_CS255_GIMPLE) $(SOURCE) -c -o $(OBJECT)

$(LIB_OBJECT): $(LIB_SOURCE)

Changed:
<
<
$(CC) $(OPT) $(LIB_SOURCE) -c -o $(LIB_OBJECT
>
>
$(CC) $(OPT) $(LIB_SOURCE) -c -o $(LIB_OBJECT)
  clean: -rm -rf $(BINARY) $(OBJECT) $(LIB_OBJECT)

Revision 42008-02-12 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="ProjectHome"
In the following Makefile, it assumes that your testing program is named loop.
Line: 16 to 16
 OPT = -O2 CS255 = -fcs255 DUMP_GIMPLE = -fdump-tree-gimple
Added:
>
>
DUMP_CS255_GIMPLE = -fdump-cs255-tree-gimple
  $(BINARY): $(OBJECT) $(LIB_OBJECT) $(CC) $(OBJECT) $(LIB_OBJECT) -o $(BINARY)

$(OBJECT): $(SOURCE)

Changed:
<
<
$(CC) $(OPT) $(CS255) $(DUMP_GIMPLE) $(SOURCE) -c -o $(OBJECT)
>
>
$(CC) $(OPT) $(CS255) $(DUMP_CS255_GIMPLE) $(SOURCE) -c -o $(OBJECT)
  $(LIB_OBJECT): $(LIB_SOURCE) $(CC) $(OPT) $(LIB_SOURCE) -c -o $(LIB_OBJECT

Revision 32008-01-28 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="ProjectHome"
In the following Makefile, it assumes that your testing program is named loop.
Changed:
<
<
CC = /p/compiler2/xiaoming/csc455/bin/bin/gcc

TARGET = loop

SOURCE = $(TARGET).c

OBJECT = $(TARGET).o

BINARY = $(TARGET)

LIB = cs255-lib

LIB_SOURCE = $(LIB).c

LIB_OBJECT = $(LIB).o

OPT = -O2

CS255 = -fcs255

DUMP_GIMPLE = -fdump-tree-gimple

$(BINARY): $(OBJECT) $(LIB_OBJECT) $(CC) $(OBJECT) $(LIB_OBJECT) -o $(BINARY)

$(OBJECT): $(SOURCE) $(CC) $(OPT) $(CS255) $(DUMP_GIMPLE) $(SOURCE) -c -o $(OBJECT)

$(LIB_OBJECT): $(LIB_SOURCE) $(CC) $(OPT) $(LIB_SOURCE) -c -o $(LIB_OBJECT)

clean: -rm -rf $(BINARY) $(OBJECT) $(LIB_OBJECT)

>
>
CC = /p/compiler2/xiaoming/csc455/bin/bin/gcc
 
Added:
>
>
TARGET = loop SOURCE = $(TARGET).c OBJECT = $(TARGET).o BINARY = $(TARGET) LIB = cs255-lib LIB_SOURCE = $(LIB).c LIB_OBJECT = $(LIB).o

OPT = -O2 CS255 = -fcs255 DUMP_GIMPLE = -fdump-tree-gimple

$(BINARY): $(OBJECT) $(LIB_OBJECT) $(CC) $(OBJECT) $(LIB_OBJECT) -o $(BINARY)

$(OBJECT): $(SOURCE) $(CC) $(OPT) $(CS255) $(DUMP_GIMPLE) $(SOURCE) -c -o $(OBJECT)

$(LIB_OBJECT): $(LIB_SOURCE) $(CC) $(OPT) $(LIB_SOURCE) -c -o $(LIB_OBJECT

clean: -rm -rf $(BINARY) $(OBJECT) $(LIB_OBJECT)

 

Revision 22008-01-27 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="ProjectHome"
In the following Makefile, it assumes that your testing program is named loop.

Revision 12008-01-27 - XiaomingGu

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="ProjectHome"
In the following Makefile, it assumes that your testing program is named loop.

CC = /p/compiler2/xiaoming/csc455/bin/bin/gcc

TARGET = loop

SOURCE = $(TARGET).c

OBJECT = $(TARGET).o

BINARY = $(TARGET)

LIB = cs255-lib

LIB_SOURCE = $(LIB).c

LIB_OBJECT = $(LIB).o

OPT = -O2

CS255 = -fcs255

DUMP_GIMPLE = -fdump-tree-gimple

$(BINARY): $(OBJECT) $(LIB_OBJECT)

$(CC) $(OBJECT) $(LIB_OBJECT) -o $(BINARY)

$(OBJECT): $(SOURCE) $(CC) $(OPT) $(CS255) $(DUMP_GIMPLE) $(SOURCE) -c -o $(OBJECT)

$(LIB_OBJECT): $(LIB_SOURCE) $(CC) $(OPT) $(LIB_SOURCE) -c -o $(LIB_OBJECT)

clean: -rm -rf $(BINARY) $(OBJECT) $(LIB_OBJECT)

-- XiaomingGu - 27 Jan 2008

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback