lec3_io - Programming Conventions and I/O System Marco...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Programming Conventions  and I/O System Marco Gruteser Network-Centric Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Makefiles: Using Variables EXECFILE =myparse SRCFILE =myparse.c ${EXECFILE}: ${SRCFILE} support.o gcc -o ${EXECFILE} ${SRCFILE} support.o support.o: support.c gcc -c -o support.o support.c
Background image of page 2
3 Makefiles: Using Targets EXECFILE=myparse SRCFILE=myparse.c ${EXECFILE}: ${SRCFILE} support.o gcc -o ${EXECFILE} ${SRCFILE} support.o support.o: support.c gcc -c -o support.o support.c clean: rm –f *.o ${EXECFILE}
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Standard make targets Make (all) Compile and link Make clean Delete all the generated files, except configuration Make distclean Delete configuration also Make dist Create source tarball
Background image of page 4
5 Autotools De-facto standard for creating portable program distributions Standard build commands ./configure;make sudo make install Many distributions come with a configure script, which in turn generates a Makefile when run These configure scripts are generated with the autotools package
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Autotools Example – configuration  files `Makefile.am' bin_PROGRAMS = hello hello_SOURCES = hello.c `configure.in' AC_INIT(hello.c)
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2012 for the course ECE 456 taught by Professor Marcogruetesor during the Spring '12 term at Rutgers.

Page1 / 21

lec3_io - Programming Conventions and I/O System Marco...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online