# http://www.gnu.org/software/make/manual/html_node/Reference.html
# You can override variables from the command line. For example
# $ make VERSION=2 dist
-# will generate phys405-hw0-2.tar.gz
-COURSE = phys405
-PACKAGE = hw0
+# will generate phys305-hw4-2.tar.gz
+COURSE = phys305
+PACKAGE = hw4
VERSION = 1
RELEASE = $(COURSE)-$(PACKAGE)-$(VERSION)
-RUN_PROGRAM = hello_world
+RUN_PROGRAM =
SCRIPTS =
-C_PROGRAMS = hello_world
-CXX_PROGRAMS = goodbye_world
+C_PROGRAMS = one_gaussian_bump error_analysis
+CXX_PROGRAMS =
PROGRAMS = $(C_PROGRAMS) $(CXX_PROGRAMS)
# Define the source files that will be distributed in the tarball
-SOURCE = *.c *.cpp *.h COPYING Makefile README $(SCRIPTS)
+SOURCE = *.c *.h COPYING Makefile README $(SCRIPTS)
# Define a list of object files needed to link PROGRAM. We're setting
# things up here so that a program % depends on the object file %.o.
# You may want to link agains external libraries. For example, to
# link against the system math library, use.
# hello_world_LIBS = -lm
-$(foreach PROGRAM, $(PROGRAMS), $(eval $(PROGRAM)_LIBS =))
+$(foreach PROGRAM, $(PROGRAMS), $(eval $(PROGRAM)_LIBS = -lm))
# Define useful programs (this makes it easy to swap in alternates)
CP = cp
/*
-A simple "hello world" example in C++.
+A simple "hello world" example in C.
Copyright (C) 2012 W. Trevor King
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <iostream>
-
-using namespace std;
+#include <stdio.h>
int main() {
- cout << "goodbye, world\n";
+ printf("hello, world\n");
return 0;
}