X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fcomputational_physics.git;a=blobdiff_plain;f=Makefile;h=e08fef7382438945c5443f885777cc19f9b18500;hp=3993f5af2053175825a95bac20928a7e4012dfcf;hb=HEAD;hpb=345e0e95bea02628a790e751d992f2ff6b37bf4b diff --git a/Makefile b/Makefile index 3993f5a..e08fef7 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ # computational physics Makefile, rules for all example programs +CC=gcc INCLUDEDIR = /usr/include CFLAGS = -O3 -Wall LIBS = -L/usr/lib -lm API = g_plot.o general.o -OBJS = newton zentral homogen integral-1_2 integral-2_2 polynom_interpolation kettenbruchentwicklung bessel_1 bessel_2 +OBJS = newton zentral homogen integral-1_2 integral-2_2 polynom_interpolation kettenbruchentwicklung bessel_1 bessel_2 check_rand mc_int nullstellen rk all: $(OBJS) @@ -36,7 +37,19 @@ bessel_1: $(API) bessel_2: $(API) $(CC) $(CFLAGS) -o $@ $(API) $(LIBS) bessel_2.c +check_rand: $(API) + $(CC) $(CFLAGS) -o $@ $(API) $(LIBS) check_rand.c + +mc_int: $(API) + $(CC) $(CFLAGS) -o $@ $(API) $(LIBS) mc_int.c + +nullstellen: $(API) + $(CC) $(CFLAGS) -o $@ $(API) $(LIBS) nullstellen.c + +rk: $(API) + $(CC) $(CFLAGS) -o $@ $(API) $(LIBS) rk.c + clean: - rm $(API) $(OBJS) + rm -f $(API) $(OBJS) remake: clean all