Tom Kelliher, CS 245
Nov. 25, 2002
Test Analysis report due 12/4.
Second exam on 12/6.
``Lessons learned.''
make
.
make
lab.
Open days.
A make
file for GalaEvents:
# Hi, I'm a comment. JC = /usr/bin/javac GalaEvents.class: GalaEvents.java Gigobite.class ${JC} GalaEvents.java Gigobite.class: Gigobite.java ${JC} Gigobite.java GalaEvents.java: Gigobite.java: clean: /bin/rm -f *.class echo "All shiny and new."
Notes:
These are the instructions for making the target.
Makefile
. To run type make
. To make a
specific target, other than the first:
make <target>
make
know this?
Dependency graph for GalaEvents:
This information is embedded in the make file target dependencies.
XSLOAD = xsload XSLOAD_SRCS = main.c bitstream.c pport.c jtag.c utility.c xc40.c XSLOAD_OBJS = ${XSLOAD_SRCS:.c=.o} ADDTEST = addTest ADDTEST_SRCS = addTest.c pport.c utility.c ADDTEST_OBJS = ${ADDTEST_SRCS:.c=.o} EXES = ${XSLOAD} ${ADDTEST} SRCS = ${XSLOAD_SRCS} ${ADDTEST_SRCS} OBJS = ${XSLOAD_OBJS} ${ADDTEST_OBJS} CC = gcc CFLAGS = -O ${XSLOAD}: ${XSLOAD_OBJS} ${CC} ${CFLAGS} -o ${XSLOAD} ${XSLOAD_OBJS} ${ADDTEST}: ${ADDTEST_OBJS} ${CC} ${CFLAGS} -o ${ADDTEST} ${ADDTEST_OBJS} root: chown root ${EXES} chmod 4555 ${EXES} depend: makedepend -I/usr/src/linux-2.2.5/include/linux \ -I/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include \ -- ${CFLAGS} -- ${SRCS} clean: /bin/rm -f ${OBJS} spotless: /bin/rm -f ${EXES} ${OBJS}