| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-01 21:15:52 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-01 21:15:52 +0200 |
| commit | 2b1c103df8a566f1fee62a040da079a052cee83f (patch) | |
| tree | 71a80b80298b3529df10830e3ae1b9b76babbb01 /Makefile | |
| parent | 8a37d71ce6ca77f87f773299461cbdbf2058565b (diff) | |
Switches to Makefiles.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d9dc166 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +################################################################################ +PTHREADS_LIB_FLAGS = -pthread +################################################################################ +CFLAGS += -O3 +CFLAGS += -D_POSIX_SOURCE +CFLAGS += -D_POSIX_C_SOURCE=200809L +CFLAGS += $(PTHREADS_LIB_FLAGS) +################################################################################ +EXECUTABLE = jh-markov-k-ram +SRC_DIR = ./src +################################################################################ +export +################################################################################ + +build: $(EXECUTABLE) + +$(EXECUTABLE): $(SRC_DIR)/export.a + $(CC) $(CFLAGS) -o $@ $< + +$(SRC_DIR)/export.a: + $(MAKE) -C $(SRC_DIR) export.a + +clean: + $(MAKE) -C $(SRC_DIR) clean + rm -f $(EXECUTABLE) |


