diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2024-09-25 14:44:31 +0300 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2024-09-25 14:44:31 +0300 |
commit | c6ad098a80adc3250d3f08d0c2b884135d98b0a7 (patch) | |
tree | 895f3af92322973703b43cbb236c5a10eb48e827 /Makefile | |
parent | 49b2b840c668c64089936e681192c75a8de2c81c (diff) |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 30 insertions, 2 deletions
@@ -1,2 +1,30 @@ -sin: main.c - cc -o sin main.c + +all: t1_a t1_b t2 test.so + +T2FLAGS := -Wall + +ifneq ($(OS),Windows_NT) + T2FLAGS += -DDYNAMIC_LOAD + T2LINKS = -lm -ldl + ifneq (, $(shell which gnuplot)) + T2FLAGS += -DPIPE_GNUPLOT + endif +endif + +t1_a: main_1.c + $(CC) -DPROG_SINUS_SUM $^ -o $@ + +t1_b: main_1.c + $(CC) -DPROG_MONTE_CARLO $^ -o $@ + +t2: main_2.c + $(CC) $(T2FLAGS) $^ -o $@ $(T2LINKS) + +test.so: test_f.c + $(CC) -fPIC -fPIE -shared $^ -o $@ + +.PHONY: clean + +clean: + rm -rf t1_a t1_b t2 test.so + |