2020-03-06 02:24:32 +01:00
|
|
|
GMP_FLAGS = -L$(GMP_PATH) -lgmp
|
|
|
|
GSL_FLAGS = $(shell pkg-config --libs gsl)
|
|
|
|
CFLAGS := -Wall --debug $(GMP_FLAGS) $(GSL_FLAGS)
|
|
|
|
|
|
|
|
CCOMPILE = \
|
|
|
|
mkdir -p $(@D); \
|
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
ex-1/bin/%: ex-1/%.c
|
|
|
|
$(CCOMPILE)
|
|
|
|
|
|
|
|
ex-2/bin/%: ex-2/%.c
|
|
|
|
$(CCOMPILE)
|
|
|
|
|
2020-03-06 11:54:28 +01:00
|
|
|
ex-3/bin/main: ex-3/main.c ex-3/common.c ex-3/likelihood.c ex-3/chisquared.c
|
2020-03-06 02:24:32 +01:00
|
|
|
$(CCOMPILE)
|
|
|
|
|
|
|
|
ex-4/bin/main: ex-4/main.c
|
|
|
|
$(CCOMPILE)
|
|
|
|
|
|
|
|
ex-5/bin/%: ex-5/%.c
|
|
|
|
$(CCOMPILE)
|
|
|
|
|
|
|
|
ex-6/bin/main: ex-6/rl.c ex-6/fft.c
|
|
|
|
$(CCOMPILE)
|
|
|
|
|
2020-03-07 02:50:09 +01:00
|
|
|
ex-7/bin/main: ex-7/main.c ex-7/common.c ex-7/fisher.c ex-7/percep.c
|
2020-03-06 02:24:32 +01:00
|
|
|
$(CCOMPILE)
|
|
|
|
|
|
|
|
misc/pdfs: misc/pdfs.c
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf ex-*/bin
|