wiki

 

CompSci-351

Requirements for CompSci-351

starting/executing a makefile

make -f makefileName

sample makefile contents make sure you have "tabs" before every new line of code

 
# Create executable file "main"
main: time.o
        g++ main.cpp time.o -o main
# Create object file "time.o"
time.o: time1.cpp time1.h
        g++ -c time1.cpp -o time.o
 

reference: http://linuxgazette.net/issue83/heriyanto.html

Tags: C++, CompSci-351 Last modified 00:43 Wed, 3 Sept 2008 by gowen. Accessed 167 times What Links Here share Share